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

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, 12 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..6b7747f7f275e5533e500ed0cf8dead2afd3211d
--- /dev/null
+++ b/chrome/browser/chromeos/extensions/ime_menu_event_router.h
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
Devlin 2016/01/05 18:50:02 not 2015
Azure Wei 2016/01/06 11:50:43 Done.
+// 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/compiler_specific.h"
Devlin 2016/01/05 18:50:02 needed?
Azure Wei 2016/01/06 11:50:44 Deleted.
+#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.
+class ExtensionImeMenuEventRouter
+ : public input_method::InputMethodManager::ImeMenuObserver {
+ public:
+ explicit ExtensionImeMenuEventRouter(content::BrowserContext* context);
+ ~ExtensionImeMenuEventRouter() override;
+
+ // Implements input_method::InputMethodManager::ImeMenuObserver:
Devlin 2016/01/05 18:50:02 Lately, the pattern has been // InheritedClass: vo
Azure Wei 2016/01/06 11:50:43 Done.
+ void ImeMenuActivationChanged(bool activation) override;
+
+ private:
+ content::BrowserContext* context_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionImeMenuEventRouter);
Devlin 2016/01/05 18:50:02 base/macros
Azure Wei 2016/01/06 11:50:44 Done.
+};
+
+} // namespace chromeos
Devlin 2016/01/05 18:50:02 \n
Azure Wei 2016/01/06 11:50:43 Done.
+#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_IME_MENU_EVENT_ROUTER_H_

Powered by Google App Engine
This is Rietveld 408576698