| 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 default_container->SetChildrenUseExtendedHitRegion(); | 903 default_container->SetChildrenUseExtendedHitRegion(); |
| 904 | 904 |
| 905 WmWindow* always_on_top_container = | 905 WmWindow* always_on_top_container = |
| 906 CreateContainer(kShellWindowId_AlwaysOnTopContainer, | 906 CreateContainer(kShellWindowId_AlwaysOnTopContainer, |
| 907 "AlwaysOnTopContainer", non_lock_screen_containers); | 907 "AlwaysOnTopContainer", non_lock_screen_containers); |
| 908 always_on_top_container->SetChildWindowVisibilityChangesAnimated(); | 908 always_on_top_container->SetChildWindowVisibilityChangesAnimated(); |
| 909 always_on_top_container->SetSnapsChildrenToPhysicalPixelBoundary(); | 909 always_on_top_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 910 always_on_top_container->SetBoundsInScreenBehaviorForChildren( | 910 always_on_top_container->SetBoundsInScreenBehaviorForChildren( |
| 911 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 911 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 912 | 912 |
| 913 WmWindow* app_list_container = |
| 914 CreateContainer(kShellWindowId_AppListContainer, "AppListContainer", |
| 915 non_lock_screen_containers); |
| 916 app_list_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 917 app_list_container->SetBoundsInScreenBehaviorForChildren( |
| 918 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 919 |
| 913 WmWindow* shelf_container = | 920 WmWindow* shelf_container = |
| 914 CreateContainer(kShellWindowId_ShelfContainer, "ShelfContainer", | 921 CreateContainer(kShellWindowId_ShelfContainer, "ShelfContainer", |
| 915 non_lock_screen_containers); | 922 non_lock_screen_containers); |
| 916 shelf_container->SetSnapsChildrenToPhysicalPixelBoundary(); | 923 shelf_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 917 shelf_container->SetBoundsInScreenBehaviorForChildren( | 924 shelf_container->SetBoundsInScreenBehaviorForChildren( |
| 918 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 925 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 919 shelf_container->SetLockedToRoot(true); | 926 shelf_container->SetLockedToRoot(true); |
| 920 | 927 |
| 921 WmWindow* panel_container = | 928 WmWindow* panel_container = |
| 922 CreateContainer(kShellWindowId_PanelContainer, "PanelContainer", | 929 CreateContainer(kShellWindowId_PanelContainer, "PanelContainer", |
| 923 non_lock_screen_containers); | 930 non_lock_screen_containers); |
| 924 panel_container->SetSnapsChildrenToPhysicalPixelBoundary(); | 931 panel_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 925 panel_container->SetBoundsInScreenBehaviorForChildren( | 932 panel_container->SetBoundsInScreenBehaviorForChildren( |
| 926 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 933 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 927 | 934 |
| 928 WmWindow* shelf_bubble_container = | 935 WmWindow* shelf_bubble_container = |
| 929 CreateContainer(kShellWindowId_ShelfBubbleContainer, | 936 CreateContainer(kShellWindowId_ShelfBubbleContainer, |
| 930 "ShelfBubbleContainer", non_lock_screen_containers); | 937 "ShelfBubbleContainer", non_lock_screen_containers); |
| 931 shelf_bubble_container->SetSnapsChildrenToPhysicalPixelBoundary(); | 938 shelf_bubble_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 932 shelf_bubble_container->SetBoundsInScreenBehaviorForChildren( | 939 shelf_bubble_container->SetBoundsInScreenBehaviorForChildren( |
| 933 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 940 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 934 shelf_bubble_container->SetLockedToRoot(true); | 941 shelf_bubble_container->SetLockedToRoot(true); |
| 935 | 942 |
| 936 WmWindow* app_list_container = | |
| 937 CreateContainer(kShellWindowId_AppListContainer, "AppListContainer", | |
| 938 non_lock_screen_containers); | |
| 939 app_list_container->SetSnapsChildrenToPhysicalPixelBoundary(); | |
| 940 app_list_container->SetBoundsInScreenBehaviorForChildren( | |
| 941 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | |
| 942 | |
| 943 WmWindow* modal_container = | 943 WmWindow* modal_container = |
| 944 CreateContainer(kShellWindowId_SystemModalContainer, | 944 CreateContainer(kShellWindowId_SystemModalContainer, |
| 945 "SystemModalContainer", non_lock_screen_containers); | 945 "SystemModalContainer", non_lock_screen_containers); |
| 946 modal_container->SetSnapsChildrenToPhysicalPixelBoundary(); | 946 modal_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 947 modal_container->SetChildWindowVisibilityChangesAnimated(); | 947 modal_container->SetChildWindowVisibilityChangesAnimated(); |
| 948 modal_container->SetBoundsInScreenBehaviorForChildren( | 948 modal_container->SetBoundsInScreenBehaviorForChildren( |
| 949 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 949 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 950 modal_container->SetChildrenUseExtendedHitRegion(); | 950 modal_container->SetChildrenUseExtendedHitRegion(); |
| 951 | 951 |
| 952 // TODO(beng): Figure out if we can make this use | 952 // TODO(beng): Figure out if we can make this use |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1097 EnableTouchHudProjection(); | 1097 EnableTouchHudProjection(); |
| 1098 else | 1098 else |
| 1099 DisableTouchHudProjection(); | 1099 DisableTouchHudProjection(); |
| 1100 } | 1100 } |
| 1101 | 1101 |
| 1102 RootWindowController* GetRootWindowController(const aura::Window* root_window) { | 1102 RootWindowController* GetRootWindowController(const aura::Window* root_window) { |
| 1103 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; | 1103 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; |
| 1104 } | 1104 } |
| 1105 | 1105 |
| 1106 } // namespace ash | 1106 } // namespace ash |
| OLD | NEW |