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 #include "ash/common/wm/overview/window_grid.h" | 5 #include "ash/common/wm/overview/window_grid.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 background_color, border_color, border_thickness, border_radius)); | 261 background_color, border_color, border_thickness, border_radius)); |
262 widget->SetContentsView(content_view); | 262 widget->SetContentsView(content_view); |
263 } | 263 } |
264 widget_window->GetParent()->StackChildAtTop(widget_window); | 264 widget_window->GetParent()->StackChildAtTop(widget_window); |
265 widget->Show(); | 265 widget->Show(); |
266 widget_window->SetOpacity(initial_opacity); | 266 widget_window->SetOpacity(initial_opacity); |
267 return widget; | 267 return widget; |
268 } | 268 } |
269 | 269 |
270 bool IsMinimizedStateType(wm::WindowStateType type) { | 270 bool IsMinimizedStateType(wm::WindowStateType type) { |
271 return type == wm::WINDOW_STATE_TYPE_DOCKED_MINIMIZED || | 271 return type == wm::WINDOW_STATE_TYPE_MINIMIZED; |
272 type == wm::WINDOW_STATE_TYPE_MINIMIZED; | |
273 } | 272 } |
274 | 273 |
275 } // namespace | 274 } // namespace |
276 | 275 |
277 WindowGrid::WindowGrid(WmWindow* root_window, | 276 WindowGrid::WindowGrid(WmWindow* root_window, |
278 const std::vector<WmWindow*>& windows, | 277 const std::vector<WmWindow*>& windows, |
279 WindowSelector* window_selector) | 278 WindowSelector* window_selector) |
280 : root_window_(root_window), | 279 : root_window_(root_window), |
281 window_selector_(window_selector), | 280 window_selector_(window_selector), |
282 window_observer_(this), | 281 window_observer_(this), |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 *min_right = left; | 839 *min_right = left; |
841 if (*max_right < left) | 840 if (*max_right < left) |
842 *max_right = left; | 841 *max_right = left; |
843 } | 842 } |
844 *max_bottom = top + height; | 843 *max_bottom = top + height; |
845 } | 844 } |
846 return windows_fit; | 845 return windows_fit; |
847 } | 846 } |
848 | 847 |
849 } // namespace ash | 848 } // namespace ash |
OLD | NEW |