Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: ash/root_window_controller.h

Issue 216743004: Prevent system modal dialog from blocking events to the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move VK window test to root window controller. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | ash/shell.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698