Index: chrome/browser/ui/webui/print_preview_handler.h |
diff --git a/chrome/browser/ui/webui/print_preview_handler.h b/chrome/browser/ui/webui/print_preview_handler.h |
index 244ab896ef28beb3c03f0a54447a9c5a4914672c..ffe6f92022b8ad6e723064b2f75b9106d8630de5 100644 |
--- a/chrome/browser/ui/webui/print_preview_handler.h |
+++ b/chrome/browser/ui/webui/print_preview_handler.h |
@@ -28,6 +28,7 @@ class StringValue; |
} |
namespace printing { |
+struct PageSizeMargins; |
class PrintBackend; |
} |
@@ -140,6 +141,10 @@ class PrintPreviewHandler : public WebUIMessageHandler, |
// to the current locale. |
void HandleGetNumberFormatAndMeasurementSystem(const base::ListValue* args); |
+ // Asks the browser for the last used margin settings. |
+ // |args| is unused. |
+ void HandleGetLastUsedMarginSettings(const base::ListValue* args); |
+ |
// Sends the printer capabilities to the Web UI. |settings_info| contains |
// printer capabilities information. |
void SendPrinterCapabilities(const base::DictionaryValue& settings_info); |
@@ -190,6 +195,7 @@ class PrintPreviewHandler : public WebUIMessageHandler, |
static std::string* last_used_printer_name_; |
static printing::ColorModels last_used_color_model_; |
static printing::MarginType last_used_margins_type_; |
+ static printing::PageSizeMargins* last_used_page_size_margins_; |
// A count of how many requests received to regenerate preview data. |
// Initialized to 0 then incremented and emitted to a histogram. |