| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ | 5 #ifndef UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ |
| 6 #define UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ | 6 #define UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 gfx::NativeWindow owning_window, | 171 gfx::NativeWindow owning_window, |
| 172 void* params); | 172 void* params); |
| 173 bool HasMultipleFileTypeChoices(); | 173 bool HasMultipleFileTypeChoices(); |
| 174 | 174 |
| 175 // Sets the global ShellDialogsDelegate. Defaults to NULL. | 175 // Sets the global ShellDialogsDelegate. Defaults to NULL. |
| 176 static void SetShellDialogsDelegate(ShellDialogsDelegate* delegate); | 176 static void SetShellDialogsDelegate(ShellDialogsDelegate* delegate); |
| 177 | 177 |
| 178 protected: | 178 protected: |
| 179 friend class base::RefCountedThreadSafe<SelectFileDialog>; | 179 friend class base::RefCountedThreadSafe<SelectFileDialog>; |
| 180 explicit SelectFileDialog(Listener* listener, SelectFilePolicy* policy); | 180 explicit SelectFileDialog(Listener* listener, SelectFilePolicy* policy); |
| 181 virtual ~SelectFileDialog(); | 181 ~SelectFileDialog() override; |
| 182 | 182 |
| 183 // Displays the actual file-selection dialog. | 183 // Displays the actual file-selection dialog. |
| 184 // This is overridden in the platform-specific descendants of FileSelectDialog | 184 // This is overridden in the platform-specific descendants of FileSelectDialog |
| 185 // and gets called from SelectFile after testing the | 185 // and gets called from SelectFile after testing the |
| 186 // AllowFileSelectionDialogs-Policy. | 186 // AllowFileSelectionDialogs-Policy. |
| 187 virtual void SelectFileImpl( | 187 virtual void SelectFileImpl( |
| 188 Type type, | 188 Type type, |
| 189 const base::string16& title, | 189 const base::string16& title, |
| 190 const base::FilePath& default_path, | 190 const base::FilePath& default_path, |
| 191 const FileTypeInfo* file_types, | 191 const FileTypeInfo* file_types, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 214 virtual bool HasMultipleFileTypeChoicesImpl() = 0; | 214 virtual bool HasMultipleFileTypeChoicesImpl() = 0; |
| 215 | 215 |
| 216 scoped_ptr<SelectFilePolicy> select_file_policy_; | 216 scoped_ptr<SelectFilePolicy> select_file_policy_; |
| 217 | 217 |
| 218 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); | 218 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 } // namespace ui | 221 } // namespace ui |
| 222 | 222 |
| 223 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ | 223 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ |
| OLD | NEW |