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

Side by Side Diff: chrome/browser/extensions/extension_file_browser_private_api.h

Issue 7941014: Use extension-based file picker from CrOS for Aura builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux_touchui Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 protected: 226 protected:
227 virtual ~AddMountFunction(); 227 virtual ~AddMountFunction();
228 228
229 virtual bool RunImpl() OVERRIDE; 229 virtual bool RunImpl() OVERRIDE;
230 230
231 // FileBrowserFunction overrides. 231 // FileBrowserFunction overrides.
232 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files, 232 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
233 void* context) OVERRIDE; 233 void* context) OVERRIDE;
234 234
235 private: 235 private:
236 #if defined(OS_CHROMEOS)
236 struct MountParamaters { 237 struct MountParamaters {
237 MountParamaters(const std::string& type, 238 MountParamaters(const std::string& type,
238 const chromeos::MountPathOptions& options) 239 const chromeos::MountPathOptions& options)
239 : mount_type(type), mount_options(options) {} 240 : mount_type(type), mount_options(options) {}
240 ~MountParamaters() {} 241 ~MountParamaters() {}
241 std::string mount_type; 242 std::string mount_type;
242 chromeos::MountPathOptions mount_options; 243 chromeos::MountPathOptions mount_options;
243 }; 244 };
245 #endif
244 246
245 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.addMount"); 247 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.addMount");
246 }; 248 };
247 249
248 // Unmounts selected device. Expects mount point path as an argument. 250 // Unmounts selected device. Expects mount point path as an argument.
249 class RemoveMountFunction 251 class RemoveMountFunction
250 : public FileBrowserFunction { 252 : public FileBrowserFunction {
251 public: 253 public:
252 RemoveMountFunction(); 254 RemoveMountFunction();
253 255
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 : public SyncExtensionFunction { 303 : public SyncExtensionFunction {
302 public: 304 public:
303 GetVolumeMetadataFunction(); 305 GetVolumeMetadataFunction();
304 306
305 protected: 307 protected:
306 virtual ~GetVolumeMetadataFunction(); 308 virtual ~GetVolumeMetadataFunction();
307 309
308 virtual bool RunImpl() OVERRIDE; 310 virtual bool RunImpl() OVERRIDE;
309 311
310 private: 312 private:
311 #ifdef OS_CHROMEOS 313 #if defined(OS_CHROMEOS)
312 const std::string& DeviceTypeToString(chromeos::DeviceType type); 314 const std::string& DeviceTypeToString(chromeos::DeviceType type);
313 #endif 315 #endif
314 316
315 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getVolumeMetadata"); 317 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getVolumeMetadata");
316 }; 318 };
317 319
318 // File Dialog Strings. 320 // File Dialog Strings.
319 class FileDialogStringsFunction : public SyncExtensionFunction { 321 class FileDialogStringsFunction : public SyncExtensionFunction {
320 public: 322 public:
321 FileDialogStringsFunction() {} 323 FileDialogStringsFunction() {}
322 324
323 protected: 325 protected:
324 virtual ~FileDialogStringsFunction() {} 326 virtual ~FileDialogStringsFunction() {}
325 327
326 // SyncExtensionFunction overrides. 328 // SyncExtensionFunction overrides.
327 virtual bool RunImpl() OVERRIDE; 329 virtual bool RunImpl() OVERRIDE;
328 330
329 private: 331 private:
330 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); 332 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings");
331 }; 333 };
332 334
333 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ 335 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/browser/extensions/extension_file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698