Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: ash/common/wm/overview/window_grid.h

Issue 2141133002: [ash-md] Animates overview shield in and out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Completes shield opacity animation after overview closes (nits) Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GRID_H_ 5 #ifndef ASH_COMMON_WM_OVERVIEW_WINDOW_GRID_H_
6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_GRID_H_ 6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_GRID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // 0, 3, 6, 1, 4, 2, 5 48 // 0, 3, 6, 1, 4, 2, 5
49 // The selector is switched to the next window grid (if available) or wrapped if 49 // The selector is switched to the next window grid (if available) or wrapped if
50 // it reaches the end of its movement sequence. 50 // it reaches the end of its movement sequence.
51 class ASH_EXPORT WindowGrid : public WmWindowObserver { 51 class ASH_EXPORT WindowGrid : public WmWindowObserver {
52 public: 52 public:
53 WindowGrid(WmWindow* root_window, 53 WindowGrid(WmWindow* root_window,
54 const std::vector<WmWindow*>& window_list, 54 const std::vector<WmWindow*>& window_list,
55 WindowSelector* window_selector); 55 WindowSelector* window_selector);
56 ~WindowGrid() override; 56 ~WindowGrid() override;
57 57
58 // Exits overview mode, fading out the |shield_widget_| if necessary.
59 void Shutdown();
60
58 // Prepares the windows in this grid for overview. This will restore all 61 // Prepares the windows in this grid for overview. This will restore all
59 // minimized windows and ensure they are visible. 62 // minimized windows and ensure they are visible.
60 void PrepareForOverview(); 63 void PrepareForOverview();
61 64
62 // Positions all the windows in rows of equal height scaling each window to 65 // Positions all the windows in rows of equal height scaling each window to
63 // fit that height. 66 // fit that height.
64 // Layout is done in 2 stages maintaining fixed MRU ordering. 67 // Layout is done in 2 stages maintaining fixed MRU ordering.
65 // 1. Optimal height is determined. In this stage |height| is bisected to find 68 // 1. Optimal height is determined. In this stage |height| is bisected to find
66 // maximum height which still allows all the windows to fit. 69 // maximum height which still allows all the windows to fit.
67 // 2. Row widths are balanced. In this stage the available width is reduced 70 // 2. Row widths are balanced. In this stage the available width is reduced
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 189
187 // Number of columns in the grid. 190 // Number of columns in the grid.
188 size_t num_columns_; 191 size_t num_columns_;
189 192
190 DISALLOW_COPY_AND_ASSIGN(WindowGrid); 193 DISALLOW_COPY_AND_ASSIGN(WindowGrid);
191 }; 194 };
192 195
193 } // namespace ash 196 } // namespace ash
194 197
195 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_GRID_H_ 198 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_GRID_H_
OLDNEW
« no previous file with comments | « ash/common/wm/overview/cleanup_animation_observer_unittest.cc ('k') | ash/common/wm/overview/window_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698