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

Unified Diff: chrome/browser/shell_dialogs.h

Issue 45048: Remove Windows "Save As" dialogs from Save Page code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/dialogs_gtk.cc ('k') | chrome/browser/tab_contents/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_dialogs.h
===================================================================
--- chrome/browser/shell_dialogs.h (revision 12784)
+++ chrome/browser/shell_dialogs.h (working copy)
@@ -48,9 +48,11 @@
class Listener {
public:
// Notifies the Listener that a file/folder selection has been made. The
- // file/folder path is in |selected_path|. |params| is contextual passed to
- // SelectFile.
- virtual void FileSelected(const std::wstring& path, void* params) = 0;
+ // file/folder path is in |path|. |params| is contextual passed to
+ // SelectFile. |index| specifies the index of the filter passed to the
+ // the initial call to SelectFile.
+ virtual void FileSelected(const std::wstring& path,
+ int index, void* params) = 0;
// Notifies the Listener that many files have been selected. The
// files are in |files|. |params| is contextual passed to SelectFile.
@@ -80,6 +82,9 @@
// show.
// |filter| is a null (\0) separated list of alternating filter description
// and filters and terminated with two nulls.
+ // |filter_index| is the 1-based index into the filter list in |filter|.
+ // Specify 0 if you don't need filters, or if you only need the default
+ // (first filter) behavior.
// |owning_window| 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
@@ -93,6 +98,7 @@
const std::wstring& title,
const std::wstring& default_path,
const std::wstring& filter,
+ int filter_index,
const std::wstring& default_extension,
gfx::NativeWindow owning_window,
void* params) = 0;
« no previous file with comments | « chrome/browser/gtk/dialogs_gtk.cc ('k') | chrome/browser/tab_contents/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698