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

Unified Diff: ash/wm/common/shelf/wm_shelf.h

Issue 1929023002: Refactors WindowResizers to use ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/common/shelf/wm_shelf.h
diff --git a/ash/wm/common/shelf/wm_shelf.h b/ash/wm/common/shelf/wm_shelf.h
index 2bcac6e1af0bac3d3ef0a8ada0965e3b669a053f..488400addbf0f27b10474f3dd4ce97afd7492875 100644
--- a/ash/wm/common/shelf/wm_shelf.h
+++ b/ash/wm/common/shelf/wm_shelf.h
@@ -8,6 +8,10 @@
#include "ash/ash_export.h"
#include "ash/wm/common/shelf/wm_shelf_types.h"
+namespace gfx {
+class Rect;
+}
+
namespace ash {
namespace wm {
@@ -20,12 +24,21 @@ class ASH_EXPORT WmShelf {
// Returns the window showing the shelf.
virtual WmWindow* GetWindow() = 0;
- virtual ShelfAlignment GetAlignment() = 0;
+ virtual ShelfAlignment GetAlignment() const = 0;
- virtual ShelfBackgroundType GetBackgroundType() = 0;
+ virtual ShelfBackgroundType GetBackgroundType() const = 0;
virtual void UpdateVisibilityState() = 0;
+ virtual ShelfVisibilityState GetVisibilityState() const = 0;
+
+ virtual void UpdateIconPositionForWindow(WmWindow* window) = 0;
+
+ // Returns the screen bounds of the item for the specified window. If there is
+ // no item for the specified window an empty rect is returned.
+ virtual gfx::Rect GetScreenBoundsOfItemIconForWindow(
+ wm::WmWindow* window) = 0;
+
virtual void AddObserver(WmShelfObserver* observer) = 0;
virtual void RemoveObserver(WmShelfObserver* observer) = 0;

Powered by Google App Engine
This is Rietveld 408576698