| 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_PRINT_PREVIEW_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void OnShowSystemDialog(); | 74 void OnShowSystemDialog(); |
| 75 | 75 |
| 76 // Notifies the Web UI about the page count of the request preview. | 76 // Notifies the Web UI about the page count of the request preview. |
| 77 void OnDidGetPreviewPageCount( | 77 void OnDidGetPreviewPageCount( |
| 78 const PrintHostMsg_DidGetPreviewPageCount_Params& params); | 78 const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
| 79 | 79 |
| 80 // Notifies the Web UI of the default page layout according to the currently | 80 // Notifies the Web UI of the default page layout according to the currently |
| 81 // selected printer and page size. | 81 // selected printer and page size. |
| 82 void OnDidGetDefaultPageLayout( | 82 void OnDidGetDefaultPageLayout( |
| 83 const printing::PageSizeMargins& page_layout, | 83 const printing::PageSizeMargins& page_layout, |
| 84 bool has_custom_page_size_style); | 84 bool has_custom_page_size_style, bool header_footer_applies); |
| 85 | 85 |
| 86 // Notifies the Web UI that the 0-based page |page_number| has been rendered. | 86 // Notifies the Web UI that the 0-based page |page_number| has been rendered. |
| 87 // |preview_request_id| indicates wich request resulted in this response. | 87 // |preview_request_id| indicates wich request resulted in this response. |
| 88 void OnDidPreviewPage(int page_number, int preview_request_id); | 88 void OnDidPreviewPage(int page_number, int preview_request_id); |
| 89 | 89 |
| 90 // Notifies the Web UI renderer that preview data is available. | 90 // Notifies the Web UI renderer that preview data is available. |
| 91 // |expected_pages_count| specifies the total number of pages. | 91 // |expected_pages_count| specifies the total number of pages. |
| 92 // |preview_request_id| indicates which request resulted in this response. | 92 // |preview_request_id| indicates which request resulted in this response. |
| 93 void OnPreviewDataIsAvailable(int expected_pages_count, | 93 void OnPreviewDataIsAvailable(int expected_pages_count, |
| 94 int preview_request_id); | 94 int preview_request_id); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. | 169 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. |
| 170 bool tab_closed_; | 170 bool tab_closed_; |
| 171 | 171 |
| 172 // True if the user visited the page directly, false if it's a live UI. | 172 // True if the user visited the page directly, false if it's a live UI. |
| 173 bool is_dummy_; | 173 bool is_dummy_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 175 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 178 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
| OLD | NEW |