OLD | NEW |
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 #include "chrome/browser/chromeos/extensions/input_method_api.h" | 5 #include "chrome/browser/chromeos/extensions/input_method_api.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/chromeos/extensions/input_method_event_router.h" | 10 #include "chrome/browser/chromeos/extensions/input_method_event_router.h" |
11 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 11 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
12 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" | 12 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" |
13 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 13 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
14 #include "chrome/browser/spellchecker/spellcheck_service.h" | 14 #include "chrome/browser/spellchecker/spellcheck_service.h" |
15 #include "chromeos/chromeos_switches.h" | 15 #include "chromeos/chromeos_switches.h" |
16 #include "extensions/browser/extension_function_registry.h" | 16 #include "extensions/browser/extension_function_registry.h" |
17 #include "extensions/browser/extension_system.h" | 17 #include "extensions/browser/extension_system.h" |
18 #include "extensions/common/value_builder.h" | |
19 #include "ui/base/ime/chromeos/extension_ime_util.h" | 18 #include "ui/base/ime/chromeos/extension_ime_util.h" |
20 #include "ui/base/ime/chromeos/input_method_descriptor.h" | 19 #include "ui/base/ime/chromeos/input_method_descriptor.h" |
21 #include "ui/base/ime/chromeos/input_method_manager.h" | 20 #include "ui/base/ime/chromeos/input_method_manager.h" |
22 | 21 |
23 namespace { | 22 namespace { |
24 | 23 |
25 // Prefix, which is used by XKB. | 24 // Prefix, which is used by XKB. |
26 const char kXkbPrefix[] = "xkb:"; | 25 const char kXkbPrefix[] = "xkb:"; |
27 | 26 |
28 } // namespace | 27 } // namespace |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 static base::LazyInstance<BrowserContextKeyedAPIFactory<InputMethodAPI> > | 201 static base::LazyInstance<BrowserContextKeyedAPIFactory<InputMethodAPI> > |
203 g_factory = LAZY_INSTANCE_INITIALIZER; | 202 g_factory = LAZY_INSTANCE_INITIALIZER; |
204 | 203 |
205 // static | 204 // static |
206 BrowserContextKeyedAPIFactory<InputMethodAPI>* | 205 BrowserContextKeyedAPIFactory<InputMethodAPI>* |
207 InputMethodAPI::GetFactoryInstance() { | 206 InputMethodAPI::GetFactoryInstance() { |
208 return g_factory.Pointer(); | 207 return g_factory.Pointer(); |
209 } | 208 } |
210 | 209 |
211 } // namespace extensions | 210 } // namespace extensions |
OLD | NEW |