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/window_cycle_list.h" | 5 #include "ash/wm/window_cycle_list.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "ash/public/cpp/shell_window_ids.h" | 10 #include "ash/public/cpp/shell_window_ids.h" |
11 #include "ash/root_window_controller.h" | 11 #include "ash/root_window_controller.h" |
12 #include "ash/shell.h" | 12 #include "ash/shell.h" |
13 #include "ash/wm/mru_window_tracker.h" | 13 #include "ash/wm/mru_window_tracker.h" |
14 #include "ash/wm/window_mirror_view.h" | 14 #include "ash/wm/window_mirror_view.h" |
15 #include "ash/wm/window_state.h" | 15 #include "ash/wm/window_state.h" |
16 #include "ash/wm/window_util.h" | 16 #include "ash/wm/window_util.h" |
17 #include "ash/wm_window.h" | |
18 #include "base/command_line.h" | 17 #include "base/command_line.h" |
19 #include "ui/accessibility/ax_node_data.h" | 18 #include "ui/accessibility/ax_node_data.h" |
20 #include "ui/compositor/scoped_layer_animation_settings.h" | 19 #include "ui/compositor/scoped_layer_animation_settings.h" |
21 #include "ui/display/display.h" | 20 #include "ui/display/display.h" |
22 #include "ui/display/screen.h" | 21 #include "ui/display/screen.h" |
23 #include "ui/gfx/canvas.h" | 22 #include "ui/gfx/canvas.h" |
24 #include "ui/views/background.h" | 23 #include "ui/views/background.h" |
25 #include "ui/views/border.h" | 24 #include "ui/views/border.h" |
26 #include "ui/views/controls/label.h" | 25 #include "ui/views/controls/label.h" |
27 #include "ui/views/layout/box_layout.h" | 26 #include "ui/views/layout/box_layout.h" |
28 #include "ui/views/painter.h" | 27 #include "ui/views/painter.h" |
29 #include "ui/views/view.h" | 28 #include "ui/views/view.h" |
30 #include "ui/views/widget/widget.h" | 29 #include "ui/views/widget/widget.h" |
31 #include "ui/views/widget/widget_delegate.h" | 30 #include "ui/views/widget/widget_delegate.h" |
32 #include "ui/wm/core/visibility_controller.h" | 31 #include "ui/wm/core/visibility_controller.h" |
| 32 #include "ui/wm/core/window_animations.h" |
33 | 33 |
34 namespace ash { | 34 namespace ash { |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
38 bool g_disable_initial_delay = false; | 38 bool g_disable_initial_delay = false; |
39 | 39 |
40 // Used for the highlight view and the shield (black background). | 40 // Used for the highlight view and the shield (black background). |
41 constexpr float kBackgroundCornerRadius = 4.f; | 41 constexpr float kBackgroundCornerRadius = 4.f; |
42 | 42 |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 widget_rect.set_height(widget_height); | 546 widget_rect.set_height(widget_height); |
547 params.bounds = widget_rect; | 547 params.bounds = widget_rect; |
548 widget->Init(params); | 548 widget->Init(params); |
549 | 549 |
550 screen_observer_.Add(display::Screen::GetScreen()); | 550 screen_observer_.Add(display::Screen::GetScreen()); |
551 widget->Show(); | 551 widget->Show(); |
552 cycle_ui_widget_ = widget; | 552 cycle_ui_widget_ = widget; |
553 } | 553 } |
554 | 554 |
555 } // namespace ash | 555 } // namespace ash |
OLD | NEW |