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

Issue 10235010: Prepare SystemTray to support notifications (Closed)

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

Description

Prepare SystemTray to support notifications The following cleanup was done in preparation for notifications which may require multiple SystemTrayBubble instances: * Separate out SystemTrayBubbleView from SystemTrayBubble * Move SystemTray.popup_ -> SystemTrayBubble.bubble_widget_ * Remove scoped_ptr for views (views are owned by the view hierarchy) * Changed behavior to not close when focus is lost so that the default view can be reused. BUG=124269 TEST=All tests should pass; system tray behavior should be unchanged. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134612

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Rebase #

Total comments: 4

Patch Set 5 : SystemTrayBubbleView changes only. #

Patch Set 6 : Close instead of hide. #

Total comments: 4

Patch Set 7 : Rebase #

Patch Set 8 : Make bubble_ scoped, protect RemoveBubble. #

Total comments: 2

Patch Set 9 : Remove unused bubble_view() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -203 lines) Patch
M ash/system/ime/tray_ime.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/tray/system_tray.h View 1 2 3 4 5 6 7 7 chunks +15 lines, -20 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 6 7 8 12 chunks +290 lines, -183 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
stevenjb
8 years, 8 months ago (2012-04-26 19:43:22 UTC) #1
sadrul
Are there docs for the system-tray notifications somewhere? I was thinking there will be a ...
8 years, 8 months ago (2012-04-26 20:12:24 UTC) #2
stevenjb (google-dont-use)
On Thu, Apr 26, 2012 at 1:12 PM, <sadrul@chromium.org> wrote: > Are there docs for ...
8 years, 8 months ago (2012-04-26 20:34:55 UTC) #3
stevenjb
Ping? I have another CL just about ready to go based on this one.
8 years, 7 months ago (2012-04-30 15:55:36 UTC) #4
Ben Goodger (Google)
How are the notifications going to work? My understanding looking at the mocks is that ...
8 years, 7 months ago (2012-04-30 16:02:54 UTC) #5
Ben Goodger (Google)
Also, I would suggest that the notifications UI be implemented in a separate component that ...
8 years, 7 months ago (2012-04-30 16:04:50 UTC) #6
stevenjb
The notifications for system items (power, networking, locale change) are integrated with the system tray; ...
8 years, 7 months ago (2012-04-30 16:15:07 UTC) #7
Ben Goodger (Google)
That makes sense - thanks for the explaination! On Mon, Apr 30, 2012 at 9:15 ...
8 years, 7 months ago (2012-04-30 17:07:48 UTC) #8
sadrul
Please move the removal of scoped_ptr use in a separate cleanup CL http://codereview.chromium.org/10235010/diff/6002/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc ...
8 years, 7 months ago (2012-04-30 17:46:19 UTC) #9
stevenjb
Will move scoped_ptr changes to separate CL. http://codereview.chromium.org/10235010/diff/6002/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): http://codereview.chromium.org/10235010/diff/6002/ash/system/tray/system_tray.cc#newcode440 ash/system/tray/system_tray.cc:440: bubble_view_->set_close_on_deactivate(false); On ...
8 years, 7 months ago (2012-04-30 19:09:53 UTC) #10
sadrul
http://codereview.chromium.org/10235010/diff/25003/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): http://codereview.chromium.org/10235010/diff/25003/ash/system/tray/system_tray.cc#newcode742 ash/system/tray/system_tray.cc:742: bubble_ = NULL; Perhaps it makes sense to have ...
8 years, 7 months ago (2012-04-30 20:01:51 UTC) #11
stevenjb
http://codereview.chromium.org/10235010/diff/25003/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): http://codereview.chromium.org/10235010/diff/25003/ash/system/tray/system_tray.cc#newcode742 ash/system/tray/system_tray.cc:742: bubble_ = NULL; On 2012/04/30 20:01:52, sadrul wrote: > ...
8 years, 7 months ago (2012-04-30 20:25:59 UTC) #12
sadrul
LGTM http://codereview.chromium.org/10235010/diff/28003/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): http://codereview.chromium.org/10235010/diff/28003/ash/system/tray/system_tray.cc#newcode362 ash/system/tray/system_tray.cc:362: SystemTrayBubbleView* bubble_view() const { return bubble_view_; } This ...
8 years, 7 months ago (2012-04-30 21:01:41 UTC) #13
stevenjb
8 years, 7 months ago (2012-04-30 21:45:01 UTC) #14
http://codereview.chromium.org/10235010/diff/28003/ash/system/tray/system_tra...
File ash/system/tray/system_tray.cc (right):

http://codereview.chromium.org/10235010/diff/28003/ash/system/tray/system_tra...
ash/system/tray/system_tray.cc:362: SystemTrayBubbleView* bubble_view() const {
return bubble_view_; }
On 2012/04/30 21:01:41, sadrul wrote:
> This doesn't seem to be used.
Good catch. Removed.

Powered by Google App Engine
This is Rietveld 408576698