OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_WM_COMMON_SHELF_WM_SHELF_H_ |
| 6 #define ASH_WM_COMMON_SHELF_WM_SHELF_H_ |
| 7 |
| 8 #include "ash/ash_export.h" |
| 9 #include "ash/wm/common/shelf/wm_shelf_types.h" |
| 10 |
| 11 namespace ash { |
| 12 namespace wm { |
| 13 |
| 14 class WmShelfObserver; |
| 15 class WmWindow; |
| 16 |
| 17 // Used for accessing global state. |
| 18 class ASH_EXPORT WmShelf { |
| 19 public: |
| 20 // Returns the window showing the shelf. |
| 21 virtual WmWindow* GetWindow() = 0; |
| 22 |
| 23 virtual ShelfAlignment GetAlignment() = 0; |
| 24 |
| 25 virtual ShelfBackgroundType GetBackgroundType() = 0; |
| 26 |
| 27 virtual void UpdateVisibilityState() = 0; |
| 28 |
| 29 virtual void AddObserver(WmShelfObserver* observer) = 0; |
| 30 virtual void RemoveObserver(WmShelfObserver* observer) = 0; |
| 31 |
| 32 protected: |
| 33 virtual ~WmShelf() {} |
| 34 }; |
| 35 |
| 36 } // namespace wm |
| 37 } // namespace ash |
| 38 |
| 39 #endif // ASH_WM_COMMON_SHELF_WM_SHELF_H_ |
OLD | NEW |