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

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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/ime_menu_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d6508d5486901347af459d9db3b26cb943d0372d
--- /dev/null
+++ b/chrome/browser/chromeos/extensions/ime_menu_event_router.h
@@ -0,0 +1,37 @@
+// 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.
+// It's owned by InputMethodManager, and its lifetime restricted to the lifetime
+// of the InputMethodManager and the EventRouter.
+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_
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/ime_menu_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698