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/wm/overview/window_grid.h" | 5 #include "ash/wm/overview/window_grid.h" |
6 | 6 |
7 #include "ash/screen_util.h" | 7 #include "ash/screen_util.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
10 #include "ash/wm/overview/scoped_transform_overview_window.h" | 10 #include "ash/wm/overview/scoped_transform_overview_window.h" |
11 #include "ash/wm/overview/window_selector.h" | 11 #include "ash/wm/overview/window_selector.h" |
12 #include "ash/wm/overview/window_selector_item.h" | 12 #include "ash/wm/overview/window_selector_item.h" |
13 #include "ash/wm/overview/window_selector_panels.h" | 13 #include "ash/wm/overview/window_selector_panels.h" |
14 #include "ash/wm/overview/window_selector_window.h" | 14 #include "ash/wm/overview/window_selector_window.h" |
15 #include "ash/wm/window_state.h" | 15 #include "ash/wm/window_state.h" |
16 #include "base/i18n/string_search.h" | 16 #include "base/i18n/string_search.h" |
17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
18 #include "third_party/skia/include/core/SkColor.h" | 18 #include "third_party/skia/include/core/SkColor.h" |
19 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" |
20 #include "ui/compositor/layer_animation_observer.h" | 20 #include "ui/compositor/layer_animation_observer.h" |
21 #include "ui/compositor/scoped_layer_animation_settings.h" | 21 #include "ui/compositor/scoped_layer_animation_settings.h" |
22 #include "ui/gfx/animation/tween.h" | 22 #include "ui/gfx/animation/tween.h" |
23 #include "ui/gfx/vector2d.h" | 23 #include "ui/gfx/geometry/vector2d.h" |
24 #include "ui/views/background.h" | 24 #include "ui/views/background.h" |
25 #include "ui/views/view.h" | 25 #include "ui/views/view.h" |
26 #include "ui/views/widget/widget.h" | 26 #include "ui/views/widget/widget.h" |
27 #include "ui/wm/core/window_animations.h" | 27 #include "ui/wm/core/window_animations.h" |
28 | 28 |
29 namespace ash { | 29 namespace ash { |
30 namespace { | 30 namespace { |
31 | 31 |
32 // An observer which holds onto the passed widget until the animation is | 32 // An observer which holds onto the passed widget until the animation is |
33 // complete. | 33 // complete. |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET); | 454 ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET); |
455 selection_widget_->SetBounds(SelectedWindow()->target_bounds()); | 455 selection_widget_->SetBounds(SelectedWindow()->target_bounds()); |
456 selection_widget_->SetOpacity(kWindowOverviewSelectorOpacity); | 456 selection_widget_->SetOpacity(kWindowOverviewSelectorOpacity); |
457 return; | 457 return; |
458 } | 458 } |
459 selection_widget_->SetBounds(SelectedWindow()->target_bounds()); | 459 selection_widget_->SetBounds(SelectedWindow()->target_bounds()); |
460 selection_widget_->SetOpacity(kWindowOverviewSelectorOpacity); | 460 selection_widget_->SetOpacity(kWindowOverviewSelectorOpacity); |
461 } | 461 } |
462 | 462 |
463 } // namespace ash | 463 } // namespace ash |
OLD | NEW |