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

Issue 11028134: Re-factor Ash Message Center code part 2/4 (Closed)

Created:
8 years, 2 months ago by stevenjb
Modified:
8 years, 2 months ago
Reviewers:
miket_OOO, jennyz
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Moves TrayBubbleView out of ash namespace Creates TrayEventFilter and TrayBubbleWrapper. BUG=150872 For ash.gyp: TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=161888

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 9

Patch Set 4 : Put TrayBubbleView back in ash:: namespace for now #

Patch Set 5 : HideBubble -> HideBubbleWithView #

Total comments: 12

Patch Set 6 : Address feedback #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+554 lines, -371 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray.h View 1 2 3 4 2 chunks +2 lines, -5 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 6 6 chunks +27 lines, -17 lines 0 comments Download
M ash/system/tray/system_tray_bubble.h View 1 2 4 chunks +12 lines, -12 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 1 2 3 4 8 chunks +24 lines, -36 lines 0 comments Download
M ash/system/tray/tray_background_view.h View 1 2 3 4 5 6 3 chunks +25 lines, -0 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 1 2 3 4 5 6 3 chunks +83 lines, -0 lines 0 comments Download
M ash/system/tray/tray_bubble_view.h View 1 2 3 4 5 6 chunks +37 lines, -46 lines 0 comments Download
M ash/system/tray/tray_bubble_view.cc View 1 2 3 4 5 6 13 chunks +59 lines, -191 lines 0 comments Download
A ash/system/tray/tray_bubble_wrapper.h View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A ash/system/tray/tray_bubble_wrapper.cc View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
A ash/system/tray/tray_event_filter.h View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A ash/system/tray/tray_event_filter.cc View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
M ash/system/web_notification/message_center_bubble.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ash/system/web_notification/message_center_bubble.cc View 3 chunks +2 lines, -7 lines 0 comments Download
M ash/system/web_notification/popup_bubble.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ash/system/web_notification/popup_bubble.cc View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M ash/system/web_notification/web_notification_bubble.h View 1 2 2 chunks +10 lines, -15 lines 0 comments Download
M ash/system/web_notification/web_notification_bubble.cc View 1 2 5 chunks +14 lines, -26 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 5 6 1 chunk +13 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
stevenjb
This is the next step in re-factoring the web notification code so that we can ...
8 years, 2 months ago (2012-10-11 17:15:15 UTC) #1
miket_OOO
LGTM, and thanks for doing this. None of my comments are substantive. https://codereview.chromium.org/11028134/diff/3001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc ...
8 years, 2 months ago (2012-10-12 19:53:59 UTC) #2
stevenjb
jennyz@ - I am going to wait for you to review this also since it's ...
8 years, 2 months ago (2012-10-12 20:39:28 UTC) #3
miket_OOO
> Actually, you're right, it is weird, and I think I will change the function ...
8 years, 2 months ago (2012-10-12 21:11:38 UTC) #4
jennyz
ltgm with nits. https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_background_view.h File ash/system/tray/tray_background_view.h (right): https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_background_view.h#newcode90 ash/system/tray/tray_background_view.h:90: // is closed. Hide -> Hides ...
8 years, 2 months ago (2012-10-12 23:05:34 UTC) #5
jennyz
lgtm with nits.
8 years, 2 months ago (2012-10-12 23:06:34 UTC) #6
stevenjb
8 years, 2 months ago (2012-10-12 23:41:50 UTC) #7
https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_back...
File ash/system/tray/tray_background_view.h (right):

https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_back...
ash/system/tray/tray_background_view.h:90: // is closed.
On 2012/10/12 23:05:34, jennyz wrote:
> Hide -> Hides

Done.

https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_back...
ash/system/tray/tray_background_view.h:109: // Initialize animations for the
bubble.
On 2012/10/12 23:05:34, jennyz wrote:
> Initialize->Initializes

Done.

https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_bubb...
File ash/system/tray/tray_bubble_view.cc (right):

https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_bubb...
ash/system/tray/tray_bubble_view.cc:285: void
TrayBubbleView::InitializeAndShowBubble(views::Widget* widget) {
On 2012/10/12 23:05:34, jennyz wrote:
> The input argument widget is not used, remove it?

Done.

https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_bubb...
File ash/system/tray/tray_bubble_view.h (right):

https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_bubb...
ash/system/tray/tray_bubble_view.h:87: // is called.
On 2012/10/12 23:05:34, jennyz wrote:
> Set->Sets

Done.

https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_bubb...
ash/system/tray/tray_bubble_view.h:96: // Return the border insets. Called by
TrayEventFilter.
On 2012/10/12 23:05:34, jennyz wrote:
> Return->Returns

Done.

https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_bubb...
File ash/system/tray/tray_bubble_wrapper.h (right):

https://codereview.chromium.org/11028134/diff/17024/ash/system/tray/tray_bubb...
ash/system/tray/tray_bubble_wrapper.h:21: // Creates and manages thes withe
Widget and EventFilter components of a bubble.
On 2012/10/12 23:05:34, jennyz wrote:
> "thes withe"->"the"?

Done.

Powered by Google App Engine
This is Rietveld 408576698