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

Unified Diff: chrome/browser/shell_dialogs.h

Issue 10621: Adds the ability for save dialogs to take a default extension.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/shell_dialogs.h
===================================================================
--- chrome/browser/shell_dialogs.h (revision 5130)
+++ chrome/browser/shell_dialogs.h (working copy)
@@ -77,26 +77,20 @@
// and filters and terminated with two nulls.
// |owning_hwnd| is the window the dialog is modal to, or NULL for a modeless
// dialog.
+ // |default_extension| is the default extension to add to the file if the
+ // user doesn't type one. This should NOT include the '.'. If you specify
+ // this you must also specify a filter.
// |params| is data from the calling context which will be passed through to
// the listener. Can be NULL.
// NOTE: only one instance of any shell dialog can be shown per owning_hwnd
// at a time (for obvious reasons).
- // TODO: convert all callers to this and rip out the old.
virtual void SelectFile(Type type,
const std::wstring& title,
const std::wstring& default_path,
const std::wstring& filter,
+ const std::wstring& default_extension,
HWND owning_hwnd,
void* params) = 0;
-
- void SelectFile(Type type,
- const std::wstring& title,
- const std::wstring& default_path,
- HWND owning_hwnd,
- void* params) {
- SelectFile(type, title, default_path, std::wstring(),
- owning_hwnd, params);
- }
};
// Shows a dialog box for selecting a font.

Powered by Google App Engine
This is Rietveld 408576698