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/extensions/extension_function_registry.h" | 5 #include "chrome/browser/extensions/extension_function_registry.h" |
6 | 6 |
7 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 7 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
8 #include "chrome/browser/bookmarks/bookmark_extension_api.h" | 8 #include "chrome/browser/bookmarks/bookmark_extension_api.h" |
9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" | 9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" |
10 #include "chrome/browser/download/download_extension_api.h" | 10 #include "chrome/browser/download/download_extension_api.h" |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 // ChromeOS-specific part of the API. | 346 // ChromeOS-specific part of the API. |
347 #if defined(OS_CHROMEOS) | 347 #if defined(OS_CHROMEOS) |
348 // Device Customization. | 348 // Device Customization. |
349 RegisterFunction<GetChromeosInfoFunction>(); | 349 RegisterFunction<GetChromeosInfoFunction>(); |
350 | 350 |
351 // FileBrowserPrivate functions. | 351 // FileBrowserPrivate functions. |
352 // TODO(jamescook): Expose these on non-ChromeOS platforms so we can use | 352 // TODO(jamescook): Expose these on non-ChromeOS platforms so we can use |
353 // the extension-based file picker on Aura. crbug.com/97424 | 353 // the extension-based file picker on Aura. crbug.com/97424 |
354 RegisterFunction<CancelFileDialogFunction>(); | 354 RegisterFunction<CancelFileDialogFunction>(); |
355 RegisterFunction<ExecuteTasksFileBrowserFunction>(); | 355 RegisterFunction<ExecuteTasksFileBrowserFunction>(); |
| 356 RegisterFunction<SetDefaultTaskFileBrowserFunction>(); |
356 RegisterFunction<FileDialogStringsFunction>(); | 357 RegisterFunction<FileDialogStringsFunction>(); |
357 RegisterFunction<GetFileTasksFileBrowserFunction>(); | 358 RegisterFunction<GetFileTasksFileBrowserFunction>(); |
358 RegisterFunction<GetVolumeMetadataFunction>(); | 359 RegisterFunction<GetVolumeMetadataFunction>(); |
359 RegisterFunction<RequestLocalFileSystemFunction>(); | 360 RegisterFunction<RequestLocalFileSystemFunction>(); |
360 RegisterFunction<AddFileWatchBrowserFunction>(); | 361 RegisterFunction<AddFileWatchBrowserFunction>(); |
361 RegisterFunction<RemoveFileWatchBrowserFunction>(); | 362 RegisterFunction<RemoveFileWatchBrowserFunction>(); |
362 RegisterFunction<SelectFileFunction>(); | 363 RegisterFunction<SelectFileFunction>(); |
363 RegisterFunction<SelectFilesFunction>(); | 364 RegisterFunction<SelectFilesFunction>(); |
364 RegisterFunction<AddMountFunction>(); | 365 RegisterFunction<AddMountFunction>(); |
365 RegisterFunction<RemoveMountFunction>(); | 366 RegisterFunction<RemoveMountFunction>(); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 } | 548 } |
548 | 549 |
549 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( | 550 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( |
550 const std::string& name) { | 551 const std::string& name) { |
551 FactoryMap::iterator iter = factories_.find(name); | 552 FactoryMap::iterator iter = factories_.find(name); |
552 DCHECK(iter != factories_.end()); | 553 DCHECK(iter != factories_.end()); |
553 ExtensionFunction* function = iter->second(); | 554 ExtensionFunction* function = iter->second(); |
554 function->set_name(name); | 555 function->set_name(name); |
555 return function; | 556 return function; |
556 } | 557 } |
OLD | NEW |