| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/scoped_transform_overview_window.h" | 5 #include "ash/common/wm/overview/scoped_transform_overview_window.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/common/wm/overview/scoped_overview_animation_settings.h" | 10 #include "ash/common/wm/overview/scoped_overview_animation_settings.h" |
| 11 #include "ash/common/wm/overview/scoped_overview_animation_settings_factory.h" | 11 #include "ash/common/wm/overview/scoped_overview_animation_settings_factory.h" |
| 12 #include "ash/common/wm/overview/window_selector_item.h" | 12 #include "ash/common/wm/overview/window_selector_item.h" |
| 13 #include "ash/common/wm/window_state.h" | 13 #include "ash/common/wm/window_state.h" |
| 14 #include "ash/common/wm_window.h" | 14 #include "ash/common/wm_window.h" |
| 15 #include "ash/common/wm_window_property.h" | 15 #include "ash/common/wm_window_property.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 18 #include "base/threading/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
| 19 #include "third_party/skia/include/core/SkPaint.h" | |
| 20 #include "third_party/skia/include/core/SkPath.h" | |
| 21 #include "third_party/skia/include/core/SkRect.h" | |
| 22 #include "ui/compositor/layer.h" | 19 #include "ui/compositor/layer.h" |
| 23 #include "ui/compositor/layer_delegate.h" | |
| 24 #include "ui/compositor/paint_recorder.h" | |
| 25 #include "ui/gfx/geometry/rect.h" | 20 #include "ui/gfx/geometry/rect.h" |
| 26 #include "ui/gfx/geometry/safe_integer_conversions.h" | 21 #include "ui/gfx/geometry/safe_integer_conversions.h" |
| 27 #include "ui/gfx/transform_util.h" | 22 #include "ui/gfx/transform_util.h" |
| 28 | 23 |
| 29 using WmWindows = std::vector<ash::WmWindow*>; | 24 using WmWindows = std::vector<ash::WmWindow*>; |
| 30 | 25 |
| 31 namespace ash { | 26 namespace ash { |
| 32 | 27 |
| 33 namespace { | 28 namespace { |
| 34 | 29 |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 if (parent_window) | 449 if (parent_window) |
| 455 parent_window->CloseWidget(); | 450 parent_window->CloseWidget(); |
| 456 } | 451 } |
| 457 | 452 |
| 458 // static | 453 // static |
| 459 void ScopedTransformOverviewWindow::SetImmediateCloseForTests() { | 454 void ScopedTransformOverviewWindow::SetImmediateCloseForTests() { |
| 460 immediate_close_for_tests = true; | 455 immediate_close_for_tests = true; |
| 461 } | 456 } |
| 462 | 457 |
| 463 } // namespace ash | 458 } // namespace ash |
| OLD | NEW |