OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/chromeos/input_method/component_extension_ime_manager_i
mpl.h" | 5 #include "chrome/browser/chromeos/input_method/component_extension_ime_manager_i
mpl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Open-sourced Japanese Mozc Input. | 70 // Open-sourced Japanese Mozc Input. |
71 extension_ime_util::kMozcExtensionId, IDR_MOZC_MANIFEST, | 71 extension_ime_util::kMozcExtensionId, IDR_MOZC_MANIFEST, |
72 }, | 72 }, |
73 { | 73 { |
74 // Open-sourced Hangul Input. | 74 // Open-sourced Hangul Input. |
75 extension_ime_util::kHangulExtensionId, IDR_HANGUL_MANIFEST, | 75 extension_ime_util::kHangulExtensionId, IDR_HANGUL_MANIFEST, |
76 }, | 76 }, |
77 #endif | 77 #endif |
78 { | 78 { |
79 // Braille hardware keyboard IME that works together with ChromeVox. | 79 // Braille hardware keyboard IME that works together with ChromeVox. |
80 extension_misc::kBrailleImeExtensionId, IDR_BRAILLE_MANIFEST, | 80 extension_ime_util::kBrailleImeExtensionId, IDR_BRAILLE_MANIFEST, |
81 }, | 81 }, |
82 }; | 82 }; |
83 | 83 |
84 const char kImePathKeyName[] = "ime_path"; | 84 const char kImePathKeyName[] = "ime_path"; |
85 | 85 |
86 extensions::ComponentLoader* GetComponentLoader(Profile* profile) { | 86 extensions::ComponentLoader* GetComponentLoader(Profile* profile) { |
87 extensions::ExtensionSystem* extension_system = | 87 extensions::ExtensionSystem* extension_system = |
88 extensions::ExtensionSystem::Get(profile); | 88 extensions::ExtensionSystem::Get(profile); |
89 ExtensionService* extension_service = extension_system->extension_service(); | 89 ExtensionService* extension_service = extension_system->extension_service(); |
90 return extension_service->component_loader(); | 90 return extension_service->component_loader(); |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 | 338 |
339 ComponentExtensionEngine engine; | 339 ComponentExtensionEngine engine; |
340 ReadEngineComponent(component_ime, *dictionary, &engine); | 340 ReadEngineComponent(component_ime, *dictionary, &engine); |
341 component_ime.engines.push_back(engine); | 341 component_ime.engines.push_back(engine); |
342 } | 342 } |
343 out_imes->push_back(component_ime); | 343 out_imes->push_back(component_ime); |
344 } | 344 } |
345 } | 345 } |
346 | 346 |
347 } // namespace chromeos | 347 } // namespace chromeos |
OLD | NEW |