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

Side by Side Diff: chrome/browser/ui/webui/print_preview_ui.h

Issue 8585017: PrintPreview: Honor the print media page size and margin values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: refactoring++ Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Notifies the Web UI to show the system dialog. 70 // Notifies the Web UI to show the system dialog.
71 void OnShowSystemDialog(); 71 void OnShowSystemDialog();
72 72
73 // Notifies the Web UI about the page count of the request preview. 73 // Notifies the Web UI about the page count of the request preview.
74 void OnDidGetPreviewPageCount( 74 void OnDidGetPreviewPageCount(
75 const PrintHostMsg_DidGetPreviewPageCount_Params& params); 75 const PrintHostMsg_DidGetPreviewPageCount_Params& params);
76 76
77 // Notifies the Web UI of the default page layout according to the currently 77 // Notifies the Web UI of the default page layout according to the currently
78 // selected printer and page size. 78 // selected printer and page size.
79 void OnDidGetDefaultPageLayout( 79 void OnDidGetDefaultPageLayout(
80 const printing::PageSizeMargins& page_layout); 80 const printing::PageSizeMargins& page_layout,
81 bool has_custom_page_size_style);
81 82
82 // Notifies the Web UI that the 0-based page |page_number| has been rendered. 83 // Notifies the Web UI that the 0-based page |page_number| has been rendered.
83 // |preview_request_id| indicates wich request resulted in this response. 84 // |preview_request_id| indicates wich request resulted in this response.
84 void OnDidPreviewPage(int page_number, int preview_request_id); 85 void OnDidPreviewPage(int page_number, int preview_request_id);
85 86
86 // Notifies the Web UI renderer that preview data is available. 87 // Notifies the Web UI renderer that preview data is available.
87 // |expected_pages_count| specifies the total number of pages. 88 // |expected_pages_count| specifies the total number of pages.
88 // |preview_request_id| indicates which request resulted in this response. 89 // |preview_request_id| indicates which request resulted in this response.
89 void OnPreviewDataIsAvailable(int expected_pages_count, 90 void OnPreviewDataIsAvailable(int expected_pages_count,
90 int preview_request_id); 91 int preview_request_id);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // title. 163 // title.
163 string16 initiator_tab_title_; 164 string16 initiator_tab_title_;
164 165
165 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. 166 // Keeps track of whether OnClosePrintPreviewTab() has been called or not.
166 bool tab_closed_; 167 bool tab_closed_;
167 168
168 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 169 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
169 }; 170 };
170 171
171 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 172 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698