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