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 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 | 38 |
| 39 // Invoke when the auto-hide state may have changed (for example, when the | 39 // Invoke when the auto-hide state may have changed (for example, when the |
| 40 // system tray bubble opens it should force the shelf to be visible). | 40 // system tray bubble opens it should force the shelf to be visible). |
| 41 virtual void UpdateAutoHideState() = 0; | 41 virtual void UpdateAutoHideState() = 0; |
| 42 | 42 |
| 43 virtual ShelfBackgroundType GetBackgroundType() const = 0; | 43 virtual ShelfBackgroundType GetBackgroundType() const = 0; |
| 44 | 44 |
| 45 // Shelf items are slightly dimmed (e.g. when a window is maximized). | 45 // Shelf items are slightly dimmed (e.g. when a window is maximized). |
| 46 virtual bool IsDimmed() const = 0; | 46 virtual bool IsDimmed() const = 0; |
| 47 | 47 |
| 48 // Whether the shelf item overflow bubble is visible. | |
| 49 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common. | |
|
msw
2016/07/19 19:14:08
nit: ditto comment for SchedulePaint()?
James Cook
2016/07/19 19:25:13
Done.
| |
| 50 // http://crbug.com/615155 | |
| 51 virtual bool IsShowingOverflowBubble() const = 0; | |
| 52 | |
| 53 // Schedules a repaint for all shelf buttons. | |
| 54 virtual void SchedulePaint() = 0; | |
| 55 | |
| 48 // Whether the shelf view is visible. | 56 // Whether the shelf view is visible. |
| 49 // TODO(jamescook): Consolidate this with GetVisibilityState(). | 57 // TODO(jamescook): Consolidate this with GetVisibilityState(). |
| 50 virtual bool IsVisible() const = 0; | 58 virtual bool IsVisible() const = 0; |
| 51 | 59 |
| 52 virtual void UpdateVisibilityState() = 0; | 60 virtual void UpdateVisibilityState() = 0; |
| 53 | 61 |
| 54 virtual ShelfVisibilityState GetVisibilityState() const = 0; | 62 virtual ShelfVisibilityState GetVisibilityState() const = 0; |
| 55 | 63 |
| 56 // Returns the ideal bounds of the shelf assuming it is visible. | 64 // Returns the ideal bounds of the shelf assuming it is visible. |
| 57 virtual gfx::Rect GetIdealBounds() = 0; | 65 virtual gfx::Rect GetIdealBounds() = 0; |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 81 // Simulates a virtual keyboard bounds update. | 89 // Simulates a virtual keyboard bounds update. |
| 82 virtual void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) = 0; | 90 virtual void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) = 0; |
| 83 | 91 |
| 84 protected: | 92 protected: |
| 85 virtual ~WmShelf() {} | 93 virtual ~WmShelf() {} |
| 86 }; | 94 }; |
| 87 | 95 |
| 88 } // namespace ash | 96 } // namespace ash |
| 89 | 97 |
| 90 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ | 98 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ |
| OLD | NEW |