| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 background_color, border_color, border_thickness, border_radius)); | 260 background_color, border_color, border_thickness, border_radius)); |
| 261 widget->SetContentsView(content_view); | 261 widget->SetContentsView(content_view); |
| 262 } | 262 } |
| 263 widget_window->GetParent()->StackChildAtTop(widget_window); | 263 widget_window->GetParent()->StackChildAtTop(widget_window); |
| 264 widget->Show(); | 264 widget->Show(); |
| 265 widget_window->SetOpacity(initial_opacity); | 265 widget_window->SetOpacity(initial_opacity); |
| 266 return widget; | 266 return widget; |
| 267 } | 267 } |
| 268 | 268 |
| 269 bool IsMinimizedStateType(wm::WindowStateType type) { | 269 bool IsMinimizedStateType(wm::WindowStateType type) { |
| 270 return type == wm::WINDOW_STATE_TYPE_DOCKED_MINIMIZED || | 270 return type == wm::WINDOW_STATE_TYPE_MINIMIZED; |
| 271 type == wm::WINDOW_STATE_TYPE_MINIMIZED; | |
| 272 } | 271 } |
| 273 | 272 |
| 274 } // namespace | 273 } // namespace |
| 275 | 274 |
| 276 WindowGrid::WindowGrid(WmWindow* root_window, | 275 WindowGrid::WindowGrid(WmWindow* root_window, |
| 277 const std::vector<WmWindow*>& windows, | 276 const std::vector<WmWindow*>& windows, |
| 278 WindowSelector* window_selector) | 277 WindowSelector* window_selector) |
| 279 : root_window_(root_window), | 278 : root_window_(root_window), |
| 280 window_selector_(window_selector), | 279 window_selector_(window_selector), |
| 281 window_observer_(this), | 280 window_observer_(this), |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 *min_right = left; | 834 *min_right = left; |
| 836 if (*max_right < left) | 835 if (*max_right < left) |
| 837 *max_right = left; | 836 *max_right = left; |
| 838 } | 837 } |
| 839 *max_bottom = top + height; | 838 *max_bottom = top + height; |
| 840 } | 839 } |
| 841 return windows_fit; | 840 return windows_fit; |
| 842 } | 841 } |
| 843 | 842 |
| 844 } // namespace ash | 843 } // namespace ash |
| OLD | NEW |