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

Unified Diff: chrome/browser/resources/print_preview/data/print_ticket_store.js

Issue 10971003: Moves HTTP POST handling to JS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge with trunk. Created 8 years, 3 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/resources/print_preview/data/print_ticket_store.js
diff --git a/chrome/browser/resources/print_preview/data/print_ticket_store.js b/chrome/browser/resources/print_preview/data/print_ticket_store.js
index e1ec56ba44d84554705008b55f2b26e7aac26710..efb689e1ec9cd714c17bd06ab02e597214ff78ae 100644
--- a/chrome/browser/resources/print_preview/data/print_ticket_store.js
+++ b/chrome/browser/resources/print_preview/data/print_ticket_store.js
@@ -254,6 +254,11 @@ cr.define('print_preview', function() {
return this.documentInfo_.margins;
},
+ /** @return {string} Title of the document. */
+ getDocumentTitle: function() {
+ return this.documentInfo_.title;
+ },
+
/**
* Initializes the print ticket store. Dispatches an INITIALIZE event.
* @param {boolean} isDocumentModifiable Whether the document to print is

Powered by Google App Engine
This is Rietveld 408576698