Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "webkit/glue/webview_delegate.h" | 13 #include "webkit/glue/webview_delegate.h" |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 class Size; | 16 class Size; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace IPC { | 19 namespace IPC { |
| 20 class Message; | 20 class Message; |
| 21 } | 21 } |
| 22 | 22 |
| 23 #if defined(OS_LINUX) | 23 #if defined(OS_LINUX) |
| 24 namespace printing { | 24 namespace printing { |
| 25 class PdfPsMetafile; | 25 class PdfPsMetafile; |
| 26 typedef PdfPsMetafile NativeMetafile; | 26 typedef PdfPsMetafile NativeMetafile; |
| 27 } | 27 } |
| 28 #elif defined(OS_MACOSX) | |
| 29 namespace printing { | |
| 30 class PdfMetafile; | |
| 31 typedef PdfMetafile NativeMetafile; | |
|
pink (ping after 24hrs)
2009/10/13 21:04:51
add the TODO for the bug about typedef'ing to a co
stuartmorgan
2009/10/13 22:07:43
This is actually cruft from an earlier rev that I
| |
| 32 } | |
| 28 #endif | 33 #endif |
| 29 | 34 |
| 30 class RenderView; | 35 class RenderView; |
| 31 class WebView; | 36 class WebView; |
| 32 struct ViewMsg_Print_Params; | 37 struct ViewMsg_Print_Params; |
| 33 struct ViewMsg_PrintPage_Params; | 38 struct ViewMsg_PrintPage_Params; |
| 34 struct ViewMsg_PrintPages_Params; | 39 struct ViewMsg_PrintPages_Params; |
| 35 | 40 |
| 36 | 41 |
| 37 // Class that calls the Begin and End print functions on the frame and changes | 42 // Class that calls the Begin and End print functions on the frame and changes |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 229 scoped_ptr<WebView> print_web_view_; | 234 scoped_ptr<WebView> print_web_view_; |
| 230 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_; | 235 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_; |
| 231 base::Time last_cancelled_script_print_; | 236 base::Time last_cancelled_script_print_; |
| 232 int user_cancelled_scripted_print_count_; | 237 int user_cancelled_scripted_print_count_; |
| 233 | 238 |
| 234 private: | 239 private: |
| 235 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 240 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
| 236 }; | 241 }; |
| 237 | 242 |
| 238 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 243 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| OLD | NEW |