OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SHELF_WIDGET_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_WIDGET_H_ |
6 #define ASH_COMMON_SHELF_SHELF_WIDGET_H_ | 6 #define ASH_COMMON_SHELF_SHELF_WIDGET_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // Called by the activation delegate, before the shelf is activated | 83 // Called by the activation delegate, before the shelf is activated |
84 // when no other windows are visible. | 84 // when no other windows are visible. |
85 void WillActivateAsFallback() { activating_as_fallback_ = true; } | 85 void WillActivateAsFallback() { activating_as_fallback_ = true; } |
86 | 86 |
87 // Clean up prior to deletion. | 87 // Clean up prior to deletion. |
88 void Shutdown(); | 88 void Shutdown(); |
89 | 89 |
90 // Force the shelf to be presented in an undimmed state. | 90 // Force the shelf to be presented in an undimmed state. |
91 void ForceUndimming(bool force); | 91 void ForceUndimming(bool force); |
92 | 92 |
| 93 // See WmShelf::UpdateIconPositionForPanel(). |
| 94 void UpdateIconPositionForPanel(WmWindow* panel); |
| 95 |
| 96 // See WmShelf::GetScreenBoundsOfItemIconForWindow(). |
| 97 gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window); |
| 98 |
93 // Overridden from views::WidgetObserver: | 99 // Overridden from views::WidgetObserver: |
94 void OnWidgetActivationChanged(views::Widget* widget, bool active) override; | 100 void OnWidgetActivationChanged(views::Widget* widget, bool active) override; |
95 | 101 |
96 // A function to test the current alpha used by the dimming bar. If there is | 102 // A function to test the current alpha used by the dimming bar. If there is |
97 // no dimmer active, the function will return -1. | 103 // no dimmer active, the function will return -1. |
98 int GetDimmingAlphaForTest(); | 104 int GetDimmingAlphaForTest(); |
99 | 105 |
100 // A function to test the bounds of the dimming bar. Returns gfx::Rect() if | 106 // A function to test the bounds of the dimming bar. Returns gfx::Rect() if |
101 // the dimmer is inactive. | 107 // the dimmer is inactive. |
102 gfx::Rect GetDimmerBoundsForTest(); | 108 gfx::Rect GetDimmerBoundsForTest(); |
(...skipping 26 matching lines...) Expand all Loading... |
129 ShelfView* shelf_view_; | 135 ShelfView* shelf_view_; |
130 ShelfBackgroundAnimator background_animator_; | 136 ShelfBackgroundAnimator background_animator_; |
131 bool activating_as_fallback_; | 137 bool activating_as_fallback_; |
132 | 138 |
133 DISALLOW_COPY_AND_ASSIGN(ShelfWidget); | 139 DISALLOW_COPY_AND_ASSIGN(ShelfWidget); |
134 }; | 140 }; |
135 | 141 |
136 } // namespace ash | 142 } // namespace ash |
137 | 143 |
138 #endif // ASH_COMMON_SHELF_SHELF_WIDGET_H_ | 144 #endif // ASH_COMMON_SHELF_SHELF_WIDGET_H_ |
OLD | NEW |