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/caption_buttons/frame_maximize_button.h" | 5 #include "ash/wm/caption_buttons/frame_maximize_button.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
10 #include "ash/wm/caption_buttons/frame_caption_button_container_view.h" | 10 #include "ash/wm/caption_buttons/frame_caption_button_container_view.h" |
11 #include "ash/wm/caption_buttons/maximize_bubble_controller.h" | 11 #include "ash/wm/caption_buttons/maximize_bubble_controller.h" |
12 #include "ash/wm/window_state.h" | 12 #include "ash/wm/window_state.h" |
13 #include "ash/wm/window_util.h" | 13 #include "ash/wm/window_util.h" |
14 #include "ash/wm/workspace/snap_sizer.h" | 14 #include "ash/wm/workspace/snap_sizer.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "ui/aura/client/focus_client.h" | 16 #include "ui/aura/client/focus_client.h" |
17 #include "ui/aura/root_window.h" | |
18 #include "ui/aura/test/event_generator.h" | 17 #include "ui/aura/test/event_generator.h" |
19 #include "ui/aura/window.h" | 18 #include "ui/aura/window.h" |
| 19 #include "ui/aura/window_event_dispatcher.h" |
20 #include "ui/events/event_utils.h" | 20 #include "ui/events/event_utils.h" |
21 #include "ui/events/gestures/gesture_configuration.h" | 21 #include "ui/events/gestures/gesture_configuration.h" |
22 #include "ui/views/widget/widget.h" | 22 #include "ui/views/widget/widget.h" |
23 #include "ui/views/widget/widget_delegate.h" | 23 #include "ui/views/widget/widget_delegate.h" |
24 | 24 |
25 namespace ash { | 25 namespace ash { |
26 namespace test { | 26 namespace test { |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 | 871 |
872 // Test that we have properly reset the state of the now inactive window. | 872 // Test that we have properly reset the state of the now inactive window. |
873 EXPECT_FALSE(maximize_button->maximizer()); | 873 EXPECT_FALSE(maximize_button->maximizer()); |
874 EXPECT_FALSE(maximize_button->phantom_window_open()); | 874 EXPECT_FALSE(maximize_button->phantom_window_open()); |
875 EXPECT_TRUE(wm::GetWindowState(window)->IsNormalShowState()); | 875 EXPECT_TRUE(wm::GetWindowState(window)->IsNormalShowState()); |
876 EXPECT_EQ(initial_bounds.ToString(), window->GetBoundsInScreen().ToString()); | 876 EXPECT_EQ(initial_bounds.ToString(), window->GetBoundsInScreen().ToString()); |
877 } | 877 } |
878 | 878 |
879 } // namespace test | 879 } // namespace test |
880 } // namespace ash | 880 } // namespace ash |
OLD | NEW |