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 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // Deactivate virtual keyboard on current root window controller. | 235 // Deactivate virtual keyboard on current root window controller. |
236 void DeactivateKeyboard(keyboard::KeyboardController* keyboard_controller); | 236 void DeactivateKeyboard(keyboard::KeyboardController* keyboard_controller); |
237 | 237 |
238 // Tests if a window is associated with the virtual keyboard. | 238 // Tests if a window is associated with the virtual keyboard. |
239 bool IsVirtualKeyboardWindow(aura::Window* window); | 239 bool IsVirtualKeyboardWindow(aura::Window* window); |
240 | 240 |
241 private: | 241 private: |
242 explicit RootWindowController(AshWindowTreeHost* host); | 242 explicit RootWindowController(AshWindowTreeHost* host); |
243 enum RootWindowType { | 243 enum RootWindowType { |
244 PRIMARY, | 244 PRIMARY, |
245 SECONDARY, | 245 SECONDARY |
246 VIRTUAL_KEYBOARD | |
247 }; | 246 }; |
248 | 247 |
249 // Initializes the RootWindowController. |is_primary| is true if | 248 // Initializes the RootWindowController. |is_primary| is true if |
250 // the controller is for primary display. |first_run_after_boot| is | 249 // the controller is for primary display. |first_run_after_boot| is |
251 // set to true only for primary root window after boot. | 250 // set to true only for primary root window after boot. |
252 void Init(RootWindowType root_window_type, bool first_run_after_boot); | 251 void Init(RootWindowType root_window_type, bool first_run_after_boot); |
253 | 252 |
254 void InitLayoutManagers(); | 253 void InitLayoutManagers(); |
255 | 254 |
256 // Initializes |system_background_| and possibly also |boot_splash_screen_|. | 255 // Initializes |system_background_| and possibly also |boot_splash_screen_|. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 }; | 320 }; |
322 | 321 |
323 | 322 |
324 // Gets the RootWindowController for |root_window|. | 323 // Gets the RootWindowController for |root_window|. |
325 ASH_EXPORT RootWindowController* GetRootWindowController( | 324 ASH_EXPORT RootWindowController* GetRootWindowController( |
326 const aura::Window* root_window); | 325 const aura::Window* root_window); |
327 | 326 |
328 } // namespace ash | 327 } // namespace ash |
329 | 328 |
330 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 329 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |