Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 class Rect; | 12 class Rect; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 class GestureEvent; | 16 class GestureEvent; |
| 17 class MouseEvent; | 17 class MouseEvent; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace ash { | 20 namespace ash { |
| 21 | 21 |
| 22 class ShelfLockingManager; | 22 class ShelfLockingManager; |
| 23 class ShelfView; | |
| 23 class WmShelfObserver; | 24 class WmShelfObserver; |
| 24 class WmWindow; | 25 class WmWindow; |
| 25 | 26 |
| 26 // Used for accessing global state. | 27 // Used for accessing global state. |
| 27 class ASH_EXPORT WmShelf { | 28 class ASH_EXPORT WmShelf { |
| 28 public: | 29 public: |
| 29 // Returns the window showing the shelf. | 30 // Returns the window showing the shelf. |
| 30 virtual WmWindow* GetWindow() = 0; | 31 virtual WmWindow* GetWindow() = 0; |
| 31 | 32 |
| 32 virtual ShelfAlignment GetAlignment() const = 0; | 33 virtual ShelfAlignment GetAlignment() const = 0; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 virtual void UpdateAutoHideForMouseEvent(ui::MouseEvent* event) = 0; | 87 virtual void UpdateAutoHideForMouseEvent(ui::MouseEvent* event) = 0; |
| 87 virtual void UpdateAutoHideForGestureEvent(ui::GestureEvent* event) = 0; | 88 virtual void UpdateAutoHideForGestureEvent(ui::GestureEvent* event) = 0; |
| 88 | 89 |
| 89 virtual void AddObserver(WmShelfObserver* observer) = 0; | 90 virtual void AddObserver(WmShelfObserver* observer) = 0; |
| 90 virtual void RemoveObserver(WmShelfObserver* observer) = 0; | 91 virtual void RemoveObserver(WmShelfObserver* observer) = 0; |
| 91 | 92 |
| 92 // Simulates a virtual keyboard bounds update. | 93 // Simulates a virtual keyboard bounds update. |
| 93 virtual void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) = 0; | 94 virtual void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) = 0; |
| 94 | 95 |
| 95 virtual ShelfLockingManager* GetShelfLockingManagerForTesting() = 0; | 96 virtual ShelfLockingManager* GetShelfLockingManagerForTesting() = 0; |
| 97 virtual ShelfView* GetShelfViewForTesting() = 0; | |
|
James Cook
2016/07/27 19:43:00
I did this because I wanted to move the unit test
msw
2016/07/27 20:12:34
Acknowledged.
| |
| 96 | 98 |
| 97 protected: | 99 protected: |
| 98 virtual ~WmShelf() {} | 100 virtual ~WmShelf() {} |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 } // namespace ash | 103 } // namespace ash |
| 102 | 104 |
| 103 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ | 105 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ |
| OLD | NEW |