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

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

Issue 2239233002: [ash-md] Fades overview header in and out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Fades overview header in and out (crash fix for non-md path) Created 4 years, 4 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // widest rows respectively. In-values of the |max_bottom|, |min_right| and 153 // widest rows respectively. In-values of the |max_bottom|, |min_right| and
154 // |max_right| parameters are ignored and their values are always initialized 154 // |max_right| parameters are ignored and their values are always initialized
155 // inside this method. Returns true on success and false otherwise. 155 // inside this method. Returns true on success and false otherwise.
156 bool FitWindowRectsInBounds(const gfx::Rect& bounds, 156 bool FitWindowRectsInBounds(const gfx::Rect& bounds,
157 int height, 157 int height,
158 std::vector<gfx::Rect>* rects, 158 std::vector<gfx::Rect>* rects,
159 int* max_bottom, 159 int* max_bottom,
160 int* min_right, 160 int* min_right,
161 int* max_right); 161 int* max_right);
162 162
163 // Returns the target bounds of the currently selected item. 163 // Sets up WindowSelectorItem to use masks or shapes based on command flags.
164 const gfx::Rect GetSelectionBounds() const; 164 void PrepareForUsingMasksOrShapes(size_t windows_count) const;
165 165
166 // Root window the grid is in. 166 // Root window the grid is in.
167 WmWindow* root_window_; 167 WmWindow* root_window_;
168 168
169 // Pointer to the window selector that spawned this grid. 169 // Pointer to the window selector that spawned this grid.
170 WindowSelector* window_selector_; 170 WindowSelector* window_selector_;
171 171
172 // Vector containing all the windows in this grid. 172 // Vector containing all the windows in this grid.
173 ScopedVector<WindowSelectorItem> window_list_; 173 ScopedVector<WindowSelectorItem> window_list_;
174 174
(...skipping 14 matching lines...) Expand all
189 189
190 // Number of columns in the grid. 190 // Number of columns in the grid.
191 size_t num_columns_; 191 size_t num_columns_;
192 192
193 DISALLOW_COPY_AND_ASSIGN(WindowGrid); 193 DISALLOW_COPY_AND_ASSIGN(WindowGrid);
194 }; 194 };
195 195
196 } // namespace ash 196 } // namespace ash
197 197
198 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_GRID_H_ 198 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_GRID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698