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-07 04:31:35 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 04:31:35 +0000
commitb504899244b4264994d4daae2bee660706dba652 (patch)
treeeda190cb35dfff7f700a4c636730ff2487cb35d8 /chrome/browser/shell_dialogs.h
parente562de106eeab2667eeb6922ddf2d771a0efa55d (diff)
downloadchromium_src-b504899244b4264994d4daae2bee660706dba652.zip
chromium_src-b504899244b4264994d4daae2bee660706dba652.tar.gz
chromium_src-b504899244b4264994d4daae2bee660706dba652.tar.bz2
Adds import/export of bookmarks to bookmarks.html file.
BUG=1649 TEST=bring up bookmark manager and try out import/export from the tools menu. Note that import ALWAYS creates a new folder under the 'Other bookmarks folder' with the name of Imported (x). This is by design. Review URL: http://codereview.chromium.org/9471 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4968 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_dialogs.h')
-rw-r--r--chrome/browser/shell_dialogs.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/browser/shell_dialogs.h b/chrome/browser/shell_dialogs.h
index 7e57c7b..74cf66c 100644
--- a/chrome/browser/shell_dialogs.h
+++ b/chrome/browser/shell_dialogs.h
@@ -73,17 +73,30 @@ class SelectFileDialog
// the dialog. This only works for SELECT_SAVEAS_FILE and SELECT_OPEN_FILE.
// Can be an empty string to indicate Windows should choose the default to
// show.
+ // |filter| is a null (\0) separated list of alternating filter description
+ // and filters and terminated with two nulls.
// |owning_hwnd| is the window the dialog is modal to, or NULL for a modeless
// dialog.
// |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,
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.
@@ -137,4 +150,3 @@ class SelectFontDialog
};
#endif // #ifndef CHROME_BROWSER_SHELL_DIALOGS_H_
-