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

Unified Diff: ui/keyboard/keyboard_controller.h

Issue 22831045: Delay virtual keyboard hiding for 100ms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/keyboard/keyboard_controller.cc » ('j') | ui/keyboard/keyboard_controller_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_controller.h
diff --git a/ui/keyboard/keyboard_controller.h b/ui/keyboard/keyboard_controller.h
index 6022339c38072319d4dbf48a976b3d6904df8c3e..63f57689f6b1f60e60b5c67e3665a371405de0f2 100644
--- a/ui/keyboard/keyboard_controller.h
+++ b/ui/keyboard/keyboard_controller.h
@@ -25,6 +25,8 @@ class TextInputClient;
namespace keyboard {
+extern const int kHideKeyboardDelayMs;
sadrul 2013/08/29 17:06:33 You don't need to expose this. See note in the tes
bshe 2013/08/29 23:05:03 Done.
+
class KeyboardControllerObserver;
class KeyboardControllerProxy;
class KeyboardLayoutManager;
@@ -61,9 +63,16 @@ class KEYBOARD_EXPORT KeyboardController : public ui::InputMethodObserver,
virtual void OnInputMethodDestroyed(
const ui::InputMethod* input_method) OVERRIDE;
+ // Hides virtual keyboard and notifies observer bounds change.
+ // This functions should be called with a delay to avoid layout flicker
+ // when the focus of input field quickly change.
+ void HideKeyboard();
+
scoped_ptr<KeyboardControllerProxy> proxy_;
aura::Window* container_;
ui::InputMethod* input_method_;
+ bool keyboard_visible_;
+ base::WeakPtrFactory<KeyboardController> weak_factory_;
ObserverList<KeyboardControllerObserver> observer_list_;
« no previous file with comments | « no previous file | ui/keyboard/keyboard_controller.cc » ('j') | ui/keyboard/keyboard_controller_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698