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

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

Issue 8173016: Patch up excessive margins until we can get the real fix plumbed through. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix headers and footers Created 9 years, 2 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) 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_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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Used only for native printing workflow. 182 // Used only for native printing workflow.
183 bool InitPrintSettingsAndPrepareFrame( 183 bool InitPrintSettingsAndPrepareFrame(
184 WebKit::WebFrame* frame, 184 WebKit::WebFrame* frame,
185 const WebKit::WebNode& node, 185 const WebKit::WebNode& node,
186 scoped_ptr<PrepareFrameAndViewForPrint>* prepare); 186 scoped_ptr<PrepareFrameAndViewForPrint>* prepare);
187 187
188 // Update the current print settings with new |job_settings|. |job_settings| 188 // Update the current print settings with new |job_settings|. |job_settings|
189 // dictionary contains print job details such as printer name, number of 189 // dictionary contains print job details such as printer name, number of
190 // copies, page range, etc. 190 // copies, page range, etc.
191 bool UpdatePrintSettings(const base::DictionaryValue& job_settings, 191 bool UpdatePrintSettings(const base::DictionaryValue& job_settings,
192 bool is_preview); 192 bool generating_preview);
193 193
194 // Get final print settings from the user. 194 // Get final print settings from the user.
195 // Return false if the user cancels or on error. 195 // Return false if the user cancels or on error.
196 bool GetPrintSettingsFromUser(WebKit::WebFrame* frame, 196 bool GetPrintSettingsFromUser(WebKit::WebFrame* frame,
197 int expected_pages_count, 197 int expected_pages_count,
198 bool use_browser_overlays); 198 bool use_browser_overlays);
199 199
200 // Page Printing / Rendering ------------------------------------------------ 200 // Page Printing / Rendering ------------------------------------------------
201 201
202 // Prints all the pages listed in |params|. 202 // Prints all the pages listed in |params|.
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 436
437 State state_; 437 State state_;
438 }; 438 };
439 439
440 PrintPreviewContext print_preview_context_; 440 PrintPreviewContext print_preview_context_;
441 441
442 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); 442 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
443 }; 443 };
444 444
445 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 445 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper.cc » ('j') | printing/print_job_constants.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698