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

Side by Side Diff: ui/base/dialogs/select_file_dialog.h

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 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
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
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_
OLDNEW
« no previous file with comments | « ui/base/dialogs/gtk/select_file_dialog_impl_gtk.cc ('k') | ui/base/dialogs/select_file_dialog_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698