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

Side by Side Diff: ui/keyboard/keyboard_controller.h

Issue 254743005: Fix white virtual keyboard at login screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | ui/keyboard/keyboard_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ 5 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ 6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/event_types.h" 9 #include "base/event_types.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Returns the container for the keyboard, which is owned by 50 // Returns the container for the keyboard, which is owned by
51 // KeyboardController. 51 // KeyboardController.
52 aura::Window* GetContainerWindow(); 52 aura::Window* GetContainerWindow();
53 53
54 // Whether the container window for the keyboard has been initialized. 54 // Whether the container window for the keyboard has been initialized.
55 bool keyboard_container_initialized() const { 55 bool keyboard_container_initialized() const {
56 return container_.get() != NULL; 56 return container_.get() != NULL;
57 } 57 }
58 58
59 // Reloads the content of the keyboard. 59 // Reloads the content of the keyboard. No-op if the keyboard content is not
60 // loaded yet.
60 void Reload(); 61 void Reload();
61 62
62 // Hides virtual keyboard and notifies observer bounds change. 63 // Hides virtual keyboard and notifies observer bounds change.
63 // This function should be called with a delay to avoid layout flicker 64 // This function should be called with a delay to avoid layout flicker
64 // when the focus of input field quickly change. |automatic| is true when the 65 // when the focus of input field quickly change. |automatic| is true when the
65 // call is made by the system rather than initiated by the user. 66 // call is made by the system rather than initiated by the user.
66 void HideKeyboard(HideReason reason); 67 void HideKeyboard(HideReason reason);
67 68
68 // Notifies the keyboard observer for keyboard bounds changed. 69 // Notifies the keyboard observer for keyboard bounds changed.
69 void NotifyKeyboardBoundsChanging(const gfx::Rect& new_bounds); 70 void NotifyKeyboardBoundsChanging(const gfx::Rect& new_bounds);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 gfx::Rect current_keyboard_bounds_; 149 gfx::Rect current_keyboard_bounds_;
149 150
150 static KeyboardController* instance_; 151 static KeyboardController* instance_;
151 152
152 DISALLOW_COPY_AND_ASSIGN(KeyboardController); 153 DISALLOW_COPY_AND_ASSIGN(KeyboardController);
153 }; 154 };
154 155
155 } // namespace keyboard 156 } // namespace keyboard
156 157
157 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ 158 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/keyboard/keyboard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698