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

Side by Side Diff: chrome/renderer/print_web_view_helper.h

Issue 9699040: PrintPreview: Hide/Show the header footer option based on print frame margins. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 9 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 5 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // Returns true if the current destination printer is PRINT_TO_PDF. 157 // Returns true if the current destination printer is PRINT_TO_PDF.
158 bool IsPrintToPdfRequested(const base::DictionaryValue& settings); 158 bool IsPrintToPdfRequested(const base::DictionaryValue& settings);
159 159
160 // Initiate print preview. 160 // Initiate print preview.
161 void OnInitiatePrintPreview(); 161 void OnInitiatePrintPreview();
162 162
163 // Start the process of generating a print preview using |settings|. 163 // Start the process of generating a print preview using |settings|.
164 void OnPrintPreview(const base::DictionaryValue& settings); 164 void OnPrintPreview(const base::DictionaryValue& settings);
165 165
166 // Initialize the print preview document. 166 // Initialize the print preview document.
167 bool CreatePreviewDocument(); 167 bool CreatePreviewDocument(int margins_type);
168 168
169 // Renders a print preview page. |page_number| is 0-based. 169 // Renders a print preview page. |page_number| is 0-based.
170 // Returns true if print preview should continue, false on failure. 170 // Returns true if print preview should continue, false on failure.
171 bool RenderPreviewPage(int page_number); 171 bool RenderPreviewPage(int page_number);
172 172
173 // Finalize the print ready preview document. 173 // Finalize the print ready preview document.
174 bool FinalizePrintReadyDocument(); 174 bool FinalizePrintReadyDocument();
175 175
176 // Print / preview the node under the context menu. 176 // Print / preview the node under the context menu.
177 void OnPrintNodeUnderContextMenu(); 177 void OnPrintNodeUnderContextMenu();
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 State state_; 462 State state_;
463 }; 463 };
464 464
465 PrintPreviewContext print_preview_context_; 465 PrintPreviewContext print_preview_context_;
466 466
467 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); 467 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
468 }; 468 };
469 469
470 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 470 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698