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

Unified Diff: printing/printing_context_mac.h

Issue 6775013: PrintPreview: While printing the preview data, set the initiator tab title as print job name. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated the CL. Created 9 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
Index: printing/printing_context_mac.h
diff --git a/printing/printing_context_mac.h b/printing/printing_context_mac.h
index 6c7097c4a75d4b2cdc5c5aa4258b4b7b09639c90..eb99d2fadfed849386b463abd430736198e9b9c7 100644
--- a/printing/printing_context_mac.h
+++ b/printing/printing_context_mac.h
@@ -12,8 +12,10 @@
#ifdef __OBJC__
@class NSPrintInfo;
+@class NSString;
#else
class NSPrintInfo;
+class NSString;
#endif // __OBJC__
namespace printing {
@@ -51,6 +53,13 @@ class PrintingContextMac : public PrintingContext {
// Returns true if the printer was set else returns false.
bool SetPrinter(const std::string& printer_name);
+ // Sets print job name.
+ // Returns true if print job name is set else returns false.
stuartmorgan 2011/03/30 22:59:17 "else returns false" is redundant.
+ bool SetPrintJobName(const string16& job_name);
+
+ // Updates |printInfo| with the given |job_name|.
+ void UpdatePrintInfoWithJobName(NSPrintInfo* printInfo, NSString* job_name);
+
// The native print info object.
scoped_nsobject<NSPrintInfo> print_info_;

Powered by Google App Engine
This is Rietveld 408576698