| 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/wm/overview/scoped_transform_overview_window.h" | 5 #include "ash/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_shell.h" |
| 11 #include "ash/common/wm_window.h" |
| 10 #include "ash/root_window_controller.h" | 12 #include "ash/root_window_controller.h" |
| 11 #include "ash/wm/overview/scoped_overview_animation_settings.h" | 13 #include "ash/wm/overview/scoped_overview_animation_settings.h" |
| 12 #include "ash/wm/overview/scoped_overview_animation_settings_factory.h" | 14 #include "ash/wm/overview/scoped_overview_animation_settings_factory.h" |
| 13 #include "ash/wm/overview/window_selector_item.h" | 15 #include "ash/wm/overview/window_selector_item.h" |
| 14 #include "ash/wm/window_state.h" | 16 #include "ash/wm/window_state.h" |
| 15 #include "ash/wm_shell.h" | |
| 16 #include "ash/wm_window.h" | |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
| 19 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
| 20 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
| 21 #include "ui/aura/client/aura_constants.h" | 21 #include "ui/aura/client/aura_constants.h" |
| 22 #include "ui/compositor/layer.h" | 22 #include "ui/compositor/layer.h" |
| 23 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
| 24 #include "ui/gfx/geometry/safe_integer_conversions.h" | 24 #include "ui/gfx/geometry/safe_integer_conversions.h" |
| 25 #include "ui/gfx/transform_util.h" | 25 #include "ui/gfx/transform_util.h" |
| 26 #include "ui/views/widget/widget.h" | 26 #include "ui/views/widget/widget.h" |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 // In unit tests, the content view can have empty size. | 498 // In unit tests, the content view can have empty size. |
| 499 if (!preferred.IsEmpty()) { | 499 if (!preferred.IsEmpty()) { |
| 500 int inset = bounds.height() - preferred.height(); | 500 int inset = bounds.height() - preferred.height(); |
| 501 bounds.Inset(0, 0, 0, inset); | 501 bounds.Inset(0, 0, 0, inset); |
| 502 } | 502 } |
| 503 minimized_widget_->SetBounds(bounds); | 503 minimized_widget_->SetBounds(bounds); |
| 504 minimized_widget_->Show(); | 504 minimized_widget_->Show(); |
| 505 } | 505 } |
| 506 | 506 |
| 507 } // namespace ash | 507 } // namespace ash |
| OLD | NEW |