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

Side by Side Diff: chrome/browser/extensions/extension_input_ime_api.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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_EXTENSIONS_EXTENSION_INPUT_IME_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
(...skipping 13 matching lines...) Expand all
24 class ImeObserver; 24 class ImeObserver;
25 } 25 }
26 26
27 class ExtensionInputImeEventRouter { 27 class ExtensionInputImeEventRouter {
28 public: 28 public:
29 static ExtensionInputImeEventRouter* GetInstance(); 29 static ExtensionInputImeEventRouter* GetInstance();
30 void Init(); 30 void Init();
31 31
32 bool RegisterIme(Profile* profile, 32 bool RegisterIme(Profile* profile,
33 const std::string& extension_id, 33 const std::string& extension_id,
34 const Extension::InputComponentInfo& component); 34 const extensions::Extension::InputComponentInfo& component);
35 void UnregisterAllImes(Profile* profile, const std::string& extension_id); 35 void UnregisterAllImes(Profile* profile, const std::string& extension_id);
36 chromeos::InputMethodEngine* GetEngine(const std::string& extension_id, 36 chromeos::InputMethodEngine* GetEngine(const std::string& extension_id,
37 const std::string& engine_id); 37 const std::string& engine_id);
38 chromeos::InputMethodEngine* GetActiveEngine(const std::string& extension_id); 38 chromeos::InputMethodEngine* GetActiveEngine(const std::string& extension_id);
39 39
40 40
41 // Called when a key event was handled. 41 // Called when a key event was handled.
42 void OnEventHandled(const std::string& extension_id, 42 void OnEventHandled(const std::string& extension_id,
43 const std::string& request_id, 43 const std::string& request_id,
44 bool handled); 44 bool handled);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.ime.eventHandled"); 164 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.ime.eventHandled");
165 165
166 protected: 166 protected:
167 virtual ~InputEventHandled() {} 167 virtual ~InputEventHandled() {}
168 168
169 // ExtensionFunction: 169 // ExtensionFunction:
170 virtual bool RunImpl() OVERRIDE; 170 virtual bool RunImpl() OVERRIDE;
171 }; 171 };
172 172
173 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_ 173 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_infobar_delegate.cc ('k') | chrome/browser/extensions/extension_input_ime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698