Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: chrome/browser/extensions/extension_function_registry.cc

Issue 10411018: [FileBrowser] Added DefaultAction dialog to choose default action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698