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

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

Issue 294923005: Add media size capability to PDF printer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/print_preview_handler.h
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.h b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
index 5ff8fb4dd55d968638b1848652e42b62fa151d73..51befdec5b5496631a8f2f7d37396a3daa93ad1d 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
@@ -175,6 +175,9 @@ class PrintPreviewHandler
// preview is displayed.
void HandleGetInitialSettings(const base::ListValue* args);
+ // Asks the browser for the PDF printer capabilities, such as media size.
+ void HandleGetPdfCapabilities(const base::ListValue* args);
+
// Reports histogram data for a print preview UI action. |args| should consist
// of two elements: the bucket name, and the bucket event.
void HandleReportUiEvent(const base::ListValue* args);
@@ -192,6 +195,9 @@ class PrintPreviewHandler
void SendInitialSettings(const std::string& default_printer);
+ // Sends PDF printer capabilities to the Web UI.
+ void SendPdfCapabilities(const base::DictionaryValue* capabilities);
+
// Send OAuth2 access token.
void SendAccessToken(const std::string& type,
const std::string& access_token);

Powered by Google App Engine
This is Rietveld 408576698