OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Notifies the Web UI to show the system dialog. | 72 // Notifies the Web UI to show the system dialog. |
73 void OnShowSystemDialog(); | 73 void OnShowSystemDialog(); |
74 | 74 |
75 // Notifies the Web UI about the page count of the request preview. | 75 // Notifies the Web UI about the page count of the request preview. |
76 void OnDidGetPreviewPageCount( | 76 void OnDidGetPreviewPageCount( |
77 const PrintHostMsg_DidGetPreviewPageCount_Params& params); | 77 const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
78 | 78 |
79 // Notifies the Web UI of the default page layout according to the currently | 79 // Notifies the Web UI of the default page layout according to the currently |
80 // selected printer and page size. | 80 // selected printer and page size. |
81 void OnDidGetDefaultPageLayout( | 81 void OnDidGetDefaultPageLayout( |
82 const printing::PageSizeMargins& page_layout); | 82 const printing::PageSizeMargins& page_layout, |
| 83 bool has_custom_page_size_style); |
83 | 84 |
84 // Notifies the Web UI that the 0-based page |page_number| has been rendered. | 85 // Notifies the Web UI that the 0-based page |page_number| has been rendered. |
85 // |preview_request_id| indicates wich request resulted in this response. | 86 // |preview_request_id| indicates wich request resulted in this response. |
86 void OnDidPreviewPage(int page_number, int preview_request_id); | 87 void OnDidPreviewPage(int page_number, int preview_request_id); |
87 | 88 |
88 // Notifies the Web UI renderer that preview data is available. | 89 // Notifies the Web UI renderer that preview data is available. |
89 // |expected_pages_count| specifies the total number of pages. | 90 // |expected_pages_count| specifies the total number of pages. |
90 // |preview_request_id| indicates which request resulted in this response. | 91 // |preview_request_id| indicates which request resulted in this response. |
91 void OnPreviewDataIsAvailable(int expected_pages_count, | 92 void OnPreviewDataIsAvailable(int expected_pages_count, |
92 int preview_request_id); | 93 int preview_request_id); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // title. | 165 // title. |
165 string16 initiator_tab_title_; | 166 string16 initiator_tab_title_; |
166 | 167 |
167 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. | 168 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. |
168 bool tab_closed_; | 169 bool tab_closed_; |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 171 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
171 }; | 172 }; |
172 | 173 |
173 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ | 174 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
OLD | NEW |