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

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

Issue 10104001: Code cleanup. Addressing TODO from the previous CL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 bool InitPrintSettingsAndPrepareFrame( 209 bool InitPrintSettingsAndPrepareFrame(
210 WebKit::WebFrame* frame, 210 WebKit::WebFrame* frame,
211 const WebKit::WebNode& node, 211 const WebKit::WebNode& node,
212 scoped_ptr<PrepareFrameAndViewForPrint>* prepare); 212 scoped_ptr<PrepareFrameAndViewForPrint>* prepare);
213 213
214 // Update the current print settings with new |job_settings|. |job_settings| 214 // Update the current print settings with new |job_settings|. |job_settings|
215 // dictionary contains print job details such as printer name, number of 215 // dictionary contains print job details such as printer name, number of
216 // copies, page range, etc. 216 // copies, page range, etc.
217 bool UpdatePrintSettings(WebKit::WebFrame* frame, 217 bool UpdatePrintSettings(WebKit::WebFrame* frame,
218 const WebKit::WebNode& node, 218 const WebKit::WebNode& node,
219 const base::DictionaryValue& passed_job_settings, 219 const base::DictionaryValue& passed_job_settings);
220 bool print_for_preview);
221 220
222 // Get final print settings from the user. 221 // Get final print settings from the user.
223 // Return false if the user cancels or on error. 222 // Return false if the user cancels or on error.
224 bool GetPrintSettingsFromUser(WebKit::WebFrame* frame, 223 bool GetPrintSettingsFromUser(WebKit::WebFrame* frame,
225 const WebKit::WebNode& node, 224 const WebKit::WebNode& node,
226 int expected_pages_count, 225 int expected_pages_count,
227 bool use_browser_overlays); 226 bool use_browser_overlays);
228 227
229 // Page Printing / Rendering ------------------------------------------------ 228 // Page Printing / Rendering ------------------------------------------------
230 229
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 enum PrintPreviewErrorBuckets error_; 474 enum PrintPreviewErrorBuckets error_;
476 475
477 State state_; 476 State state_;
478 }; 477 };
479 478
480 PrintPreviewContext print_preview_context_; 479 PrintPreviewContext print_preview_context_;
481 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); 480 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
482 }; 481 };
483 482
484 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 483 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698