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

Unified Diff: ash/common/shelf/shelf_delegate.h

Issue 2279533002: ash: Convert ShelfDelegate to use WmShelf* instead of Shelf* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: curlies Created 4 years, 4 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
« no previous file with comments | « ash/common/shelf/shelf.cc ('k') | ash/common/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_delegate.h
diff --git a/ash/common/shelf/shelf_delegate.h b/ash/common/shelf/shelf_delegate.h
index 7c58121d3fa110714ee4607591e3da7e5af5403f..fa5e0b9cc66d2e373a82005967214fb94ec4330d 100644
--- a/ash/common/shelf/shelf_delegate.h
+++ b/ash/common/shelf/shelf_delegate.h
@@ -5,11 +5,14 @@
#ifndef ASH_COMMON_SHELF_SHELF_DELEGATE_H_
#define ASH_COMMON_SHELF_SHELF_DELEGATE_H_
+#include <string>
+
#include "ash/ash_export.h"
#include "ash/common/shelf/shelf_item_types.h"
namespace ash {
-class Shelf;
+
+class WmShelf;
// Delegate shared by all shelf instances.
class ASH_EXPORT ShelfDelegate {
@@ -18,23 +21,23 @@ class ASH_EXPORT ShelfDelegate {
// Callback used to allow delegate to perform initialization actions that
// depend on the Shelf being in a known state.
- virtual void OnShelfCreated(Shelf* shelf) = 0;
+ virtual void OnShelfCreated(WmShelf* shelf) = 0;
// Callback used to inform the delegate that a specific shelf no longer
// exists.
- virtual void OnShelfDestroyed(Shelf* shelf) = 0;
+ virtual void OnShelfDestroyed(WmShelf* shelf) = 0;
// Called when |shelf|'s alignment changes.
- virtual void OnShelfAlignmentChanged(Shelf* shelf) = 0;
+ virtual void OnShelfAlignmentChanged(WmShelf* shelf) = 0;
// Called when |shelf|'s auto-hide behavior changes.
- virtual void OnShelfAutoHideBehaviorChanged(Shelf* shelf) = 0;
+ virtual void OnShelfAutoHideBehaviorChanged(WmShelf* shelf) = 0;
// Called when |shelf|'s auto-hide state changes.
- virtual void OnShelfAutoHideStateChanged(Shelf* shelf) = 0;
+ virtual void OnShelfAutoHideStateChanged(WmShelf* shelf) = 0;
// Called when |shelf|'s visibility state is committed.
- virtual void OnShelfVisibilityStateChanged(Shelf* shelf) = 0;
+ virtual void OnShelfVisibilityStateChanged(WmShelf* shelf) = 0;
// Get the shelf ID from an application ID.
virtual ShelfID GetShelfIDForAppID(const std::string& app_id) = 0;
« no previous file with comments | « ash/common/shelf/shelf.cc ('k') | ash/common/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698