| 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_COMMON_SHELF_WM_DIMMER_VIEW_H_ |
| 6 #define ASH_COMMON_SHELF_WM_DIMMER_VIEW_H_ |
| 7 |
| 8 namespace views { |
| 9 class Widget; |
| 10 } |
| 11 |
| 12 namespace ash { |
| 13 |
| 14 // An interface around a widget and view that dim shelf items slightly when a |
| 15 // window is maximized and visible. See DimmerView for details. This interface |
| 16 // exists to avoid dependencies between ash common shelf code and the aura-only |
| 17 // implementation of DimmerView. |
| 18 // TODO(jamescook): Delete this after material design ships, as MD will not |
| 19 // require shelf dimming. http://crbug.com/614453 |
| 20 class WmDimmerView { |
| 21 public: |
| 22 // Returns the widget that holds the dimmer view. |
| 23 virtual views::Widget* GetDimmerWidget() = 0; |
| 24 |
| 25 // Force the dimmer to be undimmed (e.g. by an open context menu). |
| 26 virtual void ForceUndimming(bool force) = 0; |
| 27 |
| 28 // Returns the current alpha used by the dimming bar. |
| 29 virtual int GetDimmingAlphaForTest() = 0; |
| 30 |
| 31 protected: |
| 32 virtual ~WmDimmerView() {} |
| 33 }; |
| 34 |
| 35 } // namespace ash |
| 36 |
| 37 #endif // ASH_COMMON_SHELF_WM_DIMMER_VIEW_H_ |
| OLD | NEW |