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

Side by Side Diff: chrome/browser/ui/input_method/input_method_engine.h

Issue 1657593007: Implement chrome.input.ime.setComposition/commitText API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use Xxx::Results::Create(). Created 4 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 5 #ifndef CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
6 #define CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 6 #define CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "chrome/browser/ui/input_method/input_method_engine_base.h" 11 #include "chrome/browser/ui/input_method/input_method_engine_base.h"
12 12
13 namespace input_method { 13 namespace input_method {
14 class InputMethodEngine : public InputMethodEngineBase { 14 class InputMethodEngine : public InputMethodEngineBase {
15 public: 15 public:
16 InputMethodEngine(); 16 InputMethodEngine();
17 17
18 ~InputMethodEngine() override; 18 ~InputMethodEngine() override;
19 19
20 // ui::IMEEngineHandlerInterface: 20 // ui::IMEEngineHandlerInterface:
21 bool SendKeyEvents(int context_id, 21 bool SendKeyEvents(int context_id,
22 const std::vector<KeyboardEvent>& events) override; 22 const std::vector<KeyboardEvent>& events) override;
23 bool IsActive() const override; 23 bool IsActive() const override;
24 std::string GetExtensionId() const override; 24 std::string GetExtensionId() const override;
25 25
26 private: 26 private:
27 // input_method::InputMethodEngineBase:
28 void UpdateComposition(const ui::CompositionText& composition_text,
29 uint32_t cursor_pos,
30 bool is_visible) override;
31 void CommitTextToInputContext(int context_id,
32 const std::string& text) override;
33
27 DISALLOW_COPY_AND_ASSIGN(InputMethodEngine); 34 DISALLOW_COPY_AND_ASSIGN(InputMethodEngine);
28 }; 35 };
29 36
30 } // namespace input_method 37 } // namespace input_method
31 38
32 #endif // CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 39 #endif // CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698