Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / extensions / input_method_event_router.h
blobb7f01692908a8bd6e37ee1c980f769e4c21dc0ca
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 <string>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "chromeos/ime/input_method_manager.h"
14 namespace content {
15 class BrowserContext;
18 namespace chromeos {
20 // Event router class for the input method events.
21 class ExtensionInputMethodEventRouter
22 : public input_method::InputMethodManager::Observer {
23 public:
24 explicit ExtensionInputMethodEventRouter(content::BrowserContext* context);
25 virtual ~ExtensionInputMethodEventRouter();
27 // Implements input_method::InputMethodManager::Observer:
28 virtual void InputMethodChanged(
29 input_method::InputMethodManager* manager,
30 bool show_message) OVERRIDE;
31 virtual void InputMethodPropertyChanged(
32 input_method::InputMethodManager* manager) OVERRIDE {}
34 private:
35 content::BrowserContext* context_;
37 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter);
40 } // namespace chromeos
41 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_