|
|
Cleanup shelf initialization and observation.
Add ShelfDelegate::OnShelf[Alignment|AutoHideBehavior]Changed.
(needed for mus: https://codereview.chromium.org/1839223003)
(simplifies ChromeLauncherController shelf observation)
Remove ShelfLayoutManagerObserver::OnAutoHideBehaviorChanged.
Add Shell[Observer]::OnShelfAutoHideBehaviorChanged
(similar to alignment calls, used for ShelfLayoutManager)
Move alignment and auto-hide properties to Shelf class.
(lets us better encapsulate ShelfLayoutManager)
Simplify Shell functions that access shelf properties.
Init Shell's ShelfModel earlier (removes ordering constraint).
Call OnShelfCreated after ShelfWidget::shelf_ is actually set.
Make ChromeLauncherController set properties in OnShelfCreated.
(not before the actual shelf exists; update tests similarly)
Skip redundant *FromPrefs init; see SetShelfBehaviorsFromPrefs.
Inline SetShelfAutoHideBehaviorPrefs (like alignment).
BUG= 557406
TEST=No regressions
R=sky@chromium.org
Committed: https://crrev.com/174379b507800b1fd819bb8907644682e9a6302a
Cr-Commit-Position: refs/heads/master@{#385060}
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+319 lines, -294 lines) |
Patch |
 |
M |
ash/mus/shelf_delegate_mus.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/mus/shelf_delegate_mus.cc
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/root_window_controller_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf.h
|
View
|
1
2
3
4
5
|
2 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+26 lines, -7 lines |
1 comment
|
Download
|
 |
M |
ash/shelf/shelf_alignment_menu.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_delegate.h
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_layout_manager.h
|
View
|
1
2
3
4
5
|
6 chunks |
+23 lines, -28 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_layout_manager.cc
|
View
|
1
2
3
4
5
6
|
10 chunks |
+37 lines, -64 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_layout_manager_observer.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_view_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_widget.h
|
View
|
1
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_widget.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_widget_unittest.cc
|
View
|
1
2
3
|
6 chunks |
+64 lines, -20 lines |
0 comments
|
Download
|
 |
M |
ash/shell.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/shell.cc
|
View
|
1
|
5 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
ash/shell/shelf_delegate_impl.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/shell/shelf_delegate_impl.cc
|
View
|
1
|
2 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
 |
M |
ash/shell_observer.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/test/test_shelf_delegate.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/test/test_shelf_delegate.cc
|
View
|
1
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
|
View
|
1
|
8 chunks |
+2 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
|
View
|
1
2
3
4
6
7
|
10 chunks |
+86 lines, -96 lines |
0 comments
|
Download
|
Total messages: 35 (16 generated)
|