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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.h

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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 protected: 106 protected:
107 // AsyncExtensionFunction overrides. 107 // AsyncExtensionFunction overrides.
108 virtual bool RunImpl() OVERRIDE; 108 virtual bool RunImpl() OVERRIDE;
109 109
110 private: 110 private:
111 class Executor; 111 class Executor;
112 112
113 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask"); 113 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask");
114 }; 114 };
115 115
116 // Implements the chrome.fileBrowserPrivate.setDefaultTask method.
117 class SetDefaultTaskFileBrowserFunction : public SyncExtensionFunction {
118 public:
119 SetDefaultTaskFileBrowserFunction();
120 virtual ~SetDefaultTaskFileBrowserFunction();
121
122 protected:
123 // AsyncExtensionFunction overrides.
124 virtual bool RunImpl() OVERRIDE;
125
126 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.setDefaultTask");
127 };
128
116 // Parent class for the chromium extension APIs for the file dialog. 129 // Parent class for the chromium extension APIs for the file dialog.
117 class FileBrowserFunction 130 class FileBrowserFunction
118 : public AsyncExtensionFunction { 131 : public AsyncExtensionFunction {
119 public: 132 public:
120 FileBrowserFunction(); 133 FileBrowserFunction();
121 134
122 protected: 135 protected:
123 typedef std::vector<GURL> UrlList; 136 typedef std::vector<GURL> UrlList;
124 typedef std::vector<content::SelectedFileInfo> SelectedFileInfoList; 137 typedef std::vector<content::SelectedFileInfo> SelectedFileInfoList;
125 typedef base::Callback<void(const SelectedFileInfoList&)> 138 typedef base::Callback<void(const SelectedFileInfoList&)>
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 // Implements the chrome.fileBrowserPrivate.requestDirectoryRefresh method. 626 // Implements the chrome.fileBrowserPrivate.requestDirectoryRefresh method.
614 class RequestDirectoryRefreshFunction : public SyncExtensionFunction { 627 class RequestDirectoryRefreshFunction : public SyncExtensionFunction {
615 protected: 628 protected:
616 virtual bool RunImpl() OVERRIDE; 629 virtual bool RunImpl() OVERRIDE;
617 private: 630 private:
618 DECLARE_EXTENSION_FUNCTION_NAME( 631 DECLARE_EXTENSION_FUNCTION_NAME(
619 "fileBrowserPrivate.requestDirectoryRefresh"); 632 "fileBrowserPrivate.requestDirectoryRefresh");
620 }; 633 };
621 634
622 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 635 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698