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

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: Fixed comments. 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // ChromeOS-specific part of the API. 329 // ChromeOS-specific part of the API.
330 #if defined(OS_CHROMEOS) 330 #if defined(OS_CHROMEOS)
331 // Device Customization. 331 // Device Customization.
332 RegisterFunction<GetChromeosInfoFunction>(); 332 RegisterFunction<GetChromeosInfoFunction>();
333 333
334 // FileBrowserPrivate functions. 334 // FileBrowserPrivate functions.
335 // TODO(jamescook): Expose these on non-ChromeOS platforms so we can use 335 // TODO(jamescook): Expose these on non-ChromeOS platforms so we can use
336 // the extension-based file picker on Aura. crbug.com/97424 336 // the extension-based file picker on Aura. crbug.com/97424
337 RegisterFunction<CancelFileDialogFunction>(); 337 RegisterFunction<CancelFileDialogFunction>();
338 RegisterFunction<ExecuteTasksFileBrowserFunction>(); 338 RegisterFunction<ExecuteTasksFileBrowserFunction>();
339 RegisterFunction<SetDefaultTaskFileBrowserFunction>();
339 RegisterFunction<FileDialogStringsFunction>(); 340 RegisterFunction<FileDialogStringsFunction>();
340 RegisterFunction<GetFileTasksFileBrowserFunction>(); 341 RegisterFunction<GetFileTasksFileBrowserFunction>();
341 RegisterFunction<GetVolumeMetadataFunction>(); 342 RegisterFunction<GetVolumeMetadataFunction>();
342 RegisterFunction<RequestLocalFileSystemFunction>(); 343 RegisterFunction<RequestLocalFileSystemFunction>();
343 RegisterFunction<AddFileWatchBrowserFunction>(); 344 RegisterFunction<AddFileWatchBrowserFunction>();
344 RegisterFunction<RemoveFileWatchBrowserFunction>(); 345 RegisterFunction<RemoveFileWatchBrowserFunction>();
345 RegisterFunction<SelectFileFunction>(); 346 RegisterFunction<SelectFileFunction>();
346 RegisterFunction<SelectFilesFunction>(); 347 RegisterFunction<SelectFilesFunction>();
347 RegisterFunction<AddMountFunction>(); 348 RegisterFunction<AddMountFunction>();
348 RegisterFunction<RemoveMountFunction>(); 349 RegisterFunction<RemoveMountFunction>();
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } 527 }
527 528
528 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( 529 ExtensionFunction* ExtensionFunctionRegistry::NewFunction(
529 const std::string& name) { 530 const std::string& name) {
530 FactoryMap::iterator iter = factories_.find(name); 531 FactoryMap::iterator iter = factories_.find(name);
531 DCHECK(iter != factories_.end()); 532 DCHECK(iter != factories_.end());
532 ExtensionFunction* function = iter->second(); 533 ExtensionFunction* function = iter->second();
533 function->set_name(name); 534 function->set_name(name);
534 return function; 535 return function;
535 } 536 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698