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

Side by Side Diff: chrome/browser/extensions/api/file_system/file_system_api.h

Issue 10820034: Remove redirection header and add "ui::" before all SelectFileDialog usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reuploading for different try run. Created 8 years, 4 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
7 7
8 #include "chrome/browser/extensions/extension_function.h" 8 #include "chrome/browser/extensions/extension_function.h"
9 #include "chrome/browser/ui/select_file_dialog.h" 9 #include "ui/base/dialogs/select_file_dialog.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 class FileSystemGetDisplayPathFunction : public SyncExtensionFunction { 13 class FileSystemGetDisplayPathFunction : public SyncExtensionFunction {
14 public: 14 public:
15 DECLARE_EXTENSION_FUNCTION_NAME("fileSystem.getDisplayPath"); 15 DECLARE_EXTENSION_FUNCTION_NAME("fileSystem.getDisplayPath");
16 16
17 protected: 17 protected:
18 virtual ~FileSystemGetDisplayPathFunction() {} 18 virtual ~FileSystemGetDisplayPathFunction() {}
19 virtual bool RunImpl() OVERRIDE; 19 virtual bool RunImpl() OVERRIDE;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 static void StopSkippingPickerForTest(); 71 static void StopSkippingPickerForTest();
72 72
73 DECLARE_EXTENSION_FUNCTION_NAME("fileSystem.chooseFile"); 73 DECLARE_EXTENSION_FUNCTION_NAME("fileSystem.chooseFile");
74 74
75 protected: 75 protected:
76 class FilePicker; 76 class FilePicker;
77 77
78 virtual ~FileSystemChooseFileFunction() {} 78 virtual ~FileSystemChooseFileFunction() {}
79 virtual bool RunImpl() OVERRIDE; 79 virtual bool RunImpl() OVERRIDE;
80 bool ShowPicker(const FilePath& suggested_path, 80 bool ShowPicker(const FilePath& suggested_path,
81 SelectFileDialog::Type picker_type, 81 ui::SelectFileDialog::Type picker_type,
82 EntryType entry_type); 82 EntryType entry_type);
83 83
84 private: 84 private:
85 // FileSelected and FileSelectionCanceled are called by the file picker. 85 // FileSelected and FileSelectionCanceled are called by the file picker.
86 void FileSelected(const FilePath& path, EntryType entry_type); 86 void FileSelected(const FilePath& path, EntryType entry_type);
87 void FileSelectionCanceled(); 87 void FileSelectionCanceled();
88 }; 88 };
89 89
90 } // namespace extensions 90 } // namespace extensions
91 91
92 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 92 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698