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

Side by Side Diff: ui/base/ime/input_method.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_BASE_IME_INPUT_METHOD_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_H_
6 #define UI_BASE_IME_INPUT_METHOD_H_ 6 #define UI_BASE_IME_INPUT_METHOD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Initializes the InputMethod object. Pass true if the system toplevel window 64 // Initializes the InputMethod object. Pass true if the system toplevel window
65 // already has keyboard focus. 65 // already has keyboard focus.
66 virtual void Init(bool focused) = 0; 66 virtual void Init(bool focused) = 0;
67 67
68 // Called when the top-level system window gets keyboard focus. 68 // Called when the top-level system window gets keyboard focus.
69 virtual void OnFocus() = 0; 69 virtual void OnFocus() = 0;
70 70
71 // Called when the top-level system window loses keyboard focus. 71 // Called when the top-level system window loses keyboard focus.
72 virtual void OnBlur() = 0; 72 virtual void OnBlur() = 0;
73 73
74 // Called when the top-level system window may have re-received keyboard
75 // focused.
76 virtual void OnPossibleRefocus() = 0;
77
74 // Called when the focused window receives native IME messages that are not 78 // Called when the focused window receives native IME messages that are not
75 // translated into other predefined event callbacks. Currently this method is 79 // translated into other predefined event callbacks. Currently this method is
76 // used only for IME functionalities specific to Windows. 80 // used only for IME functionalities specific to Windows.
77 // TODO(ime): Break down these messages into platform-neutral methods. 81 // TODO(ime): Break down these messages into platform-neutral methods.
78 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 82 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
79 NativeEventResult* result) = 0; 83 NativeEventResult* result) = 0;
80 84
81 // Sets the text input client which receives text input events such as 85 // Sets the text input client which receives text input events such as
82 // SetCompositionText(). |client| can be NULL. A gfx::NativeWindow which 86 // SetCompositionText(). |client| can be NULL. A gfx::NativeWindow which
83 // implementes TextInputClient interface, e.g. NWA and RWHVA, should register 87 // implementes TextInputClient interface, e.g. NWA and RWHVA, should register
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 virtual bool IsCandidatePopupOpen() const = 0; 157 virtual bool IsCandidatePopupOpen() const = 0;
154 158
155 // Management of the observer list. 159 // Management of the observer list.
156 virtual void AddObserver(InputMethodObserver* observer) = 0; 160 virtual void AddObserver(InputMethodObserver* observer) = 0;
157 virtual void RemoveObserver(InputMethodObserver* observer) = 0; 161 virtual void RemoveObserver(InputMethodObserver* observer) = 0;
158 }; 162 };
159 163
160 } // namespace ui 164 } // namespace ui
161 165
162 #endif // UI_BASE_IME_INPUT_METHOD_H_ 166 #endif // UI_BASE_IME_INPUT_METHOD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698