summaryrefslogtreecommitdiffstats
path: root/chrome/browser/shell_dialogs.h
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-12 22:10:20 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-12 22:10:20 +0000
commit39a248b002d0f41ad816754bb2833eea0aff9c61 (patch)
tree2b3c12b82e8ba1779f3b5cf0b6e1783bb357c8bb /chrome/browser/shell_dialogs.h
parentfe60fbbb329988a1b4eab5fcc78faaad719cda1b (diff)
downloadchromium_src-39a248b002d0f41ad816754bb2833eea0aff9c61.zip
chromium_src-39a248b002d0f41ad816754bb2833eea0aff9c61.tar.gz
chromium_src-39a248b002d0f41ad816754bb2833eea0aff9c61.tar.bz2
Adds the ability for save dialogs to take a default extension.
BUG=4287 TEST=see bug Review URL: http://codereview.chromium.org/10621 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_dialogs.h')
-rw-r--r--chrome/browser/shell_dialogs.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/chrome/browser/shell_dialogs.h b/chrome/browser/shell_dialogs.h
index 74cf66c..183081dc 100644
--- a/chrome/browser/shell_dialogs.h
+++ b/chrome/browser/shell_dialogs.h
@@ -77,26 +77,20 @@ class SelectFileDialog
// 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.