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

Side by Side Diff: ui/base/ime/input_method.h

Issue 45733008: sk6_charactercomposer: Merged DispatchKeyEvent and its fabricated version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « ui/base/ime/fake_input_method.cc ('k') | ui/base/ime/input_method_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 virtual void DetachTextInputClient(TextInputClient* client) = 0; 92 virtual void DetachTextInputClient(TextInputClient* client) = 0;
93 93
94 // Gets the current text input client. Returns NULL when no client is set. 94 // Gets the current text input client. Returns NULL when no client is set.
95 virtual TextInputClient* GetTextInputClient() const = 0; 95 virtual TextInputClient* GetTextInputClient() const = 0;
96 96
97 // Dispatches a key event to the input method. The key event will be 97 // Dispatches a key event to the input method. The key event will be
98 // dispatched back to the caller via 98 // dispatched back to the caller via
99 // ui::InputMethodDelegate::DispatchKeyEventPostIME(), once it's processed by 99 // ui::InputMethodDelegate::DispatchKeyEventPostIME(), once it's processed by
100 // the input method. It should only be called by a message dispatcher. 100 // the input method. It should only be called by a message dispatcher.
101 // Returns true if the event was processed. 101 // Returns true if the event was processed.
102 virtual bool DispatchKeyEvent(const base::NativeEvent& native_key_event) = 0; 102 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) = 0;
103 103
104 // TODO(yusukes): Add DispatchFabricatedKeyEvent to support virtual keyboards. 104 // TODO(yusukes): Add DispatchFabricatedKeyEvent to support virtual keyboards.
105 // TODO(yusukes): both win and ibus override to do nothing. Is this needed? 105 // TODO(yusukes): both win and ibus override to do nothing. Is this needed?
106 // Returns true if the event was processed. 106 // Returns true if the event was processed.
107 virtual bool DispatchFabricatedKeyEvent(const ui::KeyEvent& event) = 0; 107 virtual bool DispatchFabricatedKeyEvent(const ui::KeyEvent& event) = 0;
108 108
109 // Called by the focused client whenever its text input type is changed. 109 // Called by the focused client whenever its text input type is changed.
110 // Before calling this method, the focused client must confirm or clear 110 // Before calling this method, the focused client must confirm or clear
111 // existing composition text and call InputMethod::CancelComposition() when 111 // existing composition text and call InputMethod::CancelComposition() when
112 // necessary. Otherwise unexpected behavior may happen. This method has no 112 // necessary. Otherwise unexpected behavior may happen. This method has no
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 virtual bool IsCandidatePopupOpen() const = 0; 167 virtual bool IsCandidatePopupOpen() const = 0;
168 168
169 // Management of the observer list. 169 // Management of the observer list.
170 virtual void AddObserver(InputMethodObserver* observer) = 0; 170 virtual void AddObserver(InputMethodObserver* observer) = 0;
171 virtual void RemoveObserver(InputMethodObserver* observer) = 0; 171 virtual void RemoveObserver(InputMethodObserver* observer) = 0;
172 }; 172 };
173 173
174 } // namespace ui 174 } // namespace ui
175 175
176 #endif // UI_BASE_IME_INPUT_METHOD_H_ 176 #endif // UI_BASE_IME_INPUT_METHOD_H_
OLDNEW
« no previous file with comments | « ui/base/ime/fake_input_method.cc ('k') | ui/base/ime/input_method_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698