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

Issue 2390953004: WidgetDelegateView is its own contents view. (Closed)

Created:
4 years, 2 months ago by Evan Stade
Modified:
4 years, 2 months ago
Reviewers:
tapted, Mike West, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WidgetDelegateView is its own contents view. Therefore, make it override GetContentsView instead of making all subclasses do so. BUG=none TBR=mkwst@chromium.org, tapted@chromium.org Committed: https://crrev.com/9b564da108e489972a86c602cffb0a786d4a5991 Cr-Commit-Position: refs/heads/master@{#423583}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : updates #

Patch Set 4 : minor fixes #

Total comments: 2

Patch Set 5 : add comment #

Patch Set 6 : another minor fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -107 lines) Patch
M ash/autoclick/mus/autoclick_application.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/accelerators/exit_warning_handler.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/system/tray/system_tray_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/wm/window_cycle_list.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ash/extended_desktop_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/frame/caption_buttons/frame_size_button_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/magnifier/magnification_controller_unittest.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ash/mus/non_client_frame_controller.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/mus/non_client_frame_controller.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ash/shell/lock_view.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/panel_window.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/panel_window.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ash/shell/toplevel_window.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/toplevel_window.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ash/shell/widgets.cc View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M ash/shell/window_type_launcher.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/window_type_launcher.cc View 1 2 3 chunks +0 lines, -6 lines 0 comments Download
M ash/shell_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/test/child_modal_window.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/test/child_modal_window.cc View 1 2 3 chunks +0 lines, -9 lines 0 comments Download
M ash/touch_hud/mus/touch_hud_application.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/system_modal_container_layout_manager_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/ui/simple_web_view_dialog.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/ui/idle_app_name_notification_view.cc View 1 2 3 4 5 4 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/ui/kiosk_external_update_notification.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/autofill_popup_base_view.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ime/ime_window_view.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ime/ime_window_view.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/screen_capture_notification_ui_views.cc View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M content/shell/browser/shell_views.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M extensions/components/native_app_window/native_app_window_views.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M extensions/components/native_app_window/native_app_window_views.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M mash/browser/browser.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M mash/catalog_viewer/catalog_viewer.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.cc View 1 2 3 4 4 chunks +0 lines, -4 lines 0 comments Download
M mash/login/login.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M mash/quick_launch/quick_launch.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M mash/screenlock/screenlock.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M mash/task_viewer/task_viewer.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M mash/webtest/webtest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/message_center/views/toast_contents_view.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/message_center/views/toast_contents_view.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/color_chooser/color_chooser_view.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/color_chooser/color_chooser_view.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/examples/examples_window.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/touchui/touch_selection_controller_impl.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M ui/views/widget/widget_delegate.h View 1 chunk +1 line, -0 lines 1 comment Download
M ui/views/widget/widget_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (27 generated)
Evan Stade
4 years, 2 months ago (2016-10-05 23:46:48 UTC) #18
sky
THANK YOU! The lack of WidgetDelegateView overriding GetContentsView() has long bothered me but I've been ...
4 years, 2 months ago (2016-10-06 16:49:20 UTC) #21
Evan Stade
https://codereview.chromium.org/2390953004/diff/60001/ui/views/touchui/touch_selection_controller_impl.cc File ui/views/touchui/touch_selection_controller_impl.cc (right): https://codereview.chromium.org/2390953004/diff/60001/ui/views/touchui/touch_selection_controller_impl.cc#newcode323 ui/views/touchui/touch_selection_controller_impl.cc:323: if (selection_bound_.type() == gfx::SelectionBound::EMPTY) On 2016/10/06 16:49:20, sky wrote: ...
4 years, 2 months ago (2016-10-06 16:51:44 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2390953004/100001
4 years, 2 months ago (2016-10-06 16:53:26 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/275462)
4 years, 2 months ago (2016-10-06 17:04:04 UTC) #27
Evan Stade
added TBRs for: tapted: extensions/components/native_app_window/native_app_window_views.cc extensions/components/native_app_window/native_app_window_views.h mkwst: content/shell/browser/shell_views.cc
4 years, 2 months ago (2016-10-06 17:46:26 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2390953004/100001
4 years, 2 months ago (2016-10-06 17:47:09 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-06 17:56:40 UTC) #34
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/9b564da108e489972a86c602cffb0a786d4a5991 Cr-Commit-Position: refs/heads/master@{#423583}
4 years, 2 months ago (2016-10-06 17:59:21 UTC) #36
tapted
4 years, 2 months ago (2016-10-07 04:48:11 UTC) #37
Message was sent while issue was closed.
native_app_window_views lgtm

https://codereview.chromium.org/2390953004/diff/100001/ui/views/widget/widget...
File ui/views/widget/widget_delegate.h (right):

https://codereview.chromium.org/2390953004/diff/100001/ui/views/widget/widget...
ui/views/widget/widget_delegate.h:214: views::View* GetContentsView() override;
(nit: views:: prefix isn't needed here, or in the .cc)

Powered by Google App Engine
This is Rietveld 408576698