OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/custom_frame_view_ash.h" | 5 #include "ash/wm/custom_frame_view_ash.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/maximize_bubble_controller.h" | 10 #include "ash/wm/caption_buttons/frame_caption_button_container_view.h" |
| 11 #include "ash/wm/caption_buttons/frame_maximize_button.h" |
| 12 #include "ash/wm/caption_buttons/maximize_bubble_controller.h" |
11 #include "ash/wm/property_util.h" | 13 #include "ash/wm/property_util.h" |
12 #include "ash/wm/window_util.h" | 14 #include "ash/wm/window_util.h" |
13 #include "ash/wm/workspace/frame_caption_button_container_view.h" | |
14 #include "ash/wm/workspace/frame_maximize_button.h" | |
15 #include "ash/wm/workspace/snap_sizer.h" | 15 #include "ash/wm/workspace/snap_sizer.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "ui/aura/client/aura_constants.h" | 17 #include "ui/aura/client/aura_constants.h" |
18 #include "ui/aura/client/focus_client.h" | 18 #include "ui/aura/client/focus_client.h" |
19 #include "ui/aura/test/event_generator.h" | 19 #include "ui/aura/test/event_generator.h" |
20 #include "ui/aura/root_window.h" | 20 #include "ui/aura/root_window.h" |
21 #include "ui/aura/window.h" | 21 #include "ui/aura/window.h" |
22 #include "ui/base/events/event_utils.h" | 22 #include "ui/base/events/event_utils.h" |
23 #include "ui/base/gestures/gesture_configuration.h" | 23 #include "ui/base/gestures/gesture_configuration.h" |
24 #include "ui/views/controls/button/image_button.h" | 24 #include "ui/views/controls/button/image_button.h" |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 | 810 |
811 // Check that there was no size change. | 811 // Check that there was no size change. |
812 EXPECT_EQ(widget()->GetWindowBoundsInScreen().size().ToString(), | 812 EXPECT_EQ(widget()->GetWindowBoundsInScreen().size().ToString(), |
813 initial_bounds.size().ToString()); | 813 initial_bounds.size().ToString()); |
814 // Check that there is no phantom window left open. | 814 // Check that there is no phantom window left open. |
815 EXPECT_FALSE(maximize_button->phantom_window_open()); | 815 EXPECT_FALSE(maximize_button->phantom_window_open()); |
816 } | 816 } |
817 | 817 |
818 } // namespace test | 818 } // namespace test |
819 } // namespace ash | 819 } // namespace ash |
OLD | NEW |