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

Issue 6881107: Rework the way Widget::Init works: (Closed)

Created:
9 years, 8 months ago by Ben Goodger (Google)
Modified:
9 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Rework the way Widget::Init works: - Remove SetCreateParams from the public Widget API. - Add parent/bounds fields to CreateParams - Make Widget::Init be the canonical init method (vs. WidgetWin/Gtk Init) and have it take a CreateParams. - NativeWidget now has a InitNativeWidget method, which subclasses can override. Everyone must call Widget::Init via Widget* (not WidgetWin* as this will be ambiguous to WindowImpl::Init). BUG=72040 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83037

Patch Set 1 : '' #

Total comments: 3

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+625 lines, -737 lines) Patch
M chrome/browser/chromeos/frame/panel_controller.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/input_method/candidate_window.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/background_view.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/helper.cc View 1 2 1 chunk +8 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/message_bubble.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/message_bubble.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker.cc View 1 2 7 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/user_controller.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/user_controller_gtk.cc View 1 2 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/notifications/balloon_view.cc View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/notifications/notification_panel.cc View 1 2 3 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/panels/panel_scroller.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/external_tab_container_win.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/first_run/try_chrome_dialog_view.cc View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_popup_gtk.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/browser_bubble_gtk.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/browser_bubble_win.cc View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/bubble/border_widget_win.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bubble/border_widget_win.cc View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/bubble/bubble.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bubble/bubble.cc View 1 2 5 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/constrained_html_delegate_gtk.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/dom_view_browsertest.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/download/download_started_animation_win.cc View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host_gtk.cc View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host_win.cc View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/contents_container.cc View 1 2 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/fullscreen_exit_bubble.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/generic_info_view_unittest.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/native_constrained_window_win.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/notifications/balloon_view.cc View 1 2 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/tab_contents_view_gtk.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/tabs/dragged_tab_controller.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/dragged_tab_view.cc View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/tabs/native_view_photobooth_win.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/theme_install_bubble_view.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M views/controls/menu/menu_host.cc View 1 2 2 chunks +10 lines, -5 lines 0 comments Download
M views/controls/menu/menu_host_gtk.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M views/controls/menu/menu_host_gtk.cc View 1 2 3 chunks +10 lines, -12 lines 0 comments Download
M views/controls/menu/menu_host_win.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M views/controls/menu/menu_host_win.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M views/controls/menu/native_menu_host.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M views/controls/tabbed_pane/native_tabbed_pane_gtk.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M views/controls/tabbed_pane/native_tabbed_pane_win.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M views/controls/textfield/native_textfield_views_unittest.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M views/examples/widget_example.cc View 1 2 3 chunks +12 lines, -9 lines 0 comments Download
M views/focus/focus_manager_unittest.cc View 1 2 2 chunks +16 lines, -17 lines 0 comments Download
M views/view_unittest.cc View 1 2 17 chunks +58 lines, -62 lines 0 comments Download
M views/widget/native_widget.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M views/widget/native_widget_test_utils_gtk.cc View 1 2 2 chunks +15 lines, -10 lines 0 comments Download
M views/widget/native_widget_test_utils_win.cc View 1 2 1 chunk +9 lines, -9 lines 0 comments Download
M views/widget/widget.h View 1 2 6 chunks +8 lines, -14 lines 0 comments Download
M views/widget/widget.cc View 1 2 3 chunks +12 lines, -9 lines 0 comments Download
M views/widget/widget_gtk.h View 1 2 10 chunks +12 lines, -41 lines 0 comments Download
M views/widget/widget_gtk.cc View 1 2 27 chunks +198 lines, -231 lines 0 comments Download
M views/widget/widget_win.h View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M views/widget/widget_win.cc View 1 2 3 chunks +8 lines, -67 lines 0 comments Download
M views/widget/widget_win_unittest.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M views/window/window_gtk.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M views/window/window_win.h View 1 2 2 chunks +1 line, -6 lines 0 comments Download
M views/window/window_win.cc View 1 2 3 chunks +20 lines, -18 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Ben Goodger (Google)
9 years, 8 months ago (2011-04-25 23:13:04 UTC) #1
sky
LGTM http://codereview.chromium.org/6881107/diff/15001/views/widget/widget.h File views/widget/widget.h (right): http://codereview.chromium.org/6881107/diff/15001/views/widget/widget.h#newcode65 views/widget/widget.h:65: struct CreateParams { Consider renaming this to InitParams. ...
9 years, 8 months ago (2011-04-25 23:49:32 UTC) #2
Ben Goodger (Google)
9 years, 8 months ago (2011-04-26 14:42:56 UTC) #3
On 2011/04/25 23:49:32, sky wrote:
http://codereview.chromium.org/6881107/diff/15001/views/widget/widget.h#newco...
> views/widget/widget.h:65: struct CreateParams {
> Consider renaming this to InitParams.

I am going to do this in a separate CL, adding a TODO for now.

http://codereview.chromium.org/6881107/diff/15001/views/widget/widget_gtk.cc#...
> views/widget/widget_gtk.cc:291: child_(false),
> Should be after transparent_

??? It matches the order in the class decl. I grouped it with the parent widget
members since it seemed related to widget hierarchy.

Powered by Google App Engine
This is Rietveld 408576698