Chromium Code Reviews| 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_ |