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

Side by Side Diff: chrome/browser/chromeos/extensions/input_method_event_router.h

Issue 973213003: Adds extension events for custom dictionary load/change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: rebase Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_
7 7
8 #include <string>
9
10 #include "base/basictypes.h" 8 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
12 #include "ui/base/ime/chromeos/input_method_manager.h" 10 #include "ui/base/ime/chromeos/input_method_manager.h"
13 11
14 namespace content { 12 namespace content {
15 class BrowserContext; 13 class BrowserContext;
16 } 14 }
17 15
18 namespace chromeos { 16 namespace chromeos {
19 17
20 // Event router class for the input method events. 18 // Event router class for the input method events.
21 class ExtensionInputMethodEventRouter 19 class ExtensionInputMethodEventRouter
22 : public input_method::InputMethodManager::Observer { 20 : public input_method::InputMethodManager::Observer {
23 public: 21 public:
24 explicit ExtensionInputMethodEventRouter(content::BrowserContext* context); 22 explicit ExtensionInputMethodEventRouter(content::BrowserContext* context);
25 ~ExtensionInputMethodEventRouter() override; 23 ~ExtensionInputMethodEventRouter() override;
26 24
27 // Implements input_method::InputMethodManager::Observer: 25 // Implements input_method::InputMethodManager::Observer:
28 void InputMethodChanged(input_method::InputMethodManager* manager, 26 void InputMethodChanged(input_method::InputMethodManager* manager,
29 bool show_message) override; 27 bool show_message) override;
30 28
31 private: 29 private:
32 content::BrowserContext* context_; 30 content::BrowserContext* context_;
33 31
34 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter); 32 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter);
35 }; 33 };
36 34
37 } // namespace chromeos 35 } // namespace chromeos
38 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ 36 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698