OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ | 5 #ifndef ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ |
6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ | 6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 void SetSelected(bool selected); | 128 void SetSelected(bool selected); |
129 | 129 |
130 // Sends an accessibility event indicating that this window became selected | 130 // Sends an accessibility event indicating that this window became selected |
131 // so that it's highlighted and announced if accessibility features are | 131 // so that it's highlighted and announced if accessibility features are |
132 // enabled. | 132 // enabled. |
133 void SendAccessibleSelectionEvent(); | 133 void SendAccessibleSelectionEvent(); |
134 | 134 |
135 // Closes |transform_window_|. | 135 // Closes |transform_window_|. |
136 void CloseWindow(); | 136 void CloseWindow(); |
137 | 137 |
138 // Hides the original window header and sets shape or mask on a window. | 138 // Hides the original window header. |
139 // When masks are used, rounded corner |radius| can be specified. | 139 void HideHeader(); |
140 // TODO(varkha): remove |radius|. | |
141 void HideHeaderAndSetShape(int radius); | |
142 | 140 |
143 // Sets if the item is dimmed in the overview. Changing the value will also | 141 // Sets if the item is dimmed in the overview. Changing the value will also |
144 // change the visibility of the transform windows. | 142 // change the visibility of the transform windows. |
145 void SetDimmed(bool dimmed); | 143 void SetDimmed(bool dimmed); |
146 bool dimmed() const { return dimmed_; } | 144 bool dimmed() const { return dimmed_; } |
147 | 145 |
148 const gfx::Rect& target_bounds() const { return target_bounds_; } | 146 const gfx::Rect& target_bounds() const { return target_bounds_; } |
149 | 147 |
150 // views::ButtonListener: | 148 // views::ButtonListener: |
151 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 149 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // Pointer to a view that covers the original header and has rounded top | 250 // Pointer to a view that covers the original header and has rounded top |
253 // corners. This view can have its color and opacity animated. | 251 // corners. This view can have its color and opacity animated. |
254 RoundedContainerView* background_view_; | 252 RoundedContainerView* background_view_; |
255 | 253 |
256 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); | 254 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); |
257 }; | 255 }; |
258 | 256 |
259 } // namespace ash | 257 } // namespace ash |
260 | 258 |
261 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ | 259 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ |
OLD | NEW |