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

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: Addressed Devlin's comments. 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
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 #elif defined(OS_LINUX) || defined(OS_WIN)
274
275 // Get the id of the activated extension
276 virtual std::string GetExtensionId() const = 0;
273 #endif // defined(OS_CHROMEOS) 277 #endif // defined(OS_CHROMEOS)
274 278
275 protected: 279 protected:
276 IMEEngineHandlerInterface() {} 280 IMEEngineHandlerInterface() {}
277 }; 281 };
278 282
279 } // namespace ui 283 } // namespace ui
280 284
281 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ 285 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_
OLDNEW
« chrome/common/extensions/api/input_ime.json ('K') | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698