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

Issue 1717453003: Introduce BubbleDialogDelegateView, which extends DialogDelegateView (Closed)

Created:
4 years, 10 months ago by Evan Stade
Modified:
4 years, 9 months ago
CC:
chromium-reviews, msw+watch_chromium.org, rouslan+autofill_chromium.org, tfarina, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, groby+bubble_chromium.org, hcarmona+bubble_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, rouslan+bubble_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce BubbleDialogDelegateView, which extends DialogDelegateView and shares more code with it than BubbleDelegateView. The idea is to eventually replace BubbleDelegateView. I'd just have modified BubbleDelegateView in place, but it requires updates to many bubbles, so the two classes coexist for now. This CL also removes redundant code in DialogClientView for laying out the footnote view. I verified this doesn't affect the one place that was using the code (CardUnmaskPromptViews). SessionCrashedBubbleView is the only bubble using the new parent class so far. It got a bit simpler because it didn't have to reimplement the button strip. BUG=585312 Committed: https://crrev.com/4c499dc1bed6d263ffd30dff5e9abab76ffc6094 Cr-Commit-Position: refs/heads/master@{#378545}

Patch Set 1 #

Patch Set 2 : remove includes #

Patch Set 3 : . #

Total comments: 18

Patch Set 4 : msw review #

Total comments: 4

Patch Set 5 : sky review #

Patch Set 6 : relative ps #

Total comments: 1

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Patch Set 9 : don't touch esc accelerator #

Patch Set 10 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -376 lines) Patch
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.h View 1 2 3 4 6 chunks +10 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/autofill/save_card_bubble_views.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/save_card_bubble_views.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_installed_bubble_view.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/session_crashed_bubble_view.h View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -21 lines 0 comments Download
M chrome/browser/ui/views/session_crashed_bubble_view.cc View 1 2 3 4 5 6 7 8 9 chunks +29 lines, -45 lines 0 comments Download
M ui/views/bubble/bubble_delegate.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/bubble/bubble_delegate.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + ui/views/bubble/bubble_dialog_delegate.h View 1 2 3 6 chunks +15 lines, -19 lines 0 comments Download
A + ui/views/bubble/bubble_dialog_delegate.cc View 1 2 3 4 5 6 7 15 chunks +94 lines, -91 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.h View 1 2 3 4 3 chunks +1 line, -8 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 2 3 4 5 6 7 6 chunks +2 lines, -33 lines 0 comments Download
M ui/views/examples/widget_example.cc View 1 2 3 4 2 chunks +0 lines, -7 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/window/dialog_client_view.h View 1 2 3 4 5 5 chunks +10 lines, -10 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 5 6 7 8 9 10 chunks +9 lines, -45 lines 0 comments Download
M ui/views/window/dialog_client_view_unittest.cc View 1 2 3 4 6 chunks +1 line, -51 lines 0 comments Download
M ui/views/window/dialog_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 2 3 4 2 chunks +2 lines, -8 lines 0 comments Download

Messages

