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 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ |
6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 bool IsVirtualKeyboardWindow(aura::Window* window); | 186 bool IsVirtualKeyboardWindow(aura::Window* window); |
187 | 187 |
188 // If touch exploration is enabled, update the touch exploration | 188 // If touch exploration is enabled, update the touch exploration |
189 // controller so that synthesized touch events are anchored at this point. | 189 // controller so that synthesized touch events are anchored at this point. |
190 void SetTouchAccessibilityAnchorPoint(const gfx::Point& anchor_point); | 190 void SetTouchAccessibilityAnchorPoint(const gfx::Point& anchor_point); |
191 | 191 |
192 private: | 192 private: |
193 explicit RootWindowController(AshWindowTreeHost* host); | 193 explicit RootWindowController(AshWindowTreeHost* host); |
194 enum RootWindowType { PRIMARY, SECONDARY }; | 194 enum RootWindowType { PRIMARY, SECONDARY }; |
195 | 195 |
196 // Initializes the RootWindowController. |is_primary| is true if | 196 // Initializes the RootWindowController based on |root_window_type|. |
197 // the controller is for primary display. |first_run_after_boot| is | 197 void Init(RootWindowType root_window_type); |
198 // set to true only for primary root window after boot. | |
199 void Init(RootWindowType root_window_type, bool first_run_after_boot); | |
200 | 198 |
201 void InitLayoutManagers(); | 199 void InitLayoutManagers(); |
202 | 200 |
203 // Initializes |system_wallpaper_| and possibly also |boot_splash_screen_|. | 201 // Initializes |system_wallpaper_| and possibly also |boot_splash_screen_|. |
204 // |is_first_run_after_boot| determines the wallpaper's initial color. | 202 // The initial color is determined by the |root_window_type| and whether or |
205 void CreateSystemWallpaper(bool is_first_run_after_boot); | 203 // not this is the first boot. |
| 204 void CreateSystemWallpaper(RootWindowType root_window_type); |
206 | 205 |
207 // Enables projection touch HUD. | 206 // Enables projection touch HUD. |
208 void EnableTouchHudProjection(); | 207 void EnableTouchHudProjection(); |
209 | 208 |
210 // Disables projection touch HUD. | 209 // Disables projection touch HUD. |
211 void DisableTouchHudProjection(); | 210 void DisableTouchHudProjection(); |
212 | 211 |
213 DockedWindowLayoutManager* docked_window_layout_manager(); | 212 DockedWindowLayoutManager* docked_window_layout_manager(); |
214 PanelLayoutManager* panel_layout_manager(); | 213 PanelLayoutManager* panel_layout_manager(); |
215 | 214 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 252 |
254 // On classic ash, returns the RootWindowController for the given |root_window|. | 253 // On classic ash, returns the RootWindowController for the given |root_window|. |
255 // On mus ash, returns the RootWindowController for the primary display. | 254 // On mus ash, returns the RootWindowController for the primary display. |
256 // See RootWindowController class comment above. | 255 // See RootWindowController class comment above. |
257 ASH_EXPORT RootWindowController* GetRootWindowController( | 256 ASH_EXPORT RootWindowController* GetRootWindowController( |
258 const aura::Window* root_window); | 257 const aura::Window* root_window); |
259 | 258 |
260 } // namespace ash | 259 } // namespace ash |
261 | 260 |
262 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 261 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |