| 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/system_modal_container_layout_manager.h" | 5 #include "ash/wm/system_modal_container_layout_manager.h" |
| 6 | 6 |
| 7 #include "ash/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
| 8 #include "ash/session/session_state_delegate.h" | 8 #include "ash/session/session_state_delegate.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
| 11 #include "ash/test/ash_test_base.h" | 11 #include "ash/test/ash_test_base.h" |
| 12 #include "ash/wm/window_util.h" | 12 #include "ash/wm/window_util.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
| 17 #include "ui/aura/window_event_dispatcher.h" | 17 #include "ui/aura/window_event_dispatcher.h" |
| 18 #include "ui/compositor/layer.h" | 18 #include "ui/compositor/layer.h" |
| 19 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 19 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
| 20 #include "ui/compositor/test/layer_animator_test_controller.h" | 20 #include "ui/compositor/test/layer_animator_test_controller.h" |
| 21 #include "ui/events/test/event_generator.h" | 21 #include "ui/events/test/event_generator.h" |
| 22 #include "ui/gfx/screen.h" | |
| 23 #include "ui/keyboard/keyboard_controller.h" | 22 #include "ui/keyboard/keyboard_controller.h" |
| 24 #include "ui/keyboard/keyboard_switches.h" | 23 #include "ui/keyboard/keyboard_switches.h" |
| 25 #include "ui/keyboard/keyboard_ui.h" | 24 #include "ui/keyboard/keyboard_ui.h" |
| 26 #include "ui/keyboard/keyboard_util.h" | 25 #include "ui/keyboard/keyboard_util.h" |
| 27 #include "ui/views/test/capture_tracking_view.h" | 26 #include "ui/views/test/capture_tracking_view.h" |
| 28 #include "ui/views/widget/widget.h" | 27 #include "ui/views/widget/widget.h" |
| 29 #include "ui/views/widget/widget_delegate.h" | 28 #include "ui/views/widget/widget_delegate.h" |
| 30 #include "ui/wm/core/window_util.h" | 29 #include "ui/wm/core/window_util.h" |
| 31 | 30 |
| 32 namespace ash { | 31 namespace ash { |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 ShowKeyboard(true); | 643 ShowKeyboard(true); |
| 645 EXPECT_EQ(modal_size.ToString(), modal_window->bounds().size().ToString()); | 644 EXPECT_EQ(modal_size.ToString(), modal_window->bounds().size().ToString()); |
| 646 EXPECT_EQ(modal_origin.x(), modal_window->bounds().x()); | 645 EXPECT_EQ(modal_origin.x(), modal_window->bounds().x()); |
| 647 EXPECT_EQ(0, modal_window->bounds().y()); | 646 EXPECT_EQ(0, modal_window->bounds().y()); |
| 648 | 647 |
| 649 ShowKeyboard(false); | 648 ShowKeyboard(false); |
| 650 } | 649 } |
| 651 | 650 |
| 652 } // namespace test | 651 } // namespace test |
| 653 } // namespace ash | 652 } // namespace ash |
| OLD | NEW |