| 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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 default_container->SetProperty(kUsesScreenCoordinatesKey, true); | 890 default_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 891 wm::SetChildrenUseExtendedHitRegionForWindow(default_container); | 891 wm::SetChildrenUseExtendedHitRegionForWindow(default_container); |
| 892 | 892 |
| 893 aura::Window* always_on_top_container = | 893 aura::Window* always_on_top_container = |
| 894 CreateContainer(kShellWindowId_AlwaysOnTopContainer, | 894 CreateContainer(kShellWindowId_AlwaysOnTopContainer, |
| 895 "AlwaysOnTopContainer", non_lock_screen_containers); | 895 "AlwaysOnTopContainer", non_lock_screen_containers); |
| 896 ::wm::SetChildWindowVisibilityChangesAnimated(always_on_top_container); | 896 ::wm::SetChildWindowVisibilityChangesAnimated(always_on_top_container); |
| 897 wm::SetSnapsChildrenToPhysicalPixelBoundary(always_on_top_container); | 897 wm::SetSnapsChildrenToPhysicalPixelBoundary(always_on_top_container); |
| 898 always_on_top_container->SetProperty(kUsesScreenCoordinatesKey, true); | 898 always_on_top_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 899 | 899 |
| 900 aura::Window* app_list_container = |
| 901 CreateContainer(kShellWindowId_AppListContainer, "AppListContainer", |
| 902 non_lock_screen_containers); |
| 903 wm::SetSnapsChildrenToPhysicalPixelBoundary(app_list_container); |
| 904 app_list_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 905 |
| 900 aura::Window* shelf_container = | 906 aura::Window* shelf_container = |
| 901 CreateContainer(kShellWindowId_ShelfContainer, "ShelfContainer", | 907 CreateContainer(kShellWindowId_ShelfContainer, "ShelfContainer", |
| 902 non_lock_screen_containers); | 908 non_lock_screen_containers); |
| 903 wm::SetSnapsChildrenToPhysicalPixelBoundary(shelf_container); | 909 wm::SetSnapsChildrenToPhysicalPixelBoundary(shelf_container); |
| 904 shelf_container->SetProperty(kUsesScreenCoordinatesKey, true); | 910 shelf_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 905 shelf_container->SetProperty(kLockedToRootKey, true); | 911 shelf_container->SetProperty(kLockedToRootKey, true); |
| 906 | 912 |
| 907 aura::Window* panel_container = | 913 aura::Window* panel_container = |
| 908 CreateContainer(kShellWindowId_PanelContainer, "PanelContainer", | 914 CreateContainer(kShellWindowId_PanelContainer, "PanelContainer", |
| 909 non_lock_screen_containers); | 915 non_lock_screen_containers); |
| 910 wm::SetSnapsChildrenToPhysicalPixelBoundary(panel_container); | 916 wm::SetSnapsChildrenToPhysicalPixelBoundary(panel_container); |
| 911 panel_container->SetProperty(kUsesScreenCoordinatesKey, true); | 917 panel_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 912 | 918 |
| 913 aura::Window* shelf_bubble_container = | 919 aura::Window* shelf_bubble_container = |
| 914 CreateContainer(kShellWindowId_ShelfBubbleContainer, | 920 CreateContainer(kShellWindowId_ShelfBubbleContainer, |
| 915 "ShelfBubbleContainer", non_lock_screen_containers); | 921 "ShelfBubbleContainer", non_lock_screen_containers); |
| 916 wm::SetSnapsChildrenToPhysicalPixelBoundary(shelf_bubble_container); | 922 wm::SetSnapsChildrenToPhysicalPixelBoundary(shelf_bubble_container); |
| 917 shelf_bubble_container->SetProperty(kUsesScreenCoordinatesKey, true); | 923 shelf_bubble_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 918 shelf_bubble_container->SetProperty(kLockedToRootKey, true); | 924 shelf_bubble_container->SetProperty(kLockedToRootKey, true); |
| 919 | 925 |
| 920 aura::Window* app_list_container = | |
| 921 CreateContainer(kShellWindowId_AppListContainer, "AppListContainer", | |
| 922 non_lock_screen_containers); | |
| 923 wm::SetSnapsChildrenToPhysicalPixelBoundary(app_list_container); | |
| 924 app_list_container->SetProperty(kUsesScreenCoordinatesKey, true); | |
| 925 | |
| 926 aura::Window* modal_container = | 926 aura::Window* modal_container = |
| 927 CreateContainer(kShellWindowId_SystemModalContainer, | 927 CreateContainer(kShellWindowId_SystemModalContainer, |
| 928 "SystemModalContainer", non_lock_screen_containers); | 928 "SystemModalContainer", non_lock_screen_containers); |
| 929 wm::SetSnapsChildrenToPhysicalPixelBoundary(modal_container); | 929 wm::SetSnapsChildrenToPhysicalPixelBoundary(modal_container); |
| 930 ::wm::SetChildWindowVisibilityChangesAnimated(modal_container); | 930 ::wm::SetChildWindowVisibilityChangesAnimated(modal_container); |
| 931 modal_container->SetProperty(kUsesScreenCoordinatesKey, true); | 931 modal_container->SetProperty(kUsesScreenCoordinatesKey, true); |
| 932 wm::SetChildrenUseExtendedHitRegionForWindow(modal_container); | 932 wm::SetChildrenUseExtendedHitRegionForWindow(modal_container); |
| 933 | 933 |
| 934 // TODO(beng): Figure out if we can make this use | 934 // TODO(beng): Figure out if we can make this use |
| 935 // SystemModalContainerEventFilter instead of stops_event_propagation. | 935 // SystemModalContainerEventFilter instead of stops_event_propagation. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 } | 1067 } |
| 1068 | 1068 |
| 1069 void RootWindowController::OnTouchHudProjectionToggled(bool enabled) { | 1069 void RootWindowController::OnTouchHudProjectionToggled(bool enabled) { |
| 1070 if (enabled) | 1070 if (enabled) |
| 1071 EnableTouchHudProjection(); | 1071 EnableTouchHudProjection(); |
| 1072 else | 1072 else |
| 1073 DisableTouchHudProjection(); | 1073 DisableTouchHudProjection(); |
| 1074 } | 1074 } |
| 1075 | 1075 |
| 1076 } // namespace ash | 1076 } // namespace ash |
| OLD | NEW |