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

Side by Side Diff: ash/common/shelf/wm_shelf.h

Issue 2029323002: mash: Convert AshPopupAlignmentDelegate to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_SHELF_WM_SHELF_H_ 5 #ifndef ASH_COMMON_SHELF_WM_SHELF_H_
6 #define ASH_COMMON_SHELF_WM_SHELF_H_ 6 #define ASH_COMMON_SHELF_WM_SHELF_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/shelf/shelf_types.h" 9 #include "ash/common/shelf/shelf_types.h"
10 10
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 // Returns the window showing the shelf. 23 // Returns the window showing the shelf.
24 virtual WmWindow* GetWindow() = 0; 24 virtual WmWindow* GetWindow() = 0;
25 25
26 virtual ShelfAlignment GetAlignment() const = 0; 26 virtual ShelfAlignment GetAlignment() const = 0;
27 virtual void SetAlignment(ShelfAlignment alignment) = 0; 27 virtual void SetAlignment(ShelfAlignment alignment) = 0;
28 28
29 virtual ShelfAutoHideBehavior GetAutoHideBehavior() const = 0; 29 virtual ShelfAutoHideBehavior GetAutoHideBehavior() const = 0;
30 virtual void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) = 0; 30 virtual void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) = 0;
31 31
32 virtual ShelfAutoHideState GetAutoHideState() const = 0;
33
32 virtual ShelfBackgroundType GetBackgroundType() const = 0; 34 virtual ShelfBackgroundType GetBackgroundType() const = 0;
33 35
34 virtual void UpdateVisibilityState() = 0; 36 virtual void UpdateVisibilityState() = 0;
35 37
36 virtual ShelfVisibilityState GetVisibilityState() const = 0; 38 virtual ShelfVisibilityState GetVisibilityState() const = 0;
37 39
40 virtual gfx::Rect GetUserWorkAreaBounds() const = 0;
41
38 virtual void UpdateIconPositionForWindow(WmWindow* window) = 0; 42 virtual void UpdateIconPositionForWindow(WmWindow* window) = 0;
39 43
40 // Returns the screen bounds of the item for the specified window. If there is 44 // Returns the screen bounds of the item for the specified window. If there is
41 // no item for the specified window an empty rect is returned. 45 // no item for the specified window an empty rect is returned.
42 virtual gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window) = 0; 46 virtual gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window) = 0;
43 47
44 virtual void AddObserver(WmShelfObserver* observer) = 0; 48 virtual void AddObserver(WmShelfObserver* observer) = 0;
45 virtual void RemoveObserver(WmShelfObserver* observer) = 0; 49 virtual void RemoveObserver(WmShelfObserver* observer) = 0;
46 50
47 protected: 51 protected:
48 virtual ~WmShelf() {} 52 virtual ~WmShelf() {}
49 }; 53 };
50 54
51 } // namespace ash 55 } // namespace ash
52 56
53 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ 57 #endif // ASH_COMMON_SHELF_WM_SHELF_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698