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

Side by Side Diff: chrome/browser/extensions/api/input_ime/input_ime_api.h

Issue 531613002: InputImeEventRouter::RegisterImeExtension should register extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/input_ime/input_ime_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 19 matching lines...) Expand all
30 30
31 namespace extensions { 31 namespace extensions {
32 class ExtensionRegistry; 32 class ExtensionRegistry;
33 struct InputComponentInfo; 33 struct InputComponentInfo;
34 34
35 class InputImeEventRouter { 35 class InputImeEventRouter {
36 public: 36 public:
37 static InputImeEventRouter* GetInstance(); 37 static InputImeEventRouter* GetInstance();
38 38
39 bool RegisterImeExtension( 39 bool RegisterImeExtension(
40 Profile* profile,
40 const std::string& extension_id, 41 const std::string& extension_id,
41 const std::vector<extensions::InputComponentInfo>& input_components); 42 const std::vector<extensions::InputComponentInfo>& input_components);
42 void UnregisterAllImes(const std::string& extension_id); 43 void UnregisterAllImes(const std::string& extension_id);
43 44
44 chromeos::InputMethodEngineInterface* GetEngine( 45 chromeos::InputMethodEngineInterface* GetEngine(
45 const std::string& extension_id, 46 const std::string& extension_id,
46 const std::string& component_id); 47 const std::string& component_id);
47 chromeos::InputMethodEngineInterface* GetActiveEngine( 48 chromeos::InputMethodEngineInterface* GetActiveEngine(
48 const std::string& extension_id); 49 const std::string& extension_id);
49 50
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 content::BrowserContext* const browser_context_; 249 content::BrowserContext* const browser_context_;
249 250
250 // Listen to extension load, unloaded notifications. 251 // Listen to extension load, unloaded notifications.
251 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 252 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
252 extension_registry_observer_; 253 extension_registry_observer_;
253 }; 254 };
254 255
255 } // namespace extensions 256 } // namespace extensions
256 257
257 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ 258 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/input_ime/input_ime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698