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

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

Powered by Google App Engine
This is Rietveld 408576698