diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-15 23:36:15 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-15 23:36:15 +0000 |
commit | d2ffd6ceb97c5590c01be7580bd2e38dbd7ac2c7 (patch) | |
tree | b56aac35897a683b276ec3c861f2e9d54a66f940 /webkit/plugins | |
parent | c9bd2e8e19e8c5891d68e99b4c610c04a62046a0 (diff) | |
download | chromium_src-d2ffd6ceb97c5590c01be7580bd2e38dbd7ac2c7.zip chromium_src-d2ffd6ceb97c5590c01be7580bd2e38dbd7ac2c7.tar.gz chromium_src-d2ffd6ceb97c5590c01be7580bd2e38dbd7ac2c7.tar.bz2 |
Delete the plugin printing code, which wasn't actually called.
Review URL: http://codereview.chromium.org/6874023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81835 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins')
-rw-r--r-- | webkit/plugins/npapi/webplugin_delegate.h | 3 | ||||
-rw-r--r-- | webkit/plugins/npapi/webplugin_delegate_impl.h | 1 | ||||
-rw-r--r-- | webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc | 4 | ||||
-rw-r--r-- | webkit/plugins/npapi/webplugin_delegate_impl_mac.mm | 4 | ||||
-rw-r--r-- | webkit/plugins/npapi/webplugin_delegate_impl_win.cc | 15 |
5 files changed, 0 insertions, 27 deletions
diff --git a/webkit/plugins/npapi/webplugin_delegate.h b/webkit/plugins/npapi/webplugin_delegate.h index 8412711..c3a4a04 100644 --- a/webkit/plugins/npapi/webplugin_delegate.h +++ b/webkit/plugins/npapi/webplugin_delegate.h @@ -80,9 +80,6 @@ class WebPluginDelegate : public WebPlugin2DDeviceDelegate, // windowless plugins. virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect) = 0; - // Tells the plugin to print itself. - virtual void Print(gfx::NativeDrawingContext hdc) = 0; - // Informs the plugin that it has gained or lost focus. This is only called in // windowless mode. virtual void SetFocus(bool focused) = 0; diff --git a/webkit/plugins/npapi/webplugin_delegate_impl.h b/webkit/plugins/npapi/webplugin_delegate_impl.h index fc955a7..039bb23 100644 --- a/webkit/plugins/npapi/webplugin_delegate_impl.h +++ b/webkit/plugins/npapi/webplugin_delegate_impl.h @@ -101,7 +101,6 @@ class WebPluginDelegateImpl : public WebPluginDelegate { virtual void UpdateGeometry(const gfx::Rect& window_rect, const gfx::Rect& clip_rect); virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect); - virtual void Print(gfx::NativeDrawingContext context); virtual void SetFocus(bool focused); virtual bool HandleInputEvent(const WebKit::WebInputEvent& event, WebKit::WebCursorInfo* cursor_info); diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc b/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc index 769bc39..dc34edb 100644 --- a/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc +++ b/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc @@ -116,10 +116,6 @@ void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, skia::EndPlatformPaint(canvas); } -void WebPluginDelegateImpl::Print(cairo_t* context) { - NOTIMPLEMENTED(); -} - void WebPluginDelegateImpl::InstallMissingPlugin() { NOTIMPLEMENTED(); } diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm b/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm index cfa5f4e..8d9351e 100644 --- a/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm +++ b/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm @@ -469,10 +469,6 @@ void WebPluginDelegateImpl::Paint(CGContextRef context, const gfx::Rect& rect) { #endif } -void WebPluginDelegateImpl::Print(CGContextRef context) { - NOTIMPLEMENTED(); -} - bool WebPluginDelegateImpl::PlatformHandleInputEvent( const WebInputEvent& event, WebCursorInfo* cursor_info) { DCHECK(cursor_info != NULL); diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc index ff9c468..c055773 100644 --- a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc +++ b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc @@ -471,21 +471,6 @@ void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, } } -void WebPluginDelegateImpl::Print(HDC hdc) { - // Disabling the call to NPP_Print as it causes a crash in - // flash in some cases. In any case this does not work as expected - // as the EMF meta file dc passed in needs to be created with the - // the plugin window dc as its sibling dc and the window rect - // in .01 mm units. -#if 0 - NPPrint npprint; - npprint.mode = NP_EMBED; - npprint.print.embedPrint.platformPrint = reinterpret_cast<void*>(hdc); - npprint.print.embedPrint.window = window_; - instance()->NPP_Print(&npprint); -#endif -} - void WebPluginDelegateImpl::InstallMissingPlugin() { NPEvent evt; evt.event = default_plugin::kInstallMissingPluginMessage; |