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

Side by Side Diff: ash/shelf/shelf_layout_manager_observer.h

Issue 1851883002: Cleanup shelf initialization and observation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check for shelf before setting prefs in ChromeLauncherController. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_
6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf/background_animator.h" 9 #include "ash/shelf/background_animator.h"
10 #include "ash/shelf/shelf_types.h" 10 #include "ash/shelf/shelf_types.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // Called when the target ShelfLayoutManager will be deleted. 22 // Called when the target ShelfLayoutManager will be deleted.
23 virtual void WillDeleteShelf() {} 23 virtual void WillDeleteShelf() {}
24 24
25 // Called when the visibility change is scheduled. 25 // Called when the visibility change is scheduled.
26 virtual void WillChangeVisibilityState(ShelfVisibilityState new_state) {} 26 virtual void WillChangeVisibilityState(ShelfVisibilityState new_state) {}
27 27
28 // Called when the auto hide state is changed. 28 // Called when the auto hide state is changed.
29 virtual void OnAutoHideStateChanged(ShelfAutoHideState new_state) {} 29 virtual void OnAutoHideStateChanged(ShelfAutoHideState new_state) {}
30 30
31 // Called when the auto hide behavior is changed.
32 virtual void OnAutoHideBehaviorChanged(aura::Window* root_window,
33 ShelfAutoHideBehavior new_behavior) {}
34
35 // Called when shelf background animation is started. 31 // Called when shelf background animation is started.
36 virtual void OnBackgroundUpdated( 32 virtual void OnBackgroundUpdated(
37 ShelfBackgroundType background_type, 33 ShelfBackgroundType background_type,
38 BackgroundAnimatorChangeType change_type) {} 34 BackgroundAnimatorChangeType change_type) {}
39 }; 35 };
40 36
41 } // namespace ash 37 } // namespace ash
42 38
43 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ 39 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698