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

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 7038028: Initial support for cloudprint in print preview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolved new conflictswq Created 9 years, 5 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/ui/webui/print_preview_handler.cc ('k') | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/print_web_view_helper.h
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
index 429829dd61ac0a17f027f9074181fcc0c7147467..48b7037999372703132400390e08ccf939139703 100644
--- a/chrome/renderer/print_web_view_helper.h
+++ b/chrome/renderer/print_web_view_helper.h
@@ -79,7 +79,6 @@ class PrintWebViewHelper : public RenderViewObserver,
protected:
// WebKit::WebViewClient override:
virtual void didStopLoading();
-
private:
FRIEND_TEST_ALL_PREFIXES(PrintWebViewHelperTest,
BlockScriptInitiatedPrinting);
@@ -149,6 +148,16 @@ class PrintWebViewHelper : public RenderViewObserver,
// copies, page range, etc.
bool UpdatePrintSettings(const base::DictionaryValue& job_settings);
+ // Update the current print settings for a cloud print printer with new
+ // |job_settings|. |job_settings| dictionary contains print job details
+ // such as printer name, number of copies, page range, etc.
+ bool UpdatePrintSettingsCloud(const base::DictionaryValue& job_settings);
+
+ // Update the current print settings for a local printer with new
+ // |job_settings|. |job_settings| dictionary contains print job details
+ // such as printer name, number of copies, page range, etc.
+ bool UpdatePrintSettingsLocal(const base::DictionaryValue& job_settings);
+
// Get final print settings from the user.
// Return false if the user cancels or on error.
bool GetPrintSettingsFromUser(WebKit::WebFrame* frame,
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.cc ('k') | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698