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

Issue 8743014: [cros, Aura] Refresh status area widget bounds on StatusAreaView layout. (Closed)

Created:
9 years ago by Nikita (slow)
Modified:
9 years ago
Reviewers:
stevenjb, sky
CC:
chromium-reviews, sadrul, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, ben+watch_chromium.org
Visibility:
Public.

Description

[cros, Aura] Refresh status area widget bounds on StatusAreaView layout. Make ShelfLayoutController a ShelfLayoutManager for launcher, status windows. BUG=105661 TEST=Manual. Status area is represented with all icons on Aura. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113185

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : refactor #

Patch Set 4 : cleanup #

Total comments: 9

Patch Set 5 : add separate layout manager for status area #

Total comments: 6

Patch Set 6 : update #

Total comments: 6

Patch Set 7 : nit fixes, merge, prevent double deletion of ShelfLayoutManager #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -280 lines) Patch
M chrome/browser/chromeos/status/status_area_view.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M ui/aura_shell/aura_shell.gyp View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M ui/aura_shell/desktop_layout_manager.h View 1 2 3 chunks +0 lines, -6 lines 0 comments Download
M ui/aura_shell/desktop_layout_manager.cc View 1 2 3 4 chunks +1 line, -7 lines 0 comments Download
ui/aura_shell/shelf_layout_controller.h View 1 2 1 chunk +0 lines, -83 lines 0 comments Download
D ui/aura_shell/shelf_layout_controller.cc View 1 2 3 4 1 chunk +0 lines, -119 lines 0 comments Download
A + ui/aura_shell/shelf_layout_manager.h View 1 2 3 4 5 6 5 chunks +28 lines, -10 lines 0 comments Download
A + ui/aura_shell/shelf_layout_manager.cc View 1 2 3 4 5 6 7 chunks +47 lines, -13 lines 0 comments Download
M ui/aura_shell/shell.h View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M ui/aura_shell/shell.cc View 1 2 3 4 5 6 5 chunks +13 lines, -5 lines 0 comments Download
A + ui/aura_shell/status_area_layout_manager.h View 1 2 3 4 2 chunks +18 lines, -29 lines 0 comments Download
A ui/aura_shell/status_area_layout_manager.cc View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
M ui/aura_shell/toplevel_layout_manager.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M ui/aura_shell/toplevel_layout_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
Nikita (slow)
I'm not sure whether there's alternate and more correct way to fix this. What I've ...
9 years ago (2011-11-30 15:52:37 UTC) #1
Nikita (slow)
+Scott for review.
9 years ago (2011-11-30 15:53:32 UTC) #2
stevenjb
Thanks Nikita for looking into this. This approach seems fine to me, but I will ...
9 years ago (2011-11-30 17:39:28 UTC) #3
sky
I think it would be better to use PreferredSizeChanged, have StatusAreaView override ChildPreferredSizeChanged and reset ...
9 years ago (2011-11-30 21:41:42 UTC) #4
Nikita (slow)
On 2011/11/30 21:41:42, sky wrote: > I think it would be better to use PreferredSizeChanged, ...
9 years ago (2011-12-01 11:12:54 UTC) #5
stevenjb
I took a look through the code, and believe that calling GetWidget()->SetSize() should trigger the ...
9 years ago (2011-12-01 16:59:20 UTC) #6
sky
On Thu, Dec 1, 2011 at 3:12 AM, <nkostylev@chromium.org> wrote: > On 2011/11/30 21:41:42, sky ...
9 years ago (2011-12-01 17:24:31 UTC) #7
Nikita (slow)
On 2011/12/01 17:24:31, sky wrote: > On Thu, Dec 1, 2011 at 3:12 AM, <mailto:nkostylev@chromium.org> ...
9 years ago (2011-12-02 17:05:58 UTC) #8
sky
On 2011/12/02 17:05:58, Nikita Kostylev wrote: > On 2011/12/01 17:24:31, sky wrote: > > On ...
9 years ago (2011-12-02 17:34:08 UTC) #9
Nikita (slow)
So the fix is in status_area_view.cc, I've tested with and without it.
9 years ago (2011-12-02 18:26:20 UTC) #10
sky
http://codereview.chromium.org/8743014/diff/5003/ui/aura_shell/shelf_layout_manager.cc File ui/aura_shell/shelf_layout_manager.cc (right): http://codereview.chromium.org/8743014/diff/5003/ui/aura_shell/shelf_layout_manager.cc#newcode79 ui/aura_shell/shelf_layout_manager.cc:79: SetChildBoundsDirect(child, requested_bounds); I think you want if/else, eg: if ...
9 years ago (2011-12-02 19:25:53 UTC) #11
Nikita (slow)
http://codereview.chromium.org/8743014/diff/5003/ui/aura_shell/shell.cc File ui/aura_shell/shell.cc (right): http://codereview.chromium.org/8743014/diff/5003/ui/aura_shell/shell.cc#newcode199 ui/aura_shell/shell.cc:199: GetContainer(aura_shell::internal::kShellWindowId_LauncherContainer)-> On 2011/12/02 19:25:53, sky wrote: > This won't ...
9 years ago (2011-12-02 21:34:27 UTC) #12
sky
On Fri, Dec 2, 2011 at 1:34 PM, <nkostylev@chromium.org> wrote: > > http://codereview.chromium.org/8743014/diff/5003/ui/aura_shell/shell.cc > File ...
9 years ago (2011-12-02 23:00:04 UTC) #13
Nikita (slow)
http://codereview.chromium.org/8743014/diff/5003/ui/aura_shell/shelf_layout_manager.cc File ui/aura_shell/shelf_layout_manager.cc (right): http://codereview.chromium.org/8743014/diff/5003/ui/aura_shell/shelf_layout_manager.cc#newcode79 ui/aura_shell/shelf_layout_manager.cc:79: SetChildBoundsDirect(child, requested_bounds); On 2011/12/02 19:25:53, sky wrote: > I ...
9 years ago (2011-12-05 14:41:46 UTC) #14
Nikita (slow)
Added separate layout manager for status area.
9 years ago (2011-12-05 14:41:58 UTC) #15
sky
Doesn't the ShelfLayoutManager need to tell the StatusAreaLayoutManager when it's doing layout? http://codereview.chromium.org/8743014/diff/14001/ui/aura_shell/shelf_layout_manager.cc File ui/aura_shell/shelf_layout_manager.cc ...
9 years ago (2011-12-05 15:42:21 UTC) #16
sky
On 2011/12/05 15:42:21, sky wrote: > Doesn't the ShelfLayoutManager need to tell the StatusAreaLayoutManager when ...
9 years ago (2011-12-05 15:42:57 UTC) #17
Nikita (slow)
On 2011/12/05 15:42:57, sky wrote: > On 2011/12/05 15:42:21, sky wrote: > > Doesn't the ...
9 years ago (2011-12-05 17:43:47 UTC) #18
Nikita (slow)
http://codereview.chromium.org/8743014/diff/14001/ui/aura_shell/shelf_layout_manager.cc File ui/aura_shell/shelf_layout_manager.cc (right): http://codereview.chromium.org/8743014/diff/14001/ui/aura_shell/shelf_layout_manager.cc#newcode114 ui/aura_shell/shelf_layout_manager.cc:114: TargetBounds* target_bounds) { On 2011/12/05 15:42:21, sky wrote: > ...
9 years ago (2011-12-05 17:44:05 UTC) #19
sky
LGTM http://codereview.chromium.org/8743014/diff/16009/ui/aura_shell/shelf_layout_manager.h File ui/aura_shell/shelf_layout_manager.h (right): http://codereview.chromium.org/8743014/diff/16009/ui/aura_shell/shelf_layout_manager.h#newcode33 ui/aura_shell/shelf_layout_manager.h:33: bool in_layout() { return in_layout_; } const
9 years ago (2011-12-05 18:16:34 UTC) #20
stevenjb
It seems like the status area layout code could be moved from ShelfLayoutManager to StatusAreaLayoutManager, ...
9 years ago (2011-12-05 20:08:59 UTC) #21
Nikita (slow)
9 years ago (2011-12-06 08:26:19 UTC) #22
http://codereview.chromium.org/8743014/diff/16009/chrome/browser/chromeos/sta...
File chrome/browser/chromeos/status/status_area_view.cc (right):

http://codereview.chromium.org/8743014/diff/16009/chrome/browser/chromeos/sta...
chrome/browser/chromeos/status/status_area_view.cc:17: #include
"ui/aura_shell/shell.h"
On 2011/12/05 20:08:59, Steven Bennetts wrote:
> We don't need this include any more.

Done.

http://codereview.chromium.org/8743014/diff/16009/ui/aura_shell/shelf_layout_...
File ui/aura_shell/shelf_layout_manager.cc (right):

http://codereview.chromium.org/8743014/diff/16009/ui/aura_shell/shelf_layout_...
ui/aura_shell/shelf_layout_manager.cc:29: views::Widget* status)
On 2011/12/05 20:08:59, Steven Bennetts wrote:
> nit: alignment

Done.

http://codereview.chromium.org/8743014/diff/16009/ui/aura_shell/shelf_layout_...
File ui/aura_shell/shelf_layout_manager.h (right):

http://codereview.chromium.org/8743014/diff/16009/ui/aura_shell/shelf_layout_...
ui/aura_shell/shelf_layout_manager.h:33: bool in_layout() { return in_layout_; }
On 2011/12/05 18:16:34, sky wrote:
> const

Done.

Powered by Google App Engine
This is Rietveld 408576698