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/common/wm/workspace/workspace_layout_manager.h" | 5 #include "ash/wm/workspace/workspace_layout_manager.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "ash/common/session/session_state_delegate.h" | |
11 #include "ash/common/shelf/shelf_constants.h" | |
12 #include "ash/common/shelf/shelf_layout_manager.h" | |
13 #include "ash/common/shelf/wm_shelf.h" | |
14 #include "ash/common/shell_observer.h" | |
15 #include "ash/common/test/ash_test.h" | |
16 #include "ash/common/test/test_session_state_delegate.h" | |
17 #include "ash/common/wm/fullscreen_window_finder.h" | |
18 #include "ash/common/wm/maximize_mode/workspace_backdrop_delegate.h" | |
19 #include "ash/common/wm/window_state.h" | |
20 #include "ash/common/wm/wm_event.h" | |
21 #include "ash/common/wm/wm_screen_util.h" | |
22 #include "ash/common/wm/workspace/workspace_window_resizer.h" | |
23 #include "ash/common/wm_shell.h" | |
24 #include "ash/common/wm_window.h" | |
25 #include "ash/public/cpp/shell_window_ids.h" | 10 #include "ash/public/cpp/shell_window_ids.h" |
26 #include "ash/root_window_controller.h" | 11 #include "ash/root_window_controller.h" |
| 12 #include "ash/session/session_state_delegate.h" |
| 13 #include "ash/shelf/shelf_constants.h" |
| 14 #include "ash/shelf/shelf_layout_manager.h" |
| 15 #include "ash/shelf/wm_shelf.h" |
| 16 #include "ash/shell_observer.h" |
| 17 #include "ash/test/ash_test.h" |
| 18 #include "ash/test/test_session_state_delegate.h" |
| 19 #include "ash/wm/fullscreen_window_finder.h" |
| 20 #include "ash/wm/maximize_mode/workspace_backdrop_delegate.h" |
| 21 #include "ash/wm/window_state.h" |
27 #include "ash/wm/window_state_aura.h" | 22 #include "ash/wm/window_state_aura.h" |
| 23 #include "ash/wm/wm_event.h" |
| 24 #include "ash/wm/wm_screen_util.h" |
| 25 #include "ash/wm/workspace/workspace_window_resizer.h" |
| 26 #include "ash/wm_shell.h" |
| 27 #include "ash/wm_window.h" |
28 #include "base/command_line.h" | 28 #include "base/command_line.h" |
29 #include "base/run_loop.h" | 29 #include "base/run_loop.h" |
30 #include "ui/aura/env.h" | 30 #include "ui/aura/env.h" |
31 #include "ui/base/ui_base_switches.h" | 31 #include "ui/base/ui_base_switches.h" |
32 #include "ui/base/ui_base_types.h" | 32 #include "ui/base/ui_base_types.h" |
33 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 33 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
34 #include "ui/display/display.h" | 34 #include "ui/display/display.h" |
35 #include "ui/display/screen.h" | 35 #include "ui/display/screen.h" |
36 #include "ui/gfx/geometry/insets.h" | 36 #include "ui/gfx/geometry/insets.h" |
37 #include "ui/views/widget/widget.h" | 37 #include "ui/views/widget/widget.h" |
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 window->SetBounds(keyboard_bounds()); | 1259 window->SetBounds(keyboard_bounds()); |
1260 window->GetWindowState()->set_ignore_keyboard_bounds_change(true); | 1260 window->GetWindowState()->set_ignore_keyboard_bounds_change(true); |
1261 window->Activate(); | 1261 window->Activate(); |
1262 | 1262 |
1263 EXPECT_EQ(keyboard_bounds(), window->GetBounds()); | 1263 EXPECT_EQ(keyboard_bounds(), window->GetBounds()); |
1264 ShowKeyboard(); | 1264 ShowKeyboard(); |
1265 EXPECT_EQ(keyboard_bounds(), window->GetBounds()); | 1265 EXPECT_EQ(keyboard_bounds(), window->GetBounds()); |
1266 } | 1266 } |
1267 | 1267 |
1268 } // namespace ash | 1268 } // namespace ash |
OLD | NEW |