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

Unified Diff: chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.h

Issue 1554983002: Build chrome.input.ime.* API in GN mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove class InputImeEventRouter from input_ime_api.h to input_ime_api_chromeos/nonchromeos.h 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/extensions/api/input_ime/input_ime_api_nonchromeos.h
diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.h b/chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..73c48d5624147853180f5dd045f2f917a778cb69
--- /dev/null
+++ b/chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.h
@@ -0,0 +1,44 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
Devlin 2016/01/05 18:39:07 Not 2015
Azure Wei 2016/01/06 06:53:47 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_NONCHROMEOS_H_
+#define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_NONCHROMEOS_H_
+
+#include "extensions/browser/extension_function.h"
+
+namespace extensions {
Devlin 2016/01/05 18:39:07 \n
Azure Wei 2016/01/06 06:53:47 Done.
+class InputImeEventRouter {
+ public:
+ explicit InputImeEventRouter(Profile* profile);
+ ~InputImeEventRouter();
+
+ // Called when a key event was handled.
+ void OnKeyEventHandled(const std::string& extension_id,
+ const std::string& request_id,
+ bool handled);
+
+ std::string AddRequest(
+ const std::string& component_id,
+ ui::IMEEngineHandlerInterface::KeyEventDoneCallback& key_data);
+
+ private:
+ typedef std::map<
Devlin 2016/01/05 18:39:07 using
Devlin 2016/01/05 18:39:07 #include <map>
Azure Wei 2016/01/06 06:53:47 Done.
Azure Wei 2016/01/06 06:53:47 Done.
+ std::string,
+ std::pair<std::string,
Devlin 2016/01/05 18:39:07 #include <utility>
Azure Wei 2016/01/06 06:53:47 Done.
+ ui::IMEEngineHandlerInterface::KeyEventDoneCallback>>
+ RequestMap;
+
+ // The id of the all registered extensions.
+ std::vector<std::string> extension_ids_;
Devlin 2016/01/05 18:39:07 #include <string>
Azure Wei 2016/01/06 06:53:47 Done.
+
+ unsigned int next_request_id_;
+ RequestMap request_map_;
+ Profile* profile_;
Devlin 2016/01/05 18:39:06 forward declare
Azure Wei 2016/01/06 06:53:47 Done.
+
Devlin 2016/01/05 18:39:07 base/macros
Azure Wei 2016/01/06 06:53:47 Done.
+ DISALLOW_COPY_AND_ASSIGN(InputImeEventRouter);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_NONCHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698