| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // Returns the root window on which this item is shown. | 60 // Returns the root window on which this item is shown. |
| 61 WmWindow* root_window() { return root_window_; } | 61 WmWindow* root_window() { return root_window_; } |
| 62 | 62 |
| 63 // Returns true if |target| is contained in this WindowSelectorItem. | 63 // Returns true if |target| is contained in this WindowSelectorItem. |
| 64 bool Contains(const WmWindow* target) const; | 64 bool Contains(const WmWindow* target) const; |
| 65 | 65 |
| 66 // Restores and animates the managed window to its non overview mode state. | 66 // Restores and animates the managed window to its non overview mode state. |
| 67 void RestoreWindow(); | 67 void RestoreWindow(); |
| 68 | 68 |
| 69 // Ensures that a possibly minimized window becomes visible after restore. |
| 70 void EnsureVisible(); |
| 71 |
| 69 // Restores stacking of window captions above the windows, then fades out. | 72 // Restores stacking of window captions above the windows, then fades out. |
| 70 void Shutdown(); | 73 void Shutdown(); |
| 71 | 74 |
| 72 // Dispatched before beginning window overview. This will do any necessary | 75 // Dispatched before beginning window overview. This will do any necessary |
| 73 // one time actions such as restoring minimized windows. | 76 // one time actions such as restoring minimized windows. |
| 74 void PrepareForOverview(); | 77 void PrepareForOverview(); |
| 75 | 78 |
| 76 // Calculates and returns an optimal scale ratio. With MD this is only | 79 // Calculates and returns an optimal scale ratio. With MD this is only |
| 77 // taking into account |size.height()| as the width can vary. Without MD this | 80 // taking into account |size.height()| as the width can vary. Without MD this |
| 78 // returns the scale that allows the item to fully fit within |size|. | 81 // returns the scale that allows the item to fully fit within |size|. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // corners. This view can have its color and opacity animated. It has a layer | 222 // corners. This view can have its color and opacity animated. It has a layer |
| 220 // which is the only textured layer used by the |item_widget_|. | 223 // which is the only textured layer used by the |item_widget_|. |
| 221 RoundedContainerView* background_view_; | 224 RoundedContainerView* background_view_; |
| 222 | 225 |
| 223 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); | 226 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); |
| 224 }; | 227 }; |
| 225 | 228 |
| 226 } // namespace ash | 229 } // namespace ash |
| 227 | 230 |
| 228 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ | 231 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ |
| OLD | NEW |