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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 // Activate virtual keyboard on current root window controller. | 223 // Activate virtual keyboard on current root window controller. |
224 void ActivateKeyboard(keyboard::KeyboardController* keyboard_controller); | 224 void ActivateKeyboard(keyboard::KeyboardController* keyboard_controller); |
225 | 225 |
226 // Deactivate virtual keyboard on current root window controller. | 226 // Deactivate virtual keyboard on current root window controller. |
227 void DeactivateKeyboard(keyboard::KeyboardController* keyboard_controller); | 227 void DeactivateKeyboard(keyboard::KeyboardController* keyboard_controller); |
228 | 228 |
229 // Tests if a window is associated with the virtual keyboard. | 229 // Tests if a window is associated with the virtual keyboard. |
230 bool IsVirtualKeyboardWindow(aura::Window* window); | 230 bool IsVirtualKeyboardWindow(aura::Window* window); |
231 | 231 |
| 232 // If touch exploration is enabled, update the touch exploration |
| 233 // controller so that synthesized touch events are anchored at this point. |
| 234 void SetTouchAccessibilityAnchorPoint(const gfx::Point& anchor_point); |
| 235 |
232 private: | 236 private: |
233 explicit RootWindowController(AshWindowTreeHost* host); | 237 explicit RootWindowController(AshWindowTreeHost* host); |
234 enum RootWindowType { | 238 enum RootWindowType { |
235 PRIMARY, | 239 PRIMARY, |
236 SECONDARY | 240 SECONDARY |
237 }; | 241 }; |
238 | 242 |
239 // Initializes the RootWindowController. |is_primary| is true if | 243 // Initializes the RootWindowController. |is_primary| is true if |
240 // the controller is for primary display. |first_run_after_boot| is | 244 // the controller is for primary display. |first_run_after_boot| is |
241 // set to true only for primary root window after boot. | 245 // set to true only for primary root window after boot. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 323 |
320 // On classic ash, returns the RootWindowController for the given |root_window|. | 324 // On classic ash, returns the RootWindowController for the given |root_window|. |
321 // On mus ash, returns the RootWindowController for the primary display. | 325 // On mus ash, returns the RootWindowController for the primary display. |
322 // See RootWindowController class comment above. | 326 // See RootWindowController class comment above. |
323 ASH_EXPORT RootWindowController* GetRootWindowController( | 327 ASH_EXPORT RootWindowController* GetRootWindowController( |
324 const aura::Window* root_window); | 328 const aura::Window* root_window); |
325 | 329 |
326 } // namespace ash | 330 } // namespace ash |
327 | 331 |
328 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 332 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |