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

Unified Diff: chrome/browser/printing/print_dialog_cloud.h

Issue 6038008: Modify chrome to accept a pdf file on the command line and upload it to Cloud... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/printing/print_dialog_cloud.h
===================================================================
--- chrome/browser/printing/print_dialog_cloud.h (revision 72336)
+++ chrome/browser/printing/print_dialog_cloud.h (working copy)
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
+#include "base/string16.h"
class Browser;
class FilePath;
@@ -17,20 +18,28 @@
class PrintDialogCloud {
public:
- // Called on the IO thread.
- static void CreatePrintDialogForPdf(const FilePath& path_to_pdf);
+ // Called on the IO or UI thread.
+ static void CreatePrintDialogForPdf(const FilePath& path_to_pdf,
+ const string16& print_job_title,
+ bool modal);
private:
friend class PrintDialogCloudTest;
- explicit PrintDialogCloud(const FilePath& path_to_pdf);
+ explicit PrintDialogCloud(const FilePath& path_to_pdf,
+ const string16& print_job_title,
+ bool modal);
~PrintDialogCloud();
// Called as a task from the UI thread, creates an object instance
// to run the HTML/JS based print dialog for printing through the cloud.
- static void CreateDialogImpl(const FilePath& path_to_pdf);
+ static void CreateDialogImpl(const FilePath& path_to_pdf,
+ const string16& print_job_title,
+ bool modal);
Browser* browser_;
+ string16 print_job_title_;
+ bool modal_;
DISALLOW_COPY_AND_ASSIGN(PrintDialogCloud);
};

Powered by Google App Engine
This is Rietveld 408576698