1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/base/ime/chromeos/input_method_manager.h"
18 // Event router class for the input method events.
19 class ExtensionInputMethodEventRouter
20 : public input_method::InputMethodManager::Observer
{
22 explicit ExtensionInputMethodEventRouter(content::BrowserContext
* context
);
23 ~ExtensionInputMethodEventRouter() override
;
25 // Implements input_method::InputMethodManager::Observer:
26 void InputMethodChanged(input_method::InputMethodManager
* manager
,
28 bool show_message
) override
;
31 content::BrowserContext
* context_
;
33 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter
);
36 } // namespace chromeos
37 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_