Chromium Code Reviews| Index: webkit/glue/plugins/webplugin_print_delegate.h |
| diff --git a/webkit/glue/plugins/webplugin_print_delegate.h b/webkit/glue/plugins/webplugin_print_delegate.h |
| index 040e58f583488e6e52853ff5a959bb998aa43537..24298e88c6999ae4bb13c035c429d6e1981007fc 100644 |
| --- a/webkit/glue/plugins/webplugin_print_delegate.h |
| +++ b/webkit/glue/plugins/webplugin_print_delegate.h |
| @@ -7,6 +7,7 @@ |
| #include "base/basictypes.h" |
| #include "third_party/npapi/bindings/npapi_extensions.h" |
| +#include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" |
|
Lei Zhang
2010/12/15 00:51:35
You can't forward declare WebKit::WebCanvas?
Elliot Glaysher
2010/12/15 17:34:41
Nope. It's a bunch of ifdefed typedefs.
|
| namespace gfx { |
| class Rect; |
| @@ -22,21 +23,14 @@ class WebPluginPrintDelegate { |
| // If a plugin supports print extensions, then it gets to participate fully |
| // in the browser's print workflow by specifying the number of pages to be |
| // printed and providing a print output for specified pages. |
| - virtual bool PrintSupportsPrintExtension() { |
| - return false; |
| - } |
| + virtual bool PrintSupportsPrintExtension(); |
| // Note: printable_area is in points (a point is 1/72 of an inch). |
| - virtual int PrintBegin(const gfx::Rect& printable_area, int printer_dpi) { |
| - return 0; |
| - } |
| + virtual int PrintBegin(const gfx::Rect& printable_area, int printer_dpi); |
| - virtual bool PrintPage(int page_number, WebKit::WebCanvas* canvas) { |
| - return false; |
| - } |
| + virtual bool PrintPage(int page_number, WebKit::WebCanvas* canvas); |
| - virtual void PrintEnd() { |
| - } |
| + virtual void PrintEnd(); |
| protected: |
| WebPluginPrintDelegate() {} |