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

Side by Side Diff: ui/views/ime/input_method_bridge.h

Issue 20526005: Implement virtual keyboard hiding. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Init 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 unified diff | Download patch
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 UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_
6 #define UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ 6 #define UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 19 matching lines...) Expand all
30 // |shared_input_method| indicates if |host| is shared among other top level 30 // |shared_input_method| indicates if |host| is shared among other top level
31 // widgets. 31 // widgets.
32 InputMethodBridge(internal::InputMethodDelegate* delegate, 32 InputMethodBridge(internal::InputMethodDelegate* delegate,
33 ui::InputMethod* host, 33 ui::InputMethod* host,
34 bool shared_input_method); 34 bool shared_input_method);
35 virtual ~InputMethodBridge(); 35 virtual ~InputMethodBridge();
36 36
37 // Overridden from InputMethod: 37 // Overridden from InputMethod:
38 virtual void OnFocus() OVERRIDE; 38 virtual void OnFocus() OVERRIDE;
39 virtual void OnBlur() OVERRIDE; 39 virtual void OnBlur() OVERRIDE;
40 virtual void OnPossibleRefocus() OVERRIDE;
40 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 41 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
41 NativeEventResult* result) OVERRIDE; 42 NativeEventResult* result) OVERRIDE;
42 virtual void DispatchKeyEvent(const ui::KeyEvent& key) OVERRIDE; 43 virtual void DispatchKeyEvent(const ui::KeyEvent& key) OVERRIDE;
43 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; 44 virtual void OnTextInputTypeChanged(View* view) OVERRIDE;
44 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; 45 virtual void OnCaretBoundsChanged(View* view) OVERRIDE;
45 virtual void CancelComposition(View* view) OVERRIDE; 46 virtual void CancelComposition(View* view) OVERRIDE;
46 virtual void OnInputLocaleChanged() OVERRIDE; 47 virtual void OnInputLocaleChanged() OVERRIDE;
47 virtual std::string GetInputLocale() OVERRIDE; 48 virtual std::string GetInputLocale() OVERRIDE;
48 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; 49 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE;
49 virtual bool IsActive() OVERRIDE; 50 virtual bool IsActive() OVERRIDE;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const bool shared_input_method_; 91 const bool shared_input_method_;
91 92
92 bool context_focused_; 93 bool context_focused_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(InputMethodBridge); 95 DISALLOW_COPY_AND_ASSIGN(InputMethodBridge);
95 }; 96 };
96 97
97 } // namespace views 98 } // namespace views
98 99
99 #endif // UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ 100 #endif // UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698