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

Side by Side Diff: ui/shell_dialogs/select_file_dialog.h

Issue 667923002: Standardize usage of virtual/override/final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « ui/native_theme/native_theme_mac.h ('k') | ui/shell_dialogs/select_file_dialog_mac.mm » ('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) 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
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
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_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_mac.h ('k') | ui/shell_dialogs/select_file_dialog_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698