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

Issue 10535112: Prepare status area to support multiple trays. (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

Prepare status area to support multiple trays. * Moves system tray ownership and creation to status area widget. * Status area is laid out as a grid for support of additional trays. * Shelf alignment property is moved to TrayBackgroundView BUG=124914 TEST=Status area tests and functionality should be unaffected. TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141671

Patch Set 1 #

Patch Set 2 : . #

Total comments: 9

Patch Set 3 : Address nits #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -332 lines) Patch
M ash/focus_cycler_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M ash/shell.h View 1 2 3 4 chunks +4 lines, -6 lines 0 comments Download
M ash/shell.cc View 1 2 3 8 chunks +18 lines, -283 lines 0 comments Download
M ash/shell/content_client/shell_browser_main_parts.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/content_client/shell_browser_main_parts.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M ash/system/status_area_widget.h View 1 2 2 chunks +22 lines, -1 line 0 comments Download
M ash/system/status_area_widget.cc View 2 chunks +298 lines, -10 lines 0 comments Download
M ash/system/status_area_widget_delegate.h View 3 chunks +15 lines, -4 lines 0 comments Download
M ash/system/status_area_widget_delegate.cc View 3 chunks +44 lines, -5 lines 0 comments Download
M ash/system/tray/system_tray.h View 3 chunks +2 lines, -6 lines 0 comments Download
M ash/system/tray/system_tray.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M ash/system/tray/system_tray_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M ash/system/tray/tray_background_view.h View 3 chunks +9 lines, -0 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 2 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
stevenjb
This is a subset of http://codereview.chromium.org/10514008/. Mostly it moves ownership of the system tray to ...
8 years, 6 months ago (2012-06-11 20:47:01 UTC) #1
jennyz
LGTM with: * Status area is laid out as a grid for support of additional ...
8 years, 6 months ago (2012-06-11 23:50:03 UTC) #2
sadrul
Nice! LGTM with a couple of nits http://codereview.chromium.org/10535112/diff/2015/ash/shell.h File ash/shell.h (right): http://codereview.chromium.org/10535112/diff/2015/ash/shell.h#newcode315 ash/shell.h:315: SystemTray* system_tray(); ...
8 years, 6 months ago (2012-06-12 15:13:39 UTC) #3
stevenjb
8 years, 6 months ago (2012-06-12 16:46:50 UTC) #4
http://codereview.chromium.org/10535112/diff/2015/ash/shell.h
File ash/shell.h (right):

http://codereview.chromium.org/10535112/diff/2015/ash/shell.h#newcode315
ash/shell.h:315: SystemTray* system_tray();
On 2012/06/12 15:13:39, sadrul wrote:
> I feel like it's reasonable to make these accessible from Shell

TODO removed (for now anyway). I'd kind of prefer to move all access through
status area, but we'll see how that looks.

http://codereview.chromium.org/10535112/diff/2015/ash/system/status_area_widg...
File ash/system/status_area_widget.h (right):

http://codereview.chromium.org/10535112/diff/2015/ash/system/status_area_widg...
ash/system/status_area_widget.h:24: public:
On 2012/06/12 15:13:39, sadrul wrote:
> +space

Done.

http://codereview.chromium.org/10535112/diff/2015/ash/system/status_area_widg...
ash/system/status_area_widget.h:46: // Child views owned by the view hierarchy:
On 2012/06/12 15:13:39, sadrul wrote:
> This comment is probably misplaced? (or needs some rewording to clarify :) )
Clarified, hopefully :)

http://codereview.chromium.org/10535112/diff/2015/ash/system/status_area_widg...
File ash/system/status_area_widget_delegate.cc (right):

http://codereview.chromium.org/10535112/diff/2015/ash/system/status_area_widg...
ash/system/status_area_widget_delegate.cc:85: // so that the widget gets laid
out correctly when tray sizes change.
On 2012/06/12 15:13:39, sadrul wrote:
> I am not entirely sure we need grid-layout for this. (SystemTray resizes when
> items change size/visibility, and it doesn't use this)
I started with BoxLayout. The problem is that then any spacing or alignment has
to be done by each child (i.e. tray), whereas with GridLayout we can specify
padding columns to define the spacing between trays and can center each child
vertically.

Powered by Google App Engine
This is Rietveld 408576698