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

Unified Diff: ash/shelf/shelf_layout_manager_observer.h

Issue 2007003002: mash: Preliminary support for shelf auto-hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shutdown
Patch Set: cleanup Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ash/shelf/shelf_layout_manager_observer.h
diff --git a/ash/shelf/shelf_layout_manager_observer.h b/ash/shelf/shelf_layout_manager_observer.h
index bfb3005dfddc3bc8c488c58295264d788761d493..86b3ce15fe24fb64634cd53a4dcb72474fcc7e8e 100644
--- a/ash/shelf/shelf_layout_manager_observer.h
+++ b/ash/shelf/shelf_layout_manager_observer.h
@@ -15,6 +15,8 @@ class Window;
namespace ash {
+class ShelfLayoutManager;
+
class ASH_EXPORT ShelfLayoutManagerObserver {
public:
virtual ~ShelfLayoutManagerObserver() {}
@@ -25,8 +27,13 @@ class ASH_EXPORT ShelfLayoutManagerObserver {
// Called when the visibility change is scheduled.
virtual void WillChangeVisibilityState(ShelfVisibilityState new_state) {}
+ // Called when the visibility change is committed.
+ virtual void DidChangeVisibilityState(ShelfLayoutManager* layout_manager,
msw 2016/05/24 20:46:55 optional nit: pass the ash::Shelf instead? ditto b
James Cook 2016/05/25 00:25:43 I moved this method to the delegate and removed th
+ ShelfVisibilityState new_state) {}
+
// Called when the auto hide state is changed.
- virtual void OnAutoHideStateChanged(ShelfAutoHideState new_state) {}
+ virtual void OnAutoHideStateChanged(ShelfLayoutManager* layout_manager,
+ ShelfAutoHideState new_state) {}
// Called when shelf background animation is started.
virtual void OnBackgroundUpdated(wm::ShelfBackgroundType background_type,

Powered by Google App Engine
This is Rietveld 408576698