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

Issue 1759453002: Convert location bar bubble delegates to bubble dialog delegates (Closed)

Created:
4 years, 9 months ago by Evan Stade
Modified:
4 years, 9 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, tfarina, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, noyau+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert location bar bubble delegates to bubble dialog delegates BUG=585312 Committed: https://crrev.com/6c27fa4ddfb8efa64df7c16b783b8252b81834dd Cr-Commit-Position: refs/heads/master@{#380411}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : simplify SaveCardBubbleView #

Patch Set 4 : mac views headache #

Patch Set 5 : fix compile errs #

Total comments: 17

Patch Set 6 : msw review #

Total comments: 2

Patch Set 7 : register once #

Patch Set 8 : DialogDelegateView does it #

Patch Set 9 : remove accel from dcv #

Patch Set 10 : unit test #

Total comments: 8

Patch Set 11 : sky review #

Patch Set 12 : hokey immersive fullscreen controller fix #

Patch Set 13 : fix ImmersiveFullscreenController #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -252 lines) Patch
M ash/wm/immersive_fullscreen_controller.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -4 lines 1 comment Download
M ash/wm/immersive_fullscreen_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +60 lines, -40 lines 0 comments Download
M chrome/browser/ui/views/autofill/save_card_bubble_views.h View 1 2 3 4 5 5 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/autofill/save_card_bubble_views.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +37 lines, -58 lines 0 comments Download
M chrome/browser/ui/views/autofill/save_card_icon_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/save_card_icon_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h View 1 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 9 5 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/bubble_icon_view.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/bubble_icon_view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h View 1 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc View 1 2 3 4 5 6 2 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/star_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/star_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 5 chunks +9 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +15 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view_interactive_uitest.cc View 1 2 3 4 5 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_icon_views.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_icon_views.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tab_dialogs_views.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.cc View 1 2 3 4 5 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/translate/translate_icon_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/translate/translate_icon_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/bubble/bubble_dialog_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +2 lines, -7 lines 0 comments Download
M ui/views/bubble/bubble_dialog_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -12 lines 0 comments Download
M ui/views/widget/widget_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/widget/widget_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -3 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 5 6 7 8 9 5 chunks +10 lines, -9 lines 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -4 lines 0 comments Download
M ui/views/window/dialog_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +32 lines, -10 lines 0 comments Download

Messages

