Chromium Code Reviews| Index: chrome/browser/ui/webui/print_preview/print_preview_ui.h |
| diff --git a/chrome/browser/ui/webui/print_preview/print_preview_ui.h b/chrome/browser/ui/webui/print_preview/print_preview_ui.h |
| index 09e6d41aa0fb7aecfddc7335e0dba49ef5dc3cb8..07f01d8c3536792d7f7a9e102930a0f964fd7ffb 100644 |
| --- a/chrome/browser/ui/webui/print_preview/print_preview_ui.h |
| +++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.h |
| @@ -15,6 +15,7 @@ |
| class PrintPreviewDataService; |
| class PrintPreviewHandler; |
| struct PrintHostMsg_DidGetPreviewPageCount_Params; |
| +struct PrintHostMsg_RequestPrintPreview_Params; |
| namespace base { |
| class RefCountedBytes; |
| @@ -60,13 +61,12 @@ class PrintPreviewUI : public ConstrainedWebDialogUI { |
| bool source_has_selection() { return source_has_selection_; } |
| - // Set |source_is_modifiable_| for |print_preview_dialog|'s PrintPreviewUI. |
| - static void SetSourceIsModifiable(content::WebContents* print_preview_dialog, |
| - bool source_is_modifiable); |
| + bool print_selection_only() { return print_selection_only_; } |
| - // Set |source_has_selection_| for |print_preview_dialog|'s PrintPreviewUI. |
| - static void SetSourceHasSelection(content::WebContents* print_preview_dialog, |
| - bool source_has_selection); |
| + // Set initial settings for PrintPreviewUI. |
| + static void SetInitialParams( |
| + content::WebContents* print_preview_dialog, |
| + const PrintHostMsg_RequestPrintPreview_Params& params); |
| // Determines whether to cancel a print preview request based on |
| // |preview_ui_id| and |request_id|. |
| @@ -178,6 +178,9 @@ class PrintPreviewUI : public ConstrainedWebDialogUI { |
| // Indicates whether the source document has selection. |
| bool source_has_selection_; |
| + // Indicates whether the only selection should be printed. |
|
Lei Zhang
2013/02/04 20:20:22
nit: "the only selection" -> "only the selection"
Vitaly Buka (NO REVIEWS)
2013/02/04 20:33:06
Done.
|
| + bool print_selection_only_; |
| + |
| // Store the initiator tab title, used for populating the print preview dialog |
| // title. |
| string16 initiator_tab_title_; |