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

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

Issue 1562733002: Make InputMethodEngine to inherit from new added class InputMethodEngineBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove function CheckProfile(). Created 4 years, 11 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_IME_ENGINE_HANDLER_INTERFACE_H_ 5 #ifndef UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_
6 #define UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ 6 #define UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Called when the Chrome input field lose the focus. 89 // Called when the Chrome input field lose the focus.
90 virtual void FocusOut() = 0; 90 virtual void FocusOut() = 0;
91 91
92 // Called when the IME is enabled. 92 // Called when the IME is enabled.
93 virtual void Enable(const std::string& component_id) = 0; 93 virtual void Enable(const std::string& component_id) = 0;
94 94
95 // Called when the IME is disabled. 95 // Called when the IME is disabled.
96 virtual void Disable() = 0; 96 virtual void Disable() = 0;
97 97
98 // Called when a property is activated or changed.
99 virtual void PropertyActivate(const std::string& property_name) = 0;
100
101 // Called when the IME is reset. 98 // Called when the IME is reset.
102 virtual void Reset() = 0; 99 virtual void Reset() = 0;
103 100
104 // Called when the key event is received. 101 // Called when the key event is received.
105 // Actual implementation must call |callback| after key event handling. 102 // Actual implementation must call |callback| after key event handling.
106 virtual void ProcessKeyEvent(const KeyEvent& key_event, 103 virtual void ProcessKeyEvent(const KeyEvent& key_event,
107 KeyEventDoneCallback& callback) = 0; 104 KeyEventDoneCallback& callback) = 0;
108 105
109 // Called when a new surrounding text is set. The |text| is surrounding text 106 // Called when a new surrounding text is set. The |text| is surrounding text
110 // and |cursor_pos| is 0 based index of cursor position in |text|. If there is 107 // and |cursor_pos| is 0 based index of cursor position in |text|. If there is
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 bool is_cursor_visible; 223 bool is_cursor_visible;
227 bool is_vertical; 224 bool is_vertical;
228 bool show_window_at_composition; 225 bool show_window_at_composition;
229 226
230 // Auxiliary text is typically displayed in the footer of the candidate 227 // Auxiliary text is typically displayed in the footer of the candidate
231 // window. 228 // window.
232 std::string auxiliary_text; 229 std::string auxiliary_text;
233 bool is_auxiliary_text_visible; 230 bool is_auxiliary_text_visible;
234 }; 231 };
235 232
233 // Called when a property is activated or changed.
234 virtual void PropertyActivate(const std::string& property_name) = 0;
235
236 // Called when the candidate in lookup table is clicked. The |index| is 0 236 // Called when the candidate in lookup table is clicked. The |index| is 0
237 // based candidate index in lookup table. 237 // based candidate index in lookup table.
238 virtual void CandidateClicked(uint32_t index) = 0; 238 virtual void CandidateClicked(uint32_t index) = 0;
239 239
240 // This function returns the current property of the candidate window. 240 // This function returns the current property of the candidate window.
241 // The caller can use the returned value as the default property and 241 // The caller can use the returned value as the default property and
242 // modify some of specified items. 242 // modify some of specified items.
243 virtual const CandidateWindowProperty& GetCandidateWindowProperty() const = 0; 243 virtual const CandidateWindowProperty& GetCandidateWindowProperty() const = 0;
244 244
245 // Change the property of the candidate window and repaint the candidate 245 // Change the property of the candidate window and repaint the candidate
(...skipping 17 matching lines...) Expand all
263 // Set the list of items that appears in the language menu when this IME is 263 // Set the list of items that appears in the language menu when this IME is
264 // active. 264 // active.
265 virtual bool SetMenuItems(const std::vector<MenuItem>& items) = 0; 265 virtual bool SetMenuItems(const std::vector<MenuItem>& items) = 0;
266 266
267 // Update the state of the menu items. 267 // Update the state of the menu items.
268 virtual bool UpdateMenuItems(const std::vector<MenuItem>& items) = 0; 268 virtual bool UpdateMenuItems(const std::vector<MenuItem>& items) = 0;
269 269
270 // Hides the input view window (from API call). 270 // Hides the input view window (from API call).
271 virtual void HideInputView() = 0; 271 virtual void HideInputView() = 0;
272 272
273 #endif 273 #endif // defined(OS_CHROMEOS)
274 274
275 protected: 275 protected:
276 IMEEngineHandlerInterface() {} 276 IMEEngineHandlerInterface() {}
277 }; 277 };
278 278
279 } // namespace ui 279 } // namespace ui
280 280
281 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ 281 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698