OLD | NEW |
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_PRINTING_PRINT_WEB_VIEW_HELPER_H_ | 5 #ifndef CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ |
6 #define CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ | 6 #define CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 224 |
225 void OnFramePreparedForPrintPages(); | 225 void OnFramePreparedForPrintPages(); |
226 void PrintPages(); | 226 void PrintPages(); |
227 bool PrintPagesNative(WebKit::WebFrame* frame, | 227 bool PrintPagesNative(WebKit::WebFrame* frame, |
228 const WebKit::WebNode& node, | 228 const WebKit::WebNode& node, |
229 int page_count, | 229 int page_count, |
230 const gfx::Size& canvas_size); | 230 const gfx::Size& canvas_size); |
231 void FinishFramePrinting(); | 231 void FinishFramePrinting(); |
232 | 232 |
233 // Prints the page listed in |params|. | 233 // Prints the page listed in |params|. |
234 #if defined(OS_LINUX) | 234 #if defined(OS_LINUX) || defined(OS_ANDROID) |
235 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, | 235 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, |
236 const gfx::Size& canvas_size, | 236 const gfx::Size& canvas_size, |
237 WebKit::WebFrame* frame, | 237 WebKit::WebFrame* frame, |
238 Metafile* metafile); | 238 Metafile* metafile); |
239 #else | 239 #else |
240 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, | 240 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, |
241 const gfx::Size& canvas_size, | 241 const gfx::Size& canvas_size, |
242 WebKit::WebFrame* frame); | 242 WebKit::WebFrame* frame); |
243 #endif | 243 #endif |
244 | 244 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 }; | 477 }; |
478 | 478 |
479 bool print_node_in_progress_; | 479 bool print_node_in_progress_; |
480 PrintPreviewContext print_preview_context_; | 480 PrintPreviewContext print_preview_context_; |
481 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 481 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
482 }; | 482 }; |
483 | 483 |
484 } // namespace printing | 484 } // namespace printing |
485 | 485 |
486 #endif // CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ | 486 #endif // CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ |
OLD | NEW |