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

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

Issue 1590863002: Move the local struct definitions off ui/base/ime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "chrome/browser/extensions/api/input_ime/input_ime_event_router_base.h" 12 #include "chrome/browser/extensions/api/input_ime/input_ime_event_router_base.h"
13 #include "chrome/common/extensions/api/input_ime/input_components_handler.h" 13 #include "chrome/common/extensions/api/input_ime/input_components_handler.h"
14 #include "extensions/browser/extension_function.h" 14 #include "extensions/browser/extension_function.h"
15 15
16 namespace chromeos {
17
18 class InputMethodEngine;
19
20 } // namespace chromeos
21
16 namespace extensions { 22 namespace extensions {
17 23
18 class InputImeSetCompositionFunction : public SyncExtensionFunction { 24 class InputImeSetCompositionFunction : public SyncExtensionFunction {
19 public: 25 public:
20 DECLARE_EXTENSION_FUNCTION("input.ime.setComposition", 26 DECLARE_EXTENSION_FUNCTION("input.ime.setComposition",
21 INPUT_IME_SETCOMPOSITION) 27 INPUT_IME_SETCOMPOSITION)
22 28
23 protected: 29 protected:
24 ~InputImeSetCompositionFunction() override {} 30 ~InputImeSetCompositionFunction() override {}
25 31
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 class InputImeEventRouter : public InputImeEventRouterBase { 153 class InputImeEventRouter : public InputImeEventRouterBase {
148 public: 154 public:
149 explicit InputImeEventRouter(Profile* profile); 155 explicit InputImeEventRouter(Profile* profile);
150 ~InputImeEventRouter() override; 156 ~InputImeEventRouter() override;
151 157
152 bool RegisterImeExtension( 158 bool RegisterImeExtension(
153 const std::string& extension_id, 159 const std::string& extension_id,
154 const std::vector<extensions::InputComponentInfo>& input_components); 160 const std::vector<extensions::InputComponentInfo>& input_components);
155 void UnregisterAllImes(const std::string& extension_id); 161 void UnregisterAllImes(const std::string& extension_id);
156 162
157 ui::IMEEngineHandlerInterface* GetEngine(const std::string& extension_id, 163 chromeos::InputMethodEngine* GetEngine(const std::string& extension_id,
158 const std::string& component_id); 164 const std::string& component_id);
159 ui::IMEEngineHandlerInterface* GetActiveEngine( 165 chromeos::InputMethodEngine* GetActiveEngine(const std::string& extension_id);
160 const std::string& extension_id);
161 166
162 private: 167 private:
163 // The engine map from extension_id to an engine. 168 // The engine map from extension_id to an engine.
164 std::map<std::string, ui::IMEEngineHandlerInterface*> engine_map_; 169 std::map<std::string, chromeos::InputMethodEngine*> engine_map_;
165 170
166 DISALLOW_COPY_AND_ASSIGN(InputImeEventRouter); 171 DISALLOW_COPY_AND_ASSIGN(InputImeEventRouter);
167 }; 172 };
168 173
169 } // namespace extensions 174 } // namespace extensions
170 175
171 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_ 176 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698