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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // Returns the topmost window or one of its transient parents, if any of them | 227 // Returns the topmost window or one of its transient parents, if any of them |
228 // are in fullscreen mode. | 228 // are in fullscreen mode. |
229 const aura::Window* GetWindowForFullscreenMode() const; | 229 const aura::Window* GetWindowForFullscreenMode() const; |
230 | 230 |
231 // Activate virtual keyboard on current root window controller. | 231 // Activate virtual keyboard on current root window controller. |
232 void ActivateKeyboard(keyboard::KeyboardController* keyboard_controller); | 232 void ActivateKeyboard(keyboard::KeyboardController* keyboard_controller); |
233 | 233 |
234 // Deactivate virtual keyboard on current root window controller. | 234 // Deactivate virtual keyboard on current root window controller. |
235 void DeactivateKeyboard(keyboard::KeyboardController* keyboard_controller); | 235 void DeactivateKeyboard(keyboard::KeyboardController* keyboard_controller); |
236 | 236 |
| 237 // Tests if a window is associated with the virtual keyboard. |
| 238 bool IsVirtualKeyboardWindow(aura::Window* window); |
| 239 |
237 private: | 240 private: |
238 explicit RootWindowController(aura::WindowTreeHost* host); | 241 explicit RootWindowController(aura::WindowTreeHost* host); |
239 enum RootWindowType { | 242 enum RootWindowType { |
240 PRIMARY, | 243 PRIMARY, |
241 SECONDARY, | 244 SECONDARY, |
242 VIRTUAL_KEYBOARD | 245 VIRTUAL_KEYBOARD |
243 }; | 246 }; |
244 | 247 |
245 // Initializes the RootWindowController. |is_primary| is true if | 248 // Initializes the RootWindowController. |is_primary| is true if |
246 // the controller is for primary display. |first_run_after_boot| is | 249 // the controller is for primary display. |first_run_after_boot| is |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 317 |
315 | 318 |
316 // Gets the RootWindowController for |root_window|. | 319 // Gets the RootWindowController for |root_window|. |
317 ASH_EXPORT RootWindowController* GetRootWindowController( | 320 ASH_EXPORT RootWindowController* GetRootWindowController( |
318 const aura::Window* root_window); | 321 const aura::Window* root_window); |
319 | 322 |
320 } // namespace internal | 323 } // namespace internal |
321 } // ash | 324 } // ash |
322 | 325 |
323 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 326 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |