OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_priva
te_api.h" | 5 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_priva
te_api.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "extensions/browser/api/extensions_api_client.h" | 9 #include "extensions/browser/api/extensions_api_client.h" |
10 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_deleg
ate.h" | 10 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_deleg
ate.h" |
11 #include "extensions/browser/extension_function_registry.h" | 11 #include "extensions/browser/extension_function_registry.h" |
12 #include "extensions/common/api/virtual_keyboard_private.h" | 12 #include "extensions/common/api/virtual_keyboard_private.h" |
13 #include "ui/events/event.h" | 13 #include "ui/events/event.h" |
14 | 14 |
15 namespace SetMode = extensions::core_api::virtual_keyboard_private::SetMode; | 15 namespace SetMode = extensions::api::virtual_keyboard_private::SetMode; |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const char kNotYetImplementedError[] = | 21 const char kNotYetImplementedError[] = |
22 "API is not implemented on this platform."; | 22 "API is not implemented on this platform."; |
23 const char kVirtualKeyboardNotEnabled[] = | 23 const char kVirtualKeyboardNotEnabled[] = |
24 "The virtual keyboard is not enabled."; | 24 "The virtual keyboard is not enabled."; |
25 | 25 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 static base::LazyInstance<BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>> | 146 static base::LazyInstance<BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>> |
147 g_factory = LAZY_INSTANCE_INITIALIZER; | 147 g_factory = LAZY_INSTANCE_INITIALIZER; |
148 | 148 |
149 // static | 149 // static |
150 BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>* | 150 BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>* |
151 VirtualKeyboardAPI::GetFactoryInstance() { | 151 VirtualKeyboardAPI::GetFactoryInstance() { |
152 return g_factory.Pointer(); | 152 return g_factory.Pointer(); |
153 } | 153 } |
154 | 154 |
155 } // namespace extensions | 155 } // namespace extensions |
OLD | NEW |