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

Unified Diff: chrome/browser/ui/webui/print_preview_handler.h

Issue 6759044: Prepopulating "Print To PDF" select file dialog with a suggested filename and path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 9 years, 8 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
Index: chrome/browser/ui/webui/print_preview_handler.h
diff --git a/chrome/browser/ui/webui/print_preview_handler.h b/chrome/browser/ui/webui/print_preview_handler.h
index 4756090390182b9c0d7d0e5c8ef1668154bcd3ec..fba51983f98135053936f643ab2d8850f3fa969f 100644
--- a/chrome/browser/ui/webui/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview_handler.h
@@ -12,6 +12,7 @@
#include "content/browser/webui/web_ui.h"
class EnumeratePrintersTaskProxy;
+class FilePath;
class FundamentalValue;
namespace printing {
@@ -33,7 +34,7 @@ class PrintPreviewHandler : public WebUIMessageHandler,
virtual void FileSelected(const FilePath& path, int index, void* params);
// Displays a modal dialog, prompting the user to select a file.
- void SelectFile();
+ void SelectFile(const FilePath& default_path);
private:
friend class EnumeratePrintersTaskProxy;
@@ -74,6 +75,8 @@ class PrintPreviewHandler : public WebUIMessageHandler,
// The underlying dialog object.
scoped_refptr<SelectFileDialog> select_file_dialog_;
+ static FilePath* last_saved_path_;
+
DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
};
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.cc ('k') | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698