| 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/root_window_controller.h" | 5 #include "ash/root_window_controller.h" |
| 6 | 6 |
| 7 #include <queue> | 7 #include <queue> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_constants.h" | 10 #include "ash/ash_constants.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "ash/wm/lock_layout_manager.h" | 37 #include "ash/wm/lock_layout_manager.h" |
| 38 #include "ash/wm/panels/attached_panel_window_targeter.h" | 38 #include "ash/wm/panels/attached_panel_window_targeter.h" |
| 39 #include "ash/wm/panels/panel_layout_manager.h" | 39 #include "ash/wm/panels/panel_layout_manager.h" |
| 40 #include "ash/wm/panels/panel_window_event_handler.h" | 40 #include "ash/wm/panels/panel_window_event_handler.h" |
| 41 #include "ash/wm/root_window_layout_manager.h" | 41 #include "ash/wm/root_window_layout_manager.h" |
| 42 #include "ash/wm/screen_dimmer.h" | 42 #include "ash/wm/screen_dimmer.h" |
| 43 #include "ash/wm/stacking_controller.h" | 43 #include "ash/wm/stacking_controller.h" |
| 44 #include "ash/wm/status_area_layout_manager.h" | 44 #include "ash/wm/status_area_layout_manager.h" |
| 45 #include "ash/wm/system_background_controller.h" | 45 #include "ash/wm/system_background_controller.h" |
| 46 #include "ash/wm/system_modal_container_layout_manager.h" | 46 #include "ash/wm/system_modal_container_layout_manager.h" |
| 47 #include "ash/wm/virtual_keyboard_container_layout_manager.h" |
| 47 #include "ash/wm/window_properties.h" | 48 #include "ash/wm/window_properties.h" |
| 48 #include "ash/wm/window_state.h" | 49 #include "ash/wm/window_state.h" |
| 49 #include "ash/wm/window_util.h" | 50 #include "ash/wm/window_util.h" |
| 50 #include "ash/wm/workspace/workspace_layout_manager.h" | 51 #include "ash/wm/workspace/workspace_layout_manager.h" |
| 51 #include "ash/wm/workspace_controller.h" | 52 #include "ash/wm/workspace_controller.h" |
| 52 #include "base/command_line.h" | 53 #include "base/command_line.h" |
| 53 #include "base/time/time.h" | 54 #include "base/time/time.h" |
| 54 #include "ui/aura/client/aura_constants.h" | 55 #include "ui/aura/client/aura_constants.h" |
| 55 #include "ui/aura/client/screen_position_client.h" | 56 #include "ui/aura/client/screen_position_client.h" |
| 56 #include "ui/aura/window.h" | 57 #include "ui/aura/window.h" |
| (...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 wm::SetSnapsChildrenToPhysicalPixelBoundary(settings_bubble_container); | 1001 wm::SetSnapsChildrenToPhysicalPixelBoundary(settings_bubble_container); |
| 1001 SetUsesScreenCoordinates(settings_bubble_container); | 1002 SetUsesScreenCoordinates(settings_bubble_container); |
| 1002 DescendantShouldStayInSameRootWindow(settings_bubble_container); | 1003 DescendantShouldStayInSameRootWindow(settings_bubble_container); |
| 1003 | 1004 |
| 1004 aura::Window* virtual_keyboard_parent_container = | 1005 aura::Window* virtual_keyboard_parent_container = |
| 1005 CreateContainer(kShellWindowId_VirtualKeyboardParentContainer, | 1006 CreateContainer(kShellWindowId_VirtualKeyboardParentContainer, |
| 1006 "VirtualKeyboardParentContainer", | 1007 "VirtualKeyboardParentContainer", |
| 1007 lock_screen_related_containers); | 1008 lock_screen_related_containers); |
| 1008 wm::SetSnapsChildrenToPhysicalPixelBoundary( | 1009 wm::SetSnapsChildrenToPhysicalPixelBoundary( |
| 1009 virtual_keyboard_parent_container); | 1010 virtual_keyboard_parent_container); |
| 1011 virtual_keyboard_parent_container->SetLayoutManager( |
| 1012 new VirtualKeyboardContainerLayoutManager( |
| 1013 virtual_keyboard_parent_container)); |
| 1010 SetUsesScreenCoordinates(virtual_keyboard_parent_container); | 1014 SetUsesScreenCoordinates(virtual_keyboard_parent_container); |
| 1011 | 1015 |
| 1012 aura::Window* menu_container = CreateContainer( | 1016 aura::Window* menu_container = CreateContainer( |
| 1013 kShellWindowId_MenuContainer, | 1017 kShellWindowId_MenuContainer, |
| 1014 "MenuContainer", | 1018 "MenuContainer", |
| 1015 lock_screen_related_containers); | 1019 lock_screen_related_containers); |
| 1016 ::wm::SetChildWindowVisibilityChangesAnimated(menu_container); | 1020 ::wm::SetChildWindowVisibilityChangesAnimated(menu_container); |
| 1017 wm::SetSnapsChildrenToPhysicalPixelBoundary(menu_container); | 1021 wm::SetSnapsChildrenToPhysicalPixelBoundary(menu_container); |
| 1018 SetUsesScreenCoordinates(menu_container); | 1022 SetUsesScreenCoordinates(menu_container); |
| 1019 | 1023 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 else | 1070 else |
| 1067 DisableTouchHudProjection(); | 1071 DisableTouchHudProjection(); |
| 1068 } | 1072 } |
| 1069 | 1073 |
| 1070 RootWindowController* GetRootWindowController( | 1074 RootWindowController* GetRootWindowController( |
| 1071 const aura::Window* root_window) { | 1075 const aura::Window* root_window) { |
| 1072 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; | 1076 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; |
| 1073 } | 1077 } |
| 1074 | 1078 |
| 1075 } // namespace ash | 1079 } // namespace ash |
| OLD | NEW |