| 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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 default_container->SetChildrenUseExtendedHitRegion(); | 897 default_container->SetChildrenUseExtendedHitRegion(); |
| 898 | 898 |
| 899 WmWindow* always_on_top_container = | 899 WmWindow* always_on_top_container = |
| 900 CreateContainer(kShellWindowId_AlwaysOnTopContainer, | 900 CreateContainer(kShellWindowId_AlwaysOnTopContainer, |
| 901 "AlwaysOnTopContainer", non_lock_screen_containers); | 901 "AlwaysOnTopContainer", non_lock_screen_containers); |
| 902 always_on_top_container->SetChildWindowVisibilityChangesAnimated(); | 902 always_on_top_container->SetChildWindowVisibilityChangesAnimated(); |
| 903 always_on_top_container->SetSnapsChildrenToPhysicalPixelBoundary(); | 903 always_on_top_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 904 always_on_top_container->SetBoundsInScreenBehaviorForChildren( | 904 always_on_top_container->SetBoundsInScreenBehaviorForChildren( |
| 905 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 905 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 906 | 906 |
| 907 WmWindow* app_list_container = |
| 908 CreateContainer(kShellWindowId_AppListContainer, "AppListContainer", |
| 909 non_lock_screen_containers); |
| 910 app_list_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 911 app_list_container->SetBoundsInScreenBehaviorForChildren( |
| 912 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 913 |
| 907 WmWindow* shelf_container = | 914 WmWindow* shelf_container = |
| 908 CreateContainer(kShellWindowId_ShelfContainer, "ShelfContainer", | 915 CreateContainer(kShellWindowId_ShelfContainer, "ShelfContainer", |
| 909 non_lock_screen_containers); | 916 non_lock_screen_containers); |
| 910 shelf_container->SetSnapsChildrenToPhysicalPixelBoundary(); | 917 shelf_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 911 shelf_container->SetBoundsInScreenBehaviorForChildren( | 918 shelf_container->SetBoundsInScreenBehaviorForChildren( |
| 912 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 919 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 913 shelf_container->SetLockedToRoot(true); | 920 shelf_container->SetLockedToRoot(true); |
| 914 | 921 |
| 915 WmWindow* panel_container = | 922 WmWindow* panel_container = |
| 916 CreateContainer(kShellWindowId_PanelContainer, "PanelContainer", | 923 CreateContainer(kShellWindowId_PanelContainer, "PanelContainer", |
| 917 non_lock_screen_containers); | 924 non_lock_screen_containers); |
| 918 panel_container->SetSnapsChildrenToPhysicalPixelBoundary(); | 925 panel_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 919 panel_container->SetBoundsInScreenBehaviorForChildren( | 926 panel_container->SetBoundsInScreenBehaviorForChildren( |
| 920 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 927 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 921 | 928 |
| 922 WmWindow* shelf_bubble_container = | 929 WmWindow* shelf_bubble_container = |
| 923 CreateContainer(kShellWindowId_ShelfBubbleContainer, | 930 CreateContainer(kShellWindowId_ShelfBubbleContainer, |
| 924 "ShelfBubbleContainer", non_lock_screen_containers); | 931 "ShelfBubbleContainer", non_lock_screen_containers); |
| 925 shelf_bubble_container->SetSnapsChildrenToPhysicalPixelBoundary(); | 932 shelf_bubble_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 926 shelf_bubble_container->SetBoundsInScreenBehaviorForChildren( | 933 shelf_bubble_container->SetBoundsInScreenBehaviorForChildren( |
| 927 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 934 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 928 shelf_bubble_container->SetLockedToRoot(true); | 935 shelf_bubble_container->SetLockedToRoot(true); |
| 929 | 936 |
| 930 WmWindow* app_list_container = | |
| 931 CreateContainer(kShellWindowId_AppListContainer, "AppListContainer", | |
| 932 non_lock_screen_containers); | |
| 933 app_list_container->SetSnapsChildrenToPhysicalPixelBoundary(); | |
| 934 app_list_container->SetBoundsInScreenBehaviorForChildren( | |
| 935 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | |
| 936 | |
| 937 WmWindow* modal_container = | 937 WmWindow* modal_container = |
| 938 CreateContainer(kShellWindowId_SystemModalContainer, | 938 CreateContainer(kShellWindowId_SystemModalContainer, |
| 939 "SystemModalContainer", non_lock_screen_containers); | 939 "SystemModalContainer", non_lock_screen_containers); |
| 940 modal_container->SetSnapsChildrenToPhysicalPixelBoundary(); | 940 modal_container->SetSnapsChildrenToPhysicalPixelBoundary(); |
| 941 modal_container->SetChildWindowVisibilityChangesAnimated(); | 941 modal_container->SetChildWindowVisibilityChangesAnimated(); |
| 942 modal_container->SetBoundsInScreenBehaviorForChildren( | 942 modal_container->SetBoundsInScreenBehaviorForChildren( |
| 943 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 943 WmWindow::BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 944 modal_container->SetChildrenUseExtendedHitRegion(); | 944 modal_container->SetChildrenUseExtendedHitRegion(); |
| 945 | 945 |
| 946 // TODO(beng): Figure out if we can make this use | 946 // TODO(beng): Figure out if we can make this use |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 EnableTouchHudProjection(); | 1083 EnableTouchHudProjection(); |
| 1084 else | 1084 else |
| 1085 DisableTouchHudProjection(); | 1085 DisableTouchHudProjection(); |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 RootWindowController* GetRootWindowController(const aura::Window* root_window) { | 1088 RootWindowController* GetRootWindowController(const aura::Window* root_window) { |
| 1089 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; | 1089 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 } // namespace ash | 1092 } // namespace ash |
| OLD | NEW |