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

Unified Diff: printing/printing_context.h

Issue 6758014: PrintPreview: Added a helper function to get print job settings from dictionary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac build error. 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
« no previous file with comments | « no previous file | printing/printing_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context.h
diff --git a/printing/printing_context.h b/printing/printing_context.h
index c4e2094a15dd7a985d315140d17cddbb068d5412..0a30cea335ece139b7191c4f69cd6514829a9f1a 100644
--- a/printing/printing_context.h
+++ b/printing/printing_context.h
@@ -104,6 +104,13 @@ class PrintingContext {
// Reinitializes the settings for object reuse.
void ResetSettings();
+ // Extracts print job settings from |settings|. Out parameters can be NULL.
+ // Returns true if all non-NULL out parameters are successfully extracted
+ // from |settings| else returns false.
+ bool GetSettingsFromDict(const DictionaryValue& settings,
+ bool* landscape,
+ std::string* printerName);
+
// Does bookkeeping when an error occurs.
PrintingContext::Result OnError();
« no previous file with comments | « no previous file | printing/printing_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698