Total messages: 51 (24 generated)
Evan Stade
4 years, 10 months ago (2016-02-19 04:42:35 UTC) #2
Evan Stade
ping msw
4 years, 10 months ago (2016-02-22 18:40:14 UTC) #4
groby-ooo-7-16
CC'ed hcarmona as a heads-up. (For interaction with Bubble Manager)
4 years, 10 months ago (2016-02-22 18:47:31 UTC) #8
msw
https://codereview.chromium.org/1717453003/diff/40001/chrome/browser/ui/views/session_crashed_bubble_view.h File chrome/browser/ui/views/session_crashed_bubble_view.h (right): https://codereview.chromium.org/1717453003/diff/40001/chrome/browser/ui/views/session_crashed_bubble_view.h#newcode34 chrome/browser/ui/views/session_crashed_bubble_view.h:34: class SessionCrashedBubbleView : public SessionCrashedBubble, Does the appearance of ...
4 years, 10 months ago (2016-02-22 21:43:57 UTC) #9
Evan Stade
https://codereview.chromium.org/1717453003/diff/40001/chrome/browser/ui/views/session_crashed_bubble_view.h File chrome/browser/ui/views/session_crashed_bubble_view.h (right): https://codereview.chromium.org/1717453003/diff/40001/chrome/browser/ui/views/session_crashed_bubble_view.h#newcode34 chrome/browser/ui/views/session_crashed_bubble_view.h:34: class SessionCrashedBubbleView : public SessionCrashedBubble, On 2016/02/22 21:43:56, msw ...
4 years, 10 months ago (2016-02-22 22:58:23 UTC) #10
msw
lgtm https://codereview.chromium.org/1717453003/diff/40001/ui/views/bubble/bubble_dialog_delegate.cc File ui/views/bubble/bubble_dialog_delegate.cc (right): https://codereview.chromium.org/1717453003/diff/40001/ui/views/bubble/bubble_dialog_delegate.cc#newcode119 ui/views/bubble/bubble_dialog_delegate.cc:119: client->set_button_row_insets(gfx::Insets()); On 2016/02/22 22:58:23, Evan Stade wrote: > ...
4 years, 10 months ago (2016-02-22 23:24:57 UTC) #11
msw
Oh sorry, I meant to call out the lack of tests. Can you at least ...
4 years, 10 months ago (2016-02-22 23:26:47 UTC) #12
Evan Stade
On 2016/02/22 23:26:47, msw wrote: > Oh sorry, I meant to call out the lack ...
4 years, 10 months ago (2016-02-22 23:38:55 UTC) #13
Evan Stade
over to sky for owners
4 years, 10 months ago (2016-02-22 23:39:09 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717453003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717453003/60001
4 years, 10 months ago (2016-02-22 23:41:06 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/134462) ios_rel_device_ninja on ...
4 years, 10 months ago (2016-02-22 23:45:23 UTC) #19
sky
https://codereview.chromium.org/1717453003/diff/60001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1717453003/diff/60001/ui/views/window/dialog_client_view.cc#newcode57 ui/views/window/dialog_client_view.cc:57: button_row_insets_(gfx::Insets(0, you shouldn't need the extra gfx::Insets here, that ...
4 years, 10 months ago (2016-02-23 17:56:16 UTC) #20
Evan Stade
https://codereview.chromium.org/1717453003/diff/60001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1717453003/diff/60001/ui/views/window/dialog_client_view.cc#newcode57 ui/views/window/dialog_client_view.cc:57: button_row_insets_(gfx::Insets(0, On 2016/02/23 17:56:15, sky wrote: > you shouldn't ...
4 years, 10 months ago (2016-02-23 19:02:37 UTC) #21
sky
LGTM
4 years, 10 months ago (2016-02-23 21:22:23 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717453003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717453003/100001
4 years, 10 months ago (2016-02-23 21:31:22 UTC) #24
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/129469) linux_chromium_compile_dbg_ng on ...
4 years, 10 months ago (2016-02-23 22:11:12 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717453003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717453003/120001
4 years, 10 months ago (2016-02-25 02:21:17 UTC) #29
commit-bot: I haz the power
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/130372)
4 years, 10 months ago (2016-02-25 03:07:34 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717453003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717453003/140001
4 years, 10 months ago (2016-02-25 19:23:24 UTC) #34
commit-bot: I haz the power
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/130753) win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
4 years, 10 months ago (2016-02-25 20:20:30 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717453003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717453003/140001
4 years, 10 months ago (2016-02-25 21:59:58 UTC) #38
commit-bot: I haz the power
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/172358) win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
4 years, 10 months ago (2016-02-25 23:17:29 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717453003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717453003/140001
4 years, 10 months ago (2016-02-26 17:24:15 UTC) #42
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/172924)
4 years, 10 months ago (2016-02-26 17:57:18 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717453003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717453003/180001
4 years, 9 months ago (2016-03-01 20:09:50 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 9 months ago (2016-03-01 20:16:41 UTC) #49
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 20:17:55 UTC) #51
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/4c499dc1bed6d263ffd30dff5e9abab76ffc6094
Cr-Commit-Position: refs/heads/master@{#378545}

Powered by Google App Engine
This is Rietveld 408576698