| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 // Returns the root window on which this item is shown. | 88 // Returns the root window on which this item is shown. |
| 89 WmWindow* root_window() { return root_window_; } | 89 WmWindow* root_window() { return root_window_; } |
| 90 | 90 |
| 91 // Returns true if |target| is contained in this WindowSelectorItem. | 91 // Returns true if |target| is contained in this WindowSelectorItem. |
| 92 bool Contains(const WmWindow* target) const; | 92 bool Contains(const WmWindow* target) const; |
| 93 | 93 |
| 94 // Restores and animates the managed window to its non overview mode state. | 94 // Restores and animates the managed window to its non overview mode state. |
| 95 void RestoreWindow(); | 95 void RestoreWindow(); |
| 96 | 96 |
| 97 // Ensures that a possibly minimized window becomes visible after restore. |
| 98 void EnsureVisible(); |
| 99 |
| 97 // Restores stacking of window captions above the windows, then fades out. | 100 // Restores stacking of window captions above the windows, then fades out. |
| 98 void Shutdown(); | 101 void Shutdown(); |
| 99 | 102 |
| 100 // Dispatched before beginning window overview. This will do any necessary | 103 // Dispatched before beginning window overview. This will do any necessary |
| 101 // one time actions such as restoring minimized windows. | 104 // one time actions such as restoring minimized windows. |
| 102 void PrepareForOverview(); | 105 void PrepareForOverview(); |
| 103 | 106 |
| 104 // Calculates and returns an optimal scale ratio. With MD this is only | 107 // Calculates and returns an optimal scale ratio. With MD this is only |
| 105 // taking into account |size.height()| as the width can vary. Without MD this | 108 // taking into account |size.height()| as the width can vary. Without MD this |
| 106 // returns the scale that allows the item to fully fit within |size|. | 109 // returns the scale that allows the item to fully fit within |size|. |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // Pointer to a view that covers the original header and has rounded top | 254 // Pointer to a view that covers the original header and has rounded top |
| 252 // corners. This view can have its color and opacity animated. | 255 // corners. This view can have its color and opacity animated. |
| 253 RoundedContainerView* background_view_; | 256 RoundedContainerView* background_view_; |
| 254 | 257 |
| 255 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); | 258 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); |
| 256 }; | 259 }; |
| 257 | 260 |
| 258 } // namespace ash | 261 } // namespace ash |
| 259 | 262 |
| 260 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ | 263 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ |
| OLD | NEW |