Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Issue 113892: ExternalTabContainer should subclass WidgetWin rather than Widget and ATL CWi... (Closed)

Created:
11 years, 7 months ago by Ben Goodger (Google)
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

ExternalTabContainer should subclass WidgetWin rather than Widget and ATL CWindowImpl. This makes it much easier to extend the API of Widget. Cleans up ExternalTabContainer to better match chrome style. BUG=none TEST=run ui tests, verify ExternalTabContainer tests pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=16996

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -246 lines) Patch
M chrome/browser/automation/automation_provider.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/external_tab_container.h View 3 chunks +39 lines, -93 lines 0 comments Download
M chrome/browser/external_tab_container.cc View 9 chunks +81 lines, -152 lines 4 comments Download

Messages

Total messages: 3 (0 generated)
Ben Goodger (Google)
11 years, 7 months ago (2009-05-27 08:25:03 UTC) #1
ananta
LGTM http://codereview.chromium.org/113892/diff/1/2 File chrome/browser/external_tab_container.cc (right): http://codereview.chromium.org/113892/diff/1/2#newcode92 Line 92: SetWindowLong(GWL_STYLE, (GetWindowLong(GWL_STYLE) & ~WS_POPUP) | style); Should ...
11 years, 7 months ago (2009-05-27 13:46:24 UTC) #2
tommi (sloooow) - chröme
11 years, 7 months ago (2009-05-27 20:50:29 UTC) #3
http://codereview.chromium.org/113892/diff/1/2
File chrome/browser/external_tab_container.cc (right):

http://codereview.chromium.org/113892/diff/1/2#newcode52
Line 52: views::WidgetWin::Init(parent, bounds, true);
this changes the semantics from before where NULL was the initial parent.  Also,
there's no error handling.

http://codereview.chromium.org/113892/diff/1/2#newcode92
Line 92: SetWindowLong(GWL_STYLE, (GetWindowLong(GWL_STYLE) & ~WS_POPUP) |
style);
On 2009/05/27 13:46:24, ananta wrote:
> Should this be GetWindowLong(GWL_STYLE) | WS_POPUP | style?

I think this is how it should be.  We want to remove the WS_POPUP style at this
point.

http://codereview.chromium.org/113892/diff/1/2#newcode128
Line 128: return _wcsicmp(class_name.c_str(), chrome::kExternalTabWindowClass)
== 0;
maybe
return class_name.compare(chrome::kExternalTabWindowClass) == 0;

I think it's safe to be case sensitive here.

Powered by Google App Engine
This is Rietveld 408576698