| 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/window_selector_item.h" | 5 #include "ash/wm/overview/window_selector_item.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/metrics/user_metrics_action.h" | 10 #include "ash/metrics/user_metrics_action.h" |
| 11 #include "ash/public/cpp/shell_window_ids.h" | 11 #include "ash/public/cpp/shell_window_ids.h" |
| 12 #include "ash/resources/vector_icons/vector_icons.h" | 12 #include "ash/resources/vector_icons/vector_icons.h" |
| 13 #include "ash/root_window_controller.h" | 13 #include "ash/root_window_controller.h" |
| 14 #include "ash/shell_port.h" | 14 #include "ash/shell_port.h" |
| 15 #include "ash/strings/grit/ash_strings.h" | |
| 16 #include "ash/wm/overview/cleanup_animation_observer.h" | 15 #include "ash/wm/overview/cleanup_animation_observer.h" |
| 17 #include "ash/wm/overview/overview_animation_type.h" | 16 #include "ash/wm/overview/overview_animation_type.h" |
| 18 #include "ash/wm/overview/scoped_overview_animation_settings.h" | 17 #include "ash/wm/overview/scoped_overview_animation_settings.h" |
| 19 #include "ash/wm/overview/scoped_transform_overview_window.h" | 18 #include "ash/wm/overview/scoped_transform_overview_window.h" |
| 20 #include "ash/wm/overview/window_selector.h" | 19 #include "ash/wm/overview/window_selector.h" |
| 21 #include "ash/wm/overview/window_selector_controller.h" | 20 #include "ash/wm/overview/window_selector_controller.h" |
| 22 #include "ash/wm/window_state.h" | 21 #include "ash/wm/window_state.h" |
| 23 #include "base/auto_reset.h" | 22 #include "base/auto_reset.h" |
| 24 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
| 25 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
| 26 #include "base/time/time.h" | 25 #include "base/time/time.h" |
| 27 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
| 28 #include "ui/compositor/layer_animation_sequence.h" | 27 #include "ui/compositor/layer_animation_sequence.h" |
| 29 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 28 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
| 30 #include "ui/gfx/animation/slide_animation.h" | 29 #include "ui/gfx/animation/slide_animation.h" |
| 31 #include "ui/gfx/canvas.h" | 30 #include "ui/gfx/canvas.h" |
| 32 #include "ui/gfx/color_utils.h" | 31 #include "ui/gfx/color_utils.h" |
| 33 #include "ui/gfx/geometry/safe_integer_conversions.h" | 32 #include "ui/gfx/geometry/safe_integer_conversions.h" |
| 34 #include "ui/gfx/paint_vector_icon.h" | 33 #include "ui/gfx/paint_vector_icon.h" |
| 35 #include "ui/gfx/transform_util.h" | 34 #include "ui/gfx/transform_util.h" |
| 36 #include "ui/strings/grit/ui_strings.h" | |
| 37 #include "ui/views/background.h" | 35 #include "ui/views/background.h" |
| 38 #include "ui/views/border.h" | 36 #include "ui/views/border.h" |
| 39 #include "ui/views/layout/box_layout.h" | 37 #include "ui/views/layout/box_layout.h" |
| 40 #include "ui/views/window/non_client_view.h" | 38 #include "ui/views/window/non_client_view.h" |
| 41 #include "ui/wm/core/coordinate_conversion.h" | 39 #include "ui/wm/core/coordinate_conversion.h" |
| 42 #include "ui/wm/core/shadow.h" | 40 #include "ui/wm/core/shadow.h" |
| 43 #include "ui/wm/core/window_util.h" | 41 #include "ui/wm/core/window_util.h" |
| 44 | 42 |
| 45 namespace ash { | 43 namespace ash { |
| 46 | 44 |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 | 741 |
| 744 gfx::SlideAnimation* WindowSelectorItem::GetBackgroundViewAnimation() { | 742 gfx::SlideAnimation* WindowSelectorItem::GetBackgroundViewAnimation() { |
| 745 return background_view_ ? background_view_->animation() : nullptr; | 743 return background_view_ ? background_view_->animation() : nullptr; |
| 746 } | 744 } |
| 747 | 745 |
| 748 aura::Window* WindowSelectorItem::GetOverviewWindowForMinimizedStateForTest() { | 746 aura::Window* WindowSelectorItem::GetOverviewWindowForMinimizedStateForTest() { |
| 749 return transform_window_.GetOverviewWindowForMinimizedState(); | 747 return transform_window_.GetOverviewWindowForMinimizedState(); |
| 750 } | 748 } |
| 751 | 749 |
| 752 } // namespace ash | 750 } // namespace ash |
| OLD | NEW |