Total messages: 56 (20 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759453002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759453002/40001
4 years, 9 months ago (2016-03-02 02:16:41 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/133476) linux_chromium_compile_dbg_ng on ...
4 years, 9 months ago (2016-03-02 02:35:54 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759453002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759453002/60001
4 years, 9 months ago (2016-03-03 04:12:27 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/58901)
4 years, 9 months ago (2016-03-03 04:33:21 UTC) #9
Evan Stade
4 years, 9 months ago (2016-03-03 21:57:39 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759453002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759453002/80001
4 years, 9 months ago (2016-03-03 22:02:26 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/152569)
4 years, 9 months ago (2016-03-03 22:19:10 UTC) #15
msw
Please avoid the new View function if possible. https://codereview.chromium.org/1759453002/diff/80001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc File chrome/browser/ui/views/autofill/save_card_bubble_views.cc (right): https://codereview.chromium.org/1759453002/diff/80001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc#newcode98 chrome/browser/ui/views/autofill/save_card_bubble_views.cc:98: return ...
4 years, 9 months ago (2016-03-03 23:01:40 UTC) #16
Evan Stade
https://codereview.chromium.org/1759453002/diff/80001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1759453002/diff/80001/ui/views/window/dialog_client_view.cc#newcode219 ui/views/window/dialog_client_view.cc:219: contents_view()->AcceleratorPressed(accelerator)) { On 2016/03/03 23:01:40, msw wrote: > Why ...
4 years, 9 months ago (2016-03-04 04:12:08 UTC) #17
msw
https://codereview.chromium.org/1759453002/diff/80001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1759453002/diff/80001/ui/views/window/dialog_client_view.cc#newcode219 ui/views/window/dialog_client_view.cc:219: contents_view()->AcceleratorPressed(accelerator)) { On 2016/03/04 04:12:08, Evan Stade wrote: > ...
4 years, 9 months ago (2016-03-04 18:21:09 UTC) #18
msw
> Okay, good argument, I suppose I'm in favor of adding HandlesAccelerator. Maybe add some ...
4 years, 9 months ago (2016-03-04 18:21:51 UTC) #19
Evan Stade
+sky as msw is ooo https://codereview.chromium.org/1759453002/diff/80001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc File chrome/browser/ui/views/autofill/save_card_bubble_views.cc (right): https://codereview.chromium.org/1759453002/diff/80001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc#newcode98 chrome/browser/ui/views/autofill/save_card_bubble_views.cc:98: return true; On 2016/03/03 ...
4 years, 9 months ago (2016-03-07 18:36:38 UTC) #21
sky
https://codereview.chromium.org/1759453002/diff/100001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1759453002/diff/100001/ui/views/window/dialog_client_view.cc#newcode218 ui/views/window/dialog_client_view.cc:218: if (contents_view()->HandlesAccelerator(accelerator) && I dislike this because I think ...
4 years, 9 months ago (2016-03-07 21:14:31 UTC) #22
Evan Stade
https://codereview.chromium.org/1759453002/diff/100001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1759453002/diff/100001/ui/views/window/dialog_client_view.cc#newcode218 ui/views/window/dialog_client_view.cc:218: if (contents_view()->HandlesAccelerator(accelerator) && On 2016/03/07 21:14:31, sky wrote: > ...
4 years, 9 months ago (2016-03-08 01:34:44 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759453002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759453002/140001
4 years, 9 months ago (2016-03-08 01:35:30 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/177701)
4 years, 9 months ago (2016-03-08 02:06:06 UTC) #27
sky
I agree with patchset 7 being less sensible. Moving to DialogDelegateView only works if there ...
4 years, 9 months ago (2016-03-08 16:27:05 UTC) #28
Evan Stade
On 2016/03/08 16:27:05, sky wrote: > I agree with patchset 7 being less sensible. > ...
4 years, 9 months ago (2016-03-08 22:12:20 UTC) #29
sky
On Tue, Mar 8, 2016 at 2:12 PM, <estade@chromium.org> wrote: > On 2016/03/08 16:27:05, sky ...
4 years, 9 months ago (2016-03-08 23:07:58 UTC) #30
Evan Stade
On 2016/03/08 23:07:58, sky wrote: > On Tue, Mar 8, 2016 at 2:12 PM, <mailto:estade@chromium.org> ...
4 years, 9 months ago (2016-03-09 00:39:03 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759453002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759453002/160001
4 years, 9 months ago (2016-03-09 00:40:42 UTC) #33
sky
On Tue, Mar 8, 2016 at 4:39 PM, <estade@chromium.org> wrote: > On 2016/03/08 23:07:58, sky ...
4 years, 9 months ago (2016-03-09 00:57:10 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/178323)
4 years, 9 months ago (2016-03-09 01:15:56 UTC) #36
Evan Stade
https://codereview.chromium.org/1759453002/diff/180001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1759453002/diff/180001/ui/views/window/dialog_client_view.cc#newcode216 ui/views/window/dialog_client_view.cc:216: return cancel_button_->AcceleratorPressed(accelerator); note this additional change from previous. This ...
4 years, 9 months ago (2016-03-09 01:52:37 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759453002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759453002/180001
4 years, 9 months ago (2016-03-09 02:09:43 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/127699)
4 years, 9 months ago (2016-03-09 02:50:11 UTC) #41
sky
https://codereview.chromium.org/1759453002/diff/180001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc File chrome/browser/ui/views/autofill/save_card_bubble_views.cc (right): https://codereview.chromium.org/1759453002/diff/180001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc#newcode71 chrome/browser/ui/views/autofill/save_card_bubble_views.cc:71: if (!learn_more_link_) { DCHECK? CreateExtraView is only called once. ...
4 years, 9 months ago (2016-03-09 16:18:38 UTC) #42
Evan Stade
https://codereview.chromium.org/1759453002/diff/180001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc File chrome/browser/ui/views/autofill/save_card_bubble_views.cc (right): https://codereview.chromium.org/1759453002/diff/180001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc#newcode71 chrome/browser/ui/views/autofill/save_card_bubble_views.cc:71: if (!learn_more_link_) { On 2016/03/09 16:18:38, sky wrote: > ...
4 years, 9 months ago (2016-03-09 22:37:50 UTC) #43
Evan Stade
there are some test failures - please hold off on review till I sort those ...
4 years, 9 months ago (2016-03-09 22:38:26 UTC) #44
Evan Stade
ImmersiveFullscreenController proved to be a headache but tests seem to pass now. https://codereview.chromium.org/1759453002/diff/240001/ash/wm/immersive_fullscreen_controller.h File ash/wm/immersive_fullscreen_controller.h ...
4 years, 9 months ago (2016-03-10 02:17:20 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759453002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759453002/240001
4 years, 9 months ago (2016-03-10 02:18:09 UTC) #47
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 03:28:19 UTC) #49
sky
LGTM
4 years, 9 months ago (2016-03-10 04:45:52 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759453002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759453002/240001
4 years, 9 months ago (2016-03-10 15:23:48 UTC) #52
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 9 months ago (2016-03-10 15:29:22 UTC) #54
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 15:30:51 UTC) #56
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/6c27fa4ddfb8efa64df7c16b783b8252b81834dd
Cr-Commit-Position: refs/heads/master@{#380411}

Powered by Google App Engine
This is Rietveld 408576698