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 13 matching lines...) Expand all Loading... |
24 struct PrintMsg_Print_Params; | 24 struct PrintMsg_Print_Params; |
25 struct PrintMsg_PrintPage_Params; | 25 struct PrintMsg_PrintPage_Params; |
26 struct PrintMsg_PrintPages_Params; | 26 struct PrintMsg_PrintPages_Params; |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 class DictionaryValue; | 29 class DictionaryValue; |
30 } | 30 } |
31 namespace printing { | 31 namespace printing { |
32 struct PageSizeMargins; | 32 struct PageSizeMargins; |
33 } | 33 } |
34 #if defined(USE_SKIA) | |
35 namespace skia { | |
36 class VectorCanvas; | |
37 } | |
38 #endif | |
39 | 34 |
40 // Class that calls the Begin and End print functions on the frame and changes | 35 // Class that calls the Begin and End print functions on the frame and changes |
41 // the size of the view temporarily to support full page printing.. | 36 // the size of the view temporarily to support full page printing.. |
42 // Do not serve any events in the time between construction and destruction of | 37 // Do not serve any events in the time between construction and destruction of |
43 // this class because it will cause flicker. | 38 // this class because it will cause flicker. |
44 class PrepareFrameAndViewForPrint { | 39 class PrepareFrameAndViewForPrint { |
45 public: | 40 public: |
46 // Prints |frame|. If |node| is not NULL, then only that node will be | 41 // Prints |frame|. If |node| is not NULL, then only that node will be |
47 // printed. | 42 // printed. |
48 PrepareFrameAndViewForPrint(const PrintMsg_Print_Params& print_params, | 43 PrepareFrameAndViewForPrint(const PrintMsg_Print_Params& print_params, |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 424 |
430 State state_; | 425 State state_; |
431 }; | 426 }; |
432 | 427 |
433 PrintPreviewContext print_preview_context_; | 428 PrintPreviewContext print_preview_context_; |
434 | 429 |
435 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 430 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
436 }; | 431 }; |
437 | 432 |
438 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 433 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
OLD | NEW |