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

Unified Diff: chrome/browser/input_method/input_method_engine.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/input_method/input_method_engine.h
diff --git a/chrome/browser/input_method/input_method_engine.h b/chrome/browser/input_method/input_method_engine.h
new file mode 100644
index 0000000000000000000000000000000000000000..f60a4ac3b449321061acdf00bb59fde33fee0e9e
--- /dev/null
+++ b/chrome/browser/input_method/input_method_engine.h
@@ -0,0 +1,50 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
+#define CHROME_BROWSER_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
+
+#include <map>
Devlin 2016/01/11 21:48:34 Trim includes
Azure Wei 2016/01/13 02:28:10 Done.
+#include <string>
+#include <vector>
+#include "base/time/time.h"
+#include "chrome/browser/input_method/input_method_engine_base.h"
+#include "ui/base/ime/chromeos/input_method_descriptor.h"
+#include "ui/base/ime/ime_engine_handler_interface.h"
+#include "ui/base/ime/ime_engine_observer.h"
+#include "url/gurl.h"
+
+class Profile;
+
+namespace ui {
+struct CompositionText;
+class IMEEngineHandlerInterface;
+class IMEEngineObserver;
+class KeyEvent;
+} // namespace ui
+
+namespace input_method {
+class InputMethodEngineBase;
+
+class InputMethodEngine : public InputMethodEngineBase {
+ public:
+ InputMethodEngine();
+
+ ~InputMethodEngine() override;
+
+ // ui::IMEEngineHandlerInterface:
+ bool SendKeyEvents(int context_id,
+ const std::vector<KeyboardEvent>& events) override;
+ bool IsActive() const override;
+
+ std::string GetExtensionId() const override;
+
+ private:
+ // ::input_method::InputMethodEngineBase:
+ bool CheckProfile() const override;
Devlin 2016/01/11 21:48:34 DISALLOW_COPY_AND_ASSIGN
Azure Wei 2016/01/13 02:28:10 Done.
+};
+
+} // namespace input_method
+
+#endif // CHROME_BROWSER_INPUT_METHOD_INPUT_METHOD_ENGINE_H_

Powered by Google App Engine
This is Rietveld 408576698