| 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 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 virtual void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) = 0; | 37 virtual void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) = 0; |
| 38 | 38 |
| 39 virtual ShelfAutoHideState GetAutoHideState() const = 0; | 39 virtual ShelfAutoHideState GetAutoHideState() const = 0; |
| 40 | 40 |
| 41 // Invoke when the auto-hide state may have changed (for example, when the | 41 // Invoke when the auto-hide state may have changed (for example, when the |
| 42 // system tray bubble opens it should force the shelf to be visible). | 42 // system tray bubble opens it should force the shelf to be visible). |
| 43 virtual void UpdateAutoHideState() = 0; | 43 virtual void UpdateAutoHideState() = 0; |
| 44 | 44 |
| 45 virtual ShelfBackgroundType GetBackgroundType() const = 0; | 45 virtual ShelfBackgroundType GetBackgroundType() const = 0; |
| 46 | 46 |
| 47 // Shelf items are slightly dimmed (e.g. when a window is maximized). | |
| 48 virtual bool IsDimmed() const = 0; | |
| 49 | |
| 50 // Whether the shelf item overflow bubble is visible. | 47 // Whether the shelf item overflow bubble is visible. |
| 51 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common. | 48 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common. |
| 52 // http://crbug.com/615155 | 49 // http://crbug.com/615155 |
| 53 virtual bool IsShowingOverflowBubble() const = 0; | 50 virtual bool IsShowingOverflowBubble() const = 0; |
| 54 | 51 |
| 55 // Schedules a repaint for all shelf buttons. | 52 // Schedules a repaint for all shelf buttons. |
| 56 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common. | 53 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common. |
| 57 // http://crbug.com/615155 | 54 // http://crbug.com/615155 |
| 58 virtual void SchedulePaint() = 0; | 55 virtual void SchedulePaint() = 0; |
| 59 | 56 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 virtual ShelfLockingManager* GetShelfLockingManagerForTesting() = 0; | 93 virtual ShelfLockingManager* GetShelfLockingManagerForTesting() = 0; |
| 97 virtual ShelfView* GetShelfViewForTesting() = 0; | 94 virtual ShelfView* GetShelfViewForTesting() = 0; |
| 98 | 95 |
| 99 protected: | 96 protected: |
| 100 virtual ~WmShelf() {} | 97 virtual ~WmShelf() {} |
| 101 }; | 98 }; |
| 102 | 99 |
| 103 } // namespace ash | 100 } // namespace ash |
| 104 | 101 |
| 105 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ | 102 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ |
| OLD | NEW |