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

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

Issue 1528483002: Add chrome.input.ime.activate and chrome.input.ime.deactivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « tools/metrics/histograms/histograms.xml ('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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Show or hide the candidate window. 131 // Show or hide the candidate window.
132 virtual bool SetCandidateWindowVisible(bool visible, std::string* error) = 0; 132 virtual bool SetCandidateWindowVisible(bool visible, std::string* error) = 0;
133 133
134 // Set the position of the cursor in the candidate window. 134 // Set the position of the cursor in the candidate window.
135 virtual bool SetCursorPosition(int context_id, 135 virtual bool SetCursorPosition(int context_id,
136 int candidate_id, 136 int candidate_id,
137 std::string* error) = 0; 137 std::string* error) = 0;
138 // Hides the input view window (from API call). 138 // Hides the input view window (from API call).
139 virtual void HideInputView() = 0; 139 virtual void HideInputView() = 0;
140 140
141 #elif defined(OS_LINUX) || defined(OS_WIN)
142
143 // Get the id of the IME extension.
144 virtual std::string GetExtensionId() const = 0;
141 #endif // defined(OS_CHROMEOS) 145 #endif // defined(OS_CHROMEOS)
142 protected: 146 protected:
143 IMEEngineHandlerInterface() {} 147 IMEEngineHandlerInterface() {}
144 }; 148 };
145 149
146 } // namespace ui 150 } // namespace ui
147 151
148 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ 152 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_
OLDNEW
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698