| OLD | NEW |
| 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 UI_BASE_DIALOGS_SELECT_FILE_DIALOG_H_ | 5 #ifndef UI_BASE_DIALOGS_SELECT_FILE_DIALOG_H_ |
| 6 #define UI_BASE_DIALOGS_SELECT_FILE_DIALOG_H_ | 6 #define UI_BASE_DIALOGS_SELECT_FILE_DIALOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 const FilePath& default_path, | 151 const FilePath& default_path, |
| 152 const FileTypeInfo* file_types, | 152 const FileTypeInfo* file_types, |
| 153 int file_type_index, | 153 int file_type_index, |
| 154 const FilePath::StringType& default_extension, | 154 const FilePath::StringType& default_extension, |
| 155 gfx::NativeWindow owning_window, | 155 gfx::NativeWindow owning_window, |
| 156 void* params); | 156 void* params); |
| 157 bool HasMultipleFileTypeChoices(); | 157 bool HasMultipleFileTypeChoices(); |
| 158 | 158 |
| 159 protected: | 159 protected: |
| 160 friend class base::RefCountedThreadSafe<SelectFileDialog>; | 160 friend class base::RefCountedThreadSafe<SelectFileDialog>; |
| 161 explicit SelectFileDialog(Listener* listener, | 161 SelectFileDialog(Listener* listener, |
| 162 ui::SelectFilePolicy* policy); | 162 ui::SelectFilePolicy* policy); |
| 163 virtual ~SelectFileDialog(); | 163 virtual ~SelectFileDialog(); |
| 164 | 164 |
| 165 // Displays the actual file-selection dialog. | 165 // Displays the actual file-selection dialog. |
| 166 // This is overridden in the platform-specific descendants of FileSelectDialog | 166 // This is overridden in the platform-specific descendants of FileSelectDialog |
| 167 // and gets called from SelectFile after testing the | 167 // and gets called from SelectFile after testing the |
| 168 // AllowFileSelectionDialogs-Policy. | 168 // AllowFileSelectionDialogs-Policy. |
| 169 virtual void SelectFileImpl(Type type, | 169 virtual void SelectFileImpl(Type type, |
| 170 const string16& title, | 170 const string16& title, |
| 171 const FilePath& default_path, | 171 const FilePath& default_path, |
| 172 const FileTypeInfo* file_types, | 172 const FileTypeInfo* file_types, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 192 virtual bool HasMultipleFileTypeChoicesImpl() = 0; | 192 virtual bool HasMultipleFileTypeChoicesImpl() = 0; |
| 193 | 193 |
| 194 scoped_ptr<ui::SelectFilePolicy> select_file_policy_; | 194 scoped_ptr<ui::SelectFilePolicy> select_file_policy_; |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); | 196 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace ui | 199 } // namespace ui |
| 200 | 200 |
| 201 #endif // UI_BASE_DIALOGS_SELECT_FILE_DIALOG_H_ | 201 #endif // UI_BASE_DIALOGS_SELECT_FILE_DIALOG_H_ |
| OLD | NEW |