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

Side by Side 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: Created 7 years, 3 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
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/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void OnWindowHierarchyChanged( 54 virtual void OnWindowHierarchyChanged(
55 const HierarchyChangeParams& params) OVERRIDE; 55 const HierarchyChangeParams& params) OVERRIDE;
56 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 56 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
57 57
58 // InputMethodObserver overrides 58 // InputMethodObserver overrides
59 virtual void OnTextInputStateChanged( 59 virtual void OnTextInputStateChanged(
60 const ui::TextInputClient* client) OVERRIDE; 60 const ui::TextInputClient* client) OVERRIDE;
61 virtual void OnInputMethodDestroyed( 61 virtual void OnInputMethodDestroyed(
62 const ui::InputMethod* input_method) OVERRIDE; 62 const ui::InputMethod* input_method) OVERRIDE;
63 63
64 // Hides virtual keyboard and notifies observer bounds change.
65 // This functions should be called with a delay to avoid layout flicker
66 // when the focus of input field quickly change.
67 void HideKeyboard();
68
69 bool WillHideKeyboard();
sadrul 2013/08/29 23:43:54 make this const
bshe 2013/08/30 15:54:19 Done.
70
64 scoped_ptr<KeyboardControllerProxy> proxy_; 71 scoped_ptr<KeyboardControllerProxy> proxy_;
65 aura::Window* container_; 72 aura::Window* container_;
66 ui::InputMethod* input_method_; 73 ui::InputMethod* input_method_;
74 bool keyboard_visible_;
75 base::WeakPtrFactory<KeyboardController> weak_factory_;
67 76
68 ObserverList<KeyboardControllerObserver> observer_list_; 77 ObserverList<KeyboardControllerObserver> observer_list_;
69 78
70 DISALLOW_COPY_AND_ASSIGN(KeyboardController); 79 DISALLOW_COPY_AND_ASSIGN(KeyboardController);
71 }; 80 };
72 81
73 } // namespace keyboard 82 } // namespace keyboard
74 83
75 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ 84 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
OLDNEW
« 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