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

Issue 10546125: Add WebNotificationTray to the status area (Closed)

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

Description

Add WebNotificationTray to the status area This CL: * Adds WebNotificationTray and its Delegate class for handling web/app notifications in the status area * Adds hooks to SystemTray so that StatusAreaWidget can hide system notifications when web notifications are viewed BUG=124914 TEST=WebNotificationTrayTest unittest passes, system tray functionality is unchanged, web notification tray works in ash_shell. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141985

Patch Set 1 #

Patch Set 2 : . #

Total comments: 24

Patch Set 3 : Rebase #

Patch Set 4 : Make WebNotificationTray::Bubble a Widget::Observer; address nits #

Total comments: 2

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1251 lines, -13 lines) Patch
M ash/ash.gyp View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M ash/ash_strings.grd View 1 chunk +12 lines, -0 lines 0 comments Download
M ash/shell/window_type_launcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/window_type_launcher.cc View 4 chunks +15 lines, -1 line 0 comments Download
M ash/system/status_area_widget.h View 1 3 chunks +26 lines, -3 lines 0 comments Download
M ash/system/status_area_widget.cc View 1 2 3 5 chunks +48 lines, -1 line 0 comments Download
M ash/system/tray/system_tray.h View 2 chunks +10 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray.cc View 3 chunks +14 lines, -1 line 0 comments Download
M ash/system/tray/system_tray_bubble.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
A ash/system/web_notification/web_notification_tray.h View 1 2 3 1 chunk +165 lines, -0 lines 0 comments Download
A ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 1 chunk +827 lines, -0 lines 0 comments Download
A ash/system/web_notification/web_notification_tray_unittest.cc View 1 chunk +106 lines, -0 lines 0 comments Download
M ash/wm/shelf_layout_manager.cc View 1 3 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
stevenjb
Ready for Review. Mostly this just adds WebNotificationTray, with some small changes to StatusAreaWidget to ...
8 years, 6 months ago (2012-06-12 18:44:16 UTC) #1
stevenjb
Ping?
8 years, 6 months ago (2012-06-13 16:29:21 UTC) #2
stevenjb
+ben for shell/wm changes
8 years, 6 months ago (2012-06-13 16:30:15 UTC) #3
sadrul
ash/system LGTM (with a couple of nits and questions/comments) http://codereview.chromium.org/10546125/diff/2001/ash/system/status_area_widget.cc File ash/system/status_area_widget.cc (right): http://codereview.chromium.org/10546125/diff/2001/ash/system/status_area_widget.cc#newcode350 ash/system/status_area_widget.cc:350: ...
8 years, 6 months ago (2012-06-13 16:37:56 UTC) #4
Ben Goodger (Google)
two things: - can you add a button to the window type launcher in ash_shell ...
8 years, 6 months ago (2012-06-13 16:46:10 UTC) #5
stevenjb
http://codereview.chromium.org/10546125/diff/2001/ash/system/status_area_widget.cc File ash/system/status_area_widget.cc (right): http://codereview.chromium.org/10546125/diff/2001/ash/system/status_area_widget.cc#newcode350 ash/system/status_area_widget.cc:350: bool value, On 2012/06/13 16:37:56, sadrul wrote: > less ...
8 years, 6 months ago (2012-06-13 19:05:02 UTC) #6
stevenjb
On 2012/06/13 16:46:10, Ben Goodger (Google) wrote: > two things: > > - can you ...
8 years, 6 months ago (2012-06-13 19:06:22 UTC) #7
stevenjb
On 2012/06/13 19:06:22, stevenjb (chromium) wrote: > On 2012/06/13 16:46:10, Ben Goodger (Google) wrote: > ...
8 years, 6 months ago (2012-06-13 19:07:30 UTC) #8
Ben Goodger (Google)
8 years, 6 months ago (2012-06-13 21:04:33 UTC) #9
LGTM

On Wed, Jun 13, 2012 at 12:07 PM, <stevenjb@chromium.org> wrote:

> On 2012/06/13 19:06:22, stevenjb (chromium) wrote:
>
>> On 2012/06/13 16:46:10, Ben Goodger (Google) wrote:
>> > two things:
>> >
>> > - can you add a button to the window type launcher in ash_shell to add a
>> > notification each time it's pressed?
>> There should already be one added, in ash/shell/window_type_**
>> launcher.cc.
>>
>
>  > - does the notification tray depend on the system tray? if so, why?
>> It does not. Right now all of the status area code is in ash/system. We
>> should
>> consider renaming the directory (but probably not in this CL).
>>
>
> To clarify that, both SystemTray and WebNotificationTray are owned by
> StatusAreaWidget (ash/system/status_area_**widget.cc).
>
>
>
http://codereview.chromium.**org/10546125/<http://codereview.chromium.org/105...
>

Powered by Google App Engine
This is Rietveld 408576698