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

Unified Diff: chrome/browser/chromeos/extensions/ime_menu_event_router.h

Issue 1552743003: Add chrome.inputMethodPrivate.onImeMenuActivationChanged 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/chromeos/extensions/ime_menu_event_router.h
diff --git a/chrome/browser/chromeos/extensions/ime_menu_event_router.h b/chrome/browser/chromeos/extensions/ime_menu_event_router.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b836703c384a774514c7f43b12a91408d971c2d
--- /dev/null
+++ b/chrome/browser/chromeos/extensions/ime_menu_event_router.h
@@ -0,0 +1,35 @@
+// 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_CHROMEOS_EXTENSIONS_IME_MENU_EVENT_ROUTER_H_
+#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_IME_MENU_EVENT_ROUTER_H_
+
+#include "base/macros.h"
+#include "ui/base/ime/chromeos/input_method_manager.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace chromeos {
+
+// Event router class for the IME Menu activated/deactivate events.
Devlin 2016/01/13 18:11:27 Can you document the lifetime of this object, sinc
Azure Wei 2016/01/14 09:38:26 Done.
+class ExtensionImeMenuEventRouter
+ : public input_method::InputMethodManager::ImeMenuObserver {
+ public:
+ explicit ExtensionImeMenuEventRouter(content::BrowserContext* context);
+ ~ExtensionImeMenuEventRouter() override;
+
+ // input_method::InputMethodManager::ImeMenuObserver:
+ void ImeMenuActivationChanged(bool activation) override;
+
+ private:
+ content::BrowserContext* context_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionImeMenuEventRouter);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_IME_MENU_EVENT_ROUTER_H_

Powered by Google App Engine
This is Rietveld 408576698