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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |