OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ |
6 #define ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/common/wm/workspace/workspace_types.h" | 9 #include "ash/common/wm/workspace/workspace_types.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Shows a context menu at the |location_in_screen|. | 112 // Shows a context menu at the |location_in_screen|. |
113 void ShowContextMenu(const gfx::Point& location_in_screen, | 113 void ShowContextMenu(const gfx::Point& location_in_screen, |
114 ui::MenuSourceType source_type); | 114 ui::MenuSourceType source_type); |
115 | 115 |
116 // Called when the wallpaper animation has started or finished. | 116 // Called when the wallpaper animation has started or finished. |
117 // TODO: port remaining classic ash wallpaper functionality here. | 117 // TODO: port remaining classic ash wallpaper functionality here. |
118 virtual void OnInitialWallpaperAnimationStarted(); | 118 virtual void OnInitialWallpaperAnimationStarted(); |
119 virtual void OnWallpaperAnimationFinished(views::Widget* widget); | 119 virtual void OnWallpaperAnimationFinished(views::Widget* widget); |
120 | 120 |
121 protected: | 121 protected: |
| 122 // Moves child windows to |dest|. |
| 123 void MoveWindowsTo(WmWindow* dest); |
| 124 |
122 // Creates the containers (WmWindows) used by the shell. | 125 // Creates the containers (WmWindows) used by the shell. |
123 void CreateContainers(); | 126 void CreateContainers(); |
124 | 127 |
125 // Creates the LayoutManagers for the windows created by CreateContainers(). | 128 // Creates the LayoutManagers for the windows created by CreateContainers(). |
126 void CreateLayoutManagers(); | 129 void CreateLayoutManagers(); |
127 | 130 |
128 void DeleteWorkspaceController(); | 131 void DeleteWorkspaceController(); |
129 | 132 |
130 private: | 133 private: |
131 // Callback for MenuModelAdapter. | 134 // Callback for MenuModelAdapter. |
(...skipping 12 matching lines...) Expand all Loading... |
144 std::unique_ptr<ui::MenuModel> menu_model_; | 147 std::unique_ptr<ui::MenuModel> menu_model_; |
145 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; | 148 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; |
146 std::unique_ptr<views::MenuRunner> menu_runner_; | 149 std::unique_ptr<views::MenuRunner> menu_runner_; |
147 | 150 |
148 DISALLOW_COPY_AND_ASSIGN(WmRootWindowController); | 151 DISALLOW_COPY_AND_ASSIGN(WmRootWindowController); |
149 }; | 152 }; |
150 | 153 |
151 } // namespace ash | 154 } // namespace ash |
152 | 155 |
153 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ | 156 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |