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

Issue 2901273003: chromeos: Remove TrayBubbleView::Delegate::OnBeforeBubbleWidgetInit (Closed)

Created:
3 years, 7 months ago by James Cook
Modified:
3 years, 6 months ago
Reviewers:
msw, stevenjb
CC:
chromium-reviews, groby+bubble_chromium.org, sadrul, tfarina, hcarmona+bubble_chromium.org, kalyank, rouslan+bubble_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Remove TrayBubbleView::Delegate::OnBeforeBubbleWidgetInit This method was added to let mash set the widget container back when mash could not use aura::Window. Now we can set the parent aura::Window explicitly. Eliminate the TrayBubbleView::Create() factory method because its signature is identical to the constructor and it doesn't do any validation. Eliminate some GetInitParams / GetDefaultInitParams methods that were only used by WebNotificationTray. This is mostly a manual revert of: https://codereview.chromium.org/2092473002/ BUG=671246 TEST=ash_unittests, views_unittests, manually opening all system tray bubbles on primary and secondary monitors Review-Url: https://codereview.chromium.org/2901273003 Cr-Commit-Position: refs/heads/master@{#475682} Committed: https://chromium.googlesource.com/chromium/src/+/c3301607c94a89ec896e7c33f0ec1612e995e84e

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 6

Patch Set 3 : comments, use InitParams for all parameters #

Total comments: 1

Patch Set 4 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -159 lines) Patch
M ash/system/ime_menu/ime_menu_tray.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ash/system/ime_menu/ime_menu_tray.cc View 1 2 3 chunks +8 lines, -15 lines 0 comments Download
M ash/system/palette/palette_tray.h View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M ash/system/palette/palette_tray.cc View 1 2 3 chunks +8 lines, -17 lines 0 comments Download
M ash/system/tray/system_tray.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 2 chunks +4 lines, -12 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M ash/system/tray/tray_background_view.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 chunks +14 lines, -17 lines 0 comments Download
M ui/message_center/views/message_bubble_base.h View 1 2 3 chunks +1 line, -6 lines 0 comments Download
M ui/message_center/views/message_bubble_base.cc View 1 2 2 chunks +0 lines, -11 lines 0 comments Download
M ui/message_center/views/message_center_bubble.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ui/message_center/views/message_center_bubble.cc View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M ui/views/bubble/bubble_dialog_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/bubble/tray_bubble_view.h View 1 2 3 4 chunks +12 lines, -25 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 3 3 chunks +8 lines, -24 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
James Cook
msw, please take a look.
3 years, 7 months ago (2017-05-24 16:42:30 UTC) #3
msw
A couple questions, the parent one is more pertinent. https://codereview.chromium.org/2901273003/diff/20001/ui/views/bubble/bubble_dialog_delegate.h File ui/views/bubble/bubble_dialog_delegate.h (left): https://codereview.chromium.org/2901273003/diff/20001/ui/views/bubble/bubble_dialog_delegate.h#oldcode103 ui/views/bubble/bubble_dialog_delegate.h:103: ...
3 years, 7 months ago (2017-05-24 18:04:39 UTC) #7
James Cook
https://codereview.chromium.org/2901273003/diff/20001/ui/views/bubble/bubble_dialog_delegate.h File ui/views/bubble/bubble_dialog_delegate.h (left): https://codereview.chromium.org/2901273003/diff/20001/ui/views/bubble/bubble_dialog_delegate.h#oldcode103 ui/views/bubble/bubble_dialog_delegate.h:103: virtual void OnBeforeBubbleWidgetInit(Widget::InitParams* params, On 2017/05/24 18:04:38, msw wrote: ...
3 years, 7 months ago (2017-05-24 18:27:04 UTC) #8
msw
https://codereview.chromium.org/2901273003/diff/20001/ui/views/bubble/bubble_dialog_delegate.h File ui/views/bubble/bubble_dialog_delegate.h (left): https://codereview.chromium.org/2901273003/diff/20001/ui/views/bubble/bubble_dialog_delegate.h#oldcode103 ui/views/bubble/bubble_dialog_delegate.h:103: virtual void OnBeforeBubbleWidgetInit(Widget::InitParams* params, On 2017/05/24 18:27:04, James Cook ...
3 years, 7 months ago (2017-05-24 18:48:36 UTC) #9
James Cook
msw, please take another look. I converted TrayBubbleView to take all its params via InitParams, ...
3 years, 6 months ago (2017-05-30 16:07:25 UTC) #13
msw
lgtm with an optional nit; thanks for the extra cleanup! https://codereview.chromium.org/2901273003/diff/40001/ui/views/bubble/tray_bubble_view.cc File ui/views/bubble/tray_bubble_view.cc (right): https://codereview.chromium.org/2901273003/diff/40001/ui/views/bubble/tray_bubble_view.cc#newcode175 ...
3 years, 6 months ago (2017-05-30 18:36:04 UTC) #16
James Cook
Steven, can I get owners approval for ui/message_center/* ? (Also, do you happen to know ...
3 years, 6 months ago (2017-05-30 20:03:27 UTC) #20
stevenjb
On 2017/05/30 20:03:27, James Cook wrote: > Steven, can I get owners approval for ui/message_center/* ...
3 years, 6 months ago (2017-05-30 21:13:39 UTC) #21
stevenjb
ui/message_center lgtm
3 years, 6 months ago (2017-05-30 21:14:31 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/2901273003/60001
3 years, 6 months ago (2017-05-30 21:44:25 UTC) #27
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 21:49:41 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c3301607c94a89ec896e7c33f0ec...

Powered by Google App Engine
This is Rietveld 408576698