| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |