| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 default_container->SetProperty(kUsesScreenCoordinatesKey, true); | 900 default_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 901 wm::SetChildrenUseExtendedHitRegionForWindow(default_container); | 901 wm::SetChildrenUseExtendedHitRegionForWindow(default_container); |
| 902 | 902 |
| 903 aura::Window* always_on_top_container = | 903 aura::Window* always_on_top_container = |
| 904 CreateContainer(kShellWindowId_AlwaysOnTopContainer, | 904 CreateContainer(kShellWindowId_AlwaysOnTopContainer, |
| 905 "AlwaysOnTopContainer", non_lock_screen_containers); | 905 "AlwaysOnTopContainer", non_lock_screen_containers); |
| 906 ::wm::SetChildWindowVisibilityChangesAnimated(always_on_top_container); | 906 ::wm::SetChildWindowVisibilityChangesAnimated(always_on_top_container); |
| 907 wm::SetSnapsChildrenToPhysicalPixelBoundary(always_on_top_container); | 907 wm::SetSnapsChildrenToPhysicalPixelBoundary(always_on_top_container); |
| 908 always_on_top_container->SetProperty(kUsesScreenCoordinatesKey, true); | 908 always_on_top_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 909 | 909 |
| 910 aura::Window* app_list_container = |
| 911 CreateContainer(kShellWindowId_AppListContainer, "AppListContainer", |
| 912 non_lock_screen_containers); |
| 913 wm::SetSnapsChildrenToPhysicalPixelBoundary(app_list_container); |
| 914 app_list_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 915 |
| 910 aura::Window* shelf_container = | 916 aura::Window* shelf_container = |
| 911 CreateContainer(kShellWindowId_ShelfContainer, "ShelfContainer", | 917 CreateContainer(kShellWindowId_ShelfContainer, "ShelfContainer", |
| 912 non_lock_screen_containers); | 918 non_lock_screen_containers); |
| 913 wm::SetSnapsChildrenToPhysicalPixelBoundary(shelf_container); | 919 wm::SetSnapsChildrenToPhysicalPixelBoundary(shelf_container); |
| 914 shelf_container->SetProperty(kUsesScreenCoordinatesKey, true); | 920 shelf_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 915 shelf_container->SetProperty(kLockedToRootKey, true); | 921 shelf_container->SetProperty(kLockedToRootKey, true); |
| 916 | 922 |
| 917 aura::Window* panel_container = | 923 aura::Window* panel_container = |
| 918 CreateContainer(kShellWindowId_PanelContainer, "PanelContainer", | 924 CreateContainer(kShellWindowId_PanelContainer, "PanelContainer", |
| 919 non_lock_screen_containers); | 925 non_lock_screen_containers); |
| 920 wm::SetSnapsChildrenToPhysicalPixelBoundary(panel_container); | 926 wm::SetSnapsChildrenToPhysicalPixelBoundary(panel_container); |
| 921 panel_container->SetProperty(kUsesScreenCoordinatesKey, true); | 927 panel_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 922 | 928 |
| 923 aura::Window* shelf_bubble_container = | 929 aura::Window* shelf_bubble_container = |
| 924 CreateContainer(kShellWindowId_ShelfBubbleContainer, | 930 CreateContainer(kShellWindowId_ShelfBubbleContainer, |
| 925 "ShelfBubbleContainer", non_lock_screen_containers); | 931 "ShelfBubbleContainer", non_lock_screen_containers); |
| 926 wm::SetSnapsChildrenToPhysicalPixelBoundary(shelf_bubble_container); | 932 wm::SetSnapsChildrenToPhysicalPixelBoundary(shelf_bubble_container); |
| 927 shelf_bubble_container->SetProperty(kUsesScreenCoordinatesKey, true); | 933 shelf_bubble_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 928 shelf_bubble_container->SetProperty(kLockedToRootKey, true); | 934 shelf_bubble_container->SetProperty(kLockedToRootKey, true); |
| 929 | 935 |
| 930 aura::Window* app_list_container = | |
| 931 CreateContainer(kShellWindowId_AppListContainer, "AppListContainer", | |
| 932 non_lock_screen_containers); | |
| 933 wm::SetSnapsChildrenToPhysicalPixelBoundary(app_list_container); | |
| 934 app_list_container->SetProperty(kUsesScreenCoordinatesKey, true); | |
| 935 | |
| 936 aura::Window* modal_container = | 936 aura::Window* modal_container = |
| 937 CreateContainer(kShellWindowId_SystemModalContainer, | 937 CreateContainer(kShellWindowId_SystemModalContainer, |
| 938 "SystemModalContainer", non_lock_screen_containers); | 938 "SystemModalContainer", non_lock_screen_containers); |
| 939 wm::SetSnapsChildrenToPhysicalPixelBoundary(modal_container); | 939 wm::SetSnapsChildrenToPhysicalPixelBoundary(modal_container); |
| 940 ::wm::SetChildWindowVisibilityChangesAnimated(modal_container); | 940 ::wm::SetChildWindowVisibilityChangesAnimated(modal_container); |
| 941 modal_container->SetProperty(kUsesScreenCoordinatesKey, true); | 941 modal_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 942 wm::SetChildrenUseExtendedHitRegionForWindow(modal_container); | 942 wm::SetChildrenUseExtendedHitRegionForWindow(modal_container); |
| 943 | 943 |
| 944 // TODO(beng): Figure out if we can make this use | 944 // TODO(beng): Figure out if we can make this use |
| 945 // SystemModalContainerEventFilter instead of stops_event_propagation. | 945 // SystemModalContainerEventFilter instead of stops_event_propagation. |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1081 EnableTouchHudProjection(); | 1081 EnableTouchHudProjection(); |
| 1082 else | 1082 else |
| 1083 DisableTouchHudProjection(); | 1083 DisableTouchHudProjection(); |
| 1084 } | 1084 } |
| 1085 | 1085 |
| 1086 RootWindowController* GetRootWindowController(const aura::Window* root_window) { | 1086 RootWindowController* GetRootWindowController(const aura::Window* root_window) { |
| 1087 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; | 1087 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; |
| 1088 } | 1088 } |
| 1089 | 1089 |
| 1090 } // namespace ash | 1090 } // namespace ash |
| OLD | NEW |