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

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

Issue 29943002: Limit display of the virtual keyboard to state changes triggered from a user gesture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/event_types.h" 9 #include "base/event_types.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual void OnBlur() OVERRIDE {} 76 virtual void OnBlur() OVERRIDE {}
77 virtual void OnUntranslatedIMEMessage( 77 virtual void OnUntranslatedIMEMessage(
78 const base::NativeEvent& event) OVERRIDE {} 78 const base::NativeEvent& event) OVERRIDE {}
79 virtual void OnCaretBoundsChanged( 79 virtual void OnCaretBoundsChanged(
80 const ui::TextInputClient* client) OVERRIDE {} 80 const ui::TextInputClient* client) OVERRIDE {}
81 virtual void OnInputLocaleChanged() OVERRIDE {} 81 virtual void OnInputLocaleChanged() OVERRIDE {}
82 virtual void OnTextInputStateChanged( 82 virtual void OnTextInputStateChanged(
83 const ui::TextInputClient* client) OVERRIDE; 83 const ui::TextInputClient* client) OVERRIDE;
84 virtual void OnInputMethodDestroyed( 84 virtual void OnInputMethodDestroyed(
85 const ui::InputMethod* input_method) OVERRIDE; 85 const ui::InputMethod* input_method) OVERRIDE;
86 virtual void OnShowVirtualKeyboard() OVERRIDE;
86 87
87 // Returns true if keyboard is scheduled to hide. 88 // Returns true if keyboard is scheduled to hide.
88 bool WillHideKeyboard() const; 89 bool WillHideKeyboard() const;
89 90
90 scoped_ptr<KeyboardControllerProxy> proxy_; 91 scoped_ptr<KeyboardControllerProxy> proxy_;
91 scoped_ptr<aura::Window> container_; 92 scoped_ptr<aura::Window> container_;
92 ui::InputMethod* input_method_; 93 ui::InputMethod* input_method_;
93 bool keyboard_visible_; 94 bool keyboard_visible_;
94 95
95 ObserverList<KeyboardControllerObserver> observer_list_; 96 ObserverList<KeyboardControllerObserver> observer_list_;
96 97
97 base::WeakPtrFactory<KeyboardController> weak_factory_; 98 base::WeakPtrFactory<KeyboardController> weak_factory_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(KeyboardController); 100 DISALLOW_COPY_AND_ASSIGN(KeyboardController);
100 }; 101 };
101 102
102 } // namespace keyboard 103 } // namespace keyboard
103 104
104 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ 105 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698