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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_engine_interface.h

Issue 641243005: Support a private event - inputMethodPrivate.onCompositionBoundsChanged so that component IME exten… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits + unit test Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Called when a menu item for this IME is interacted with. 163 // Called when a menu item for this IME is interacted with.
164 virtual void OnMenuItemActivated(const std::string& engine_id, 164 virtual void OnMenuItemActivated(const std::string& engine_id,
165 const std::string& menu_id) = 0; 165 const std::string& menu_id) = 0;
166 166
167 // Called when a surrounding text is changed. 167 // Called when a surrounding text is changed.
168 virtual void OnSurroundingTextChanged(const std::string& engine_id, 168 virtual void OnSurroundingTextChanged(const std::string& engine_id,
169 const std::string& text, 169 const std::string& text,
170 int cursor_pos, 170 int cursor_pos,
171 int anchor_pos) = 0; 171 int anchor_pos) = 0;
172 172
173 // Called when composition bounds are changed.
174 virtual void OnCompositionBoundsChanged(const gfx::Rect& bounds) = 0;
175
173 // Called when Chrome terminates on-going text input session. 176 // Called when Chrome terminates on-going text input session.
174 virtual void OnReset(const std::string& engine_id) = 0; 177 virtual void OnReset(const std::string& engine_id) = 0;
175 }; 178 };
176 179
177 virtual ~InputMethodEngineInterface() {} 180 virtual ~InputMethodEngineInterface() {}
178 181
179 // Set the current composition and associated properties. 182 // Set the current composition and associated properties.
180 virtual bool SetComposition(int context_id, 183 virtual bool SetComposition(int context_id,
181 const char* text, 184 const char* text,
182 int selection_start, 185 int selection_start,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 size_t number_of_chars, 248 size_t number_of_chars,
246 std::string* error) = 0; 249 std::string* error) = 0;
247 250
248 // Hides the input view window (from API call). 251 // Hides the input view window (from API call).
249 virtual void HideInputView() = 0; 252 virtual void HideInputView() = 0;
250 }; 253 };
251 254
252 } // namespace chromeos 255 } // namespace chromeos
253 256
254 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ 257 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698