| 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 #ifndef EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIVATE
_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIVATE
_API_H_ |
| 6 #define EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIVATE
_API_H_ | 6 #define EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIVATE
_API_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "extensions/browser/browser_context_keyed_api_factory.h" | 9 #include "extensions/browser/browser_context_keyed_api_factory.h" |
| 10 #include "extensions/browser/extension_function.h" | 10 #include "extensions/browser/extension_function.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 158 |
| 159 private: | 159 private: |
| 160 friend class BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>; | 160 friend class BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>; |
| 161 | 161 |
| 162 // BrowserContextKeyedAPI implementation. | 162 // BrowserContextKeyedAPI implementation. |
| 163 static const char* service_name() { return "VirtualKeyboardAPI"; } | 163 static const char* service_name() { return "VirtualKeyboardAPI"; } |
| 164 | 164 |
| 165 // Require accces to delegate while incognito or during login. | 165 // Require accces to delegate while incognito or during login. |
| 166 static const bool kServiceHasOwnInstanceInIncognito = true; | 166 static const bool kServiceHasOwnInstanceInIncognito = true; |
| 167 | 167 |
| 168 scoped_ptr<VirtualKeyboardDelegate> delegate_; | 168 std::unique_ptr<VirtualKeyboardDelegate> delegate_; |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace extensions | 171 } // namespace extensions |
| 172 | 172 |
| 173 #endif // EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIV
ATE_API_H_ | 173 #endif // EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_PRIVATE_VIRTUAL_KEYBOARD_PRIV
ATE_API_H_ |
| OLD | NEW |