diff options
author | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-21 00:23:26 +0000 |
---|---|---|
committer | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-21 00:23:26 +0000 |
commit | c85b0ba71b5a55647b01de9d345e46896979033d (patch) | |
tree | ae99657ca1440b7540da473e1bbe6156e43e9be3 /chrome/renderer/webplugin_delegate_pepper.cc | |
parent | 887ba3adc7b32b7df315ef292ae9395fd75653e5 (diff) | |
download | chromium_src-c85b0ba71b5a55647b01de9d345e46896979033d.zip chromium_src-c85b0ba71b5a55647b01de9d345e46896979033d.tar.gz chromium_src-c85b0ba71b5a55647b01de9d345e46896979033d.tar.bz2 |
Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi"
Manually reverting r69755, which broke the tree.
BUG=none
TEST=none
TBR=dmaclach@chromium.org
Review URL: http://codereview.chromium.org/5998002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.cc')
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.cc | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc index 68a14ad..1d2be20 100644 --- a/chrome/renderer/webplugin_delegate_pepper.cc +++ b/chrome/renderer/webplugin_delegate_pepper.cc @@ -55,26 +55,26 @@ #include "third_party/npapi/bindings/npapi_extensions_private.h" #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" +#include "webkit/glue/plugins/plugin_constants_win.h" +#include "webkit/glue/plugins/plugin_instance.h" +#include "webkit/glue/plugins/plugin_lib.h" +#include "webkit/glue/plugins/plugin_list.h" +#include "webkit/glue/plugins/plugin_host.h" +#include "webkit/glue/plugins/plugin_stream_url.h" #include "webkit/glue/webcursor.h" #include "webkit/glue/webkit_glue.h" -#include "webkit/plugins/npapi/plugin_constants_win.h" -#include "webkit/plugins/npapi/plugin_instance.h" -#include "webkit/plugins/npapi/plugin_lib.h" -#include "webkit/plugins/npapi/plugin_list.h" -#include "webkit/plugins/npapi/plugin_host.h" -#include "webkit/plugins/npapi/plugin_stream_url.h" #if defined(ENABLE_GPU) -#include "webkit/plugins/npapi/plugin_constants_win.h" +#include "webkit/glue/plugins/plugin_constants_win.h" #endif #if defined(ENABLE_GPU) using gpu::Buffer; #endif -using webkit::npapi::WebPlugin; -using webkit::npapi::WebPluginDelegate; -using webkit::npapi::WebPluginResourceClient; +using webkit_glue::WebPlugin; +using webkit_glue::WebPluginDelegate; +using webkit_glue::WebPluginResourceClient; using WebKit::WebCursorInfo; using WebKit::WebKeyboardEvent; using WebKit::WebInputEvent; @@ -114,8 +114,8 @@ WebPluginDelegatePepper* WebPluginDelegatePepper::Create( const FilePath& filename, const std::string& mime_type, const base::WeakPtr<RenderView>& render_view) { - scoped_refptr<webkit::npapi::PluginLib> plugin_lib( - webkit::npapi::PluginLib::CreatePluginLib(filename)); + scoped_refptr<NPAPI::PluginLib> plugin_lib( + NPAPI::PluginLib::CreatePluginLib(filename)); if (plugin_lib.get() == NULL) return NULL; @@ -123,7 +123,7 @@ WebPluginDelegatePepper* WebPluginDelegatePepper::Create( if (err != NPERR_NO_ERROR) return NULL; - scoped_refptr<webkit::npapi::PluginInstance> instance( + scoped_refptr<NPAPI::PluginInstance> instance( plugin_lib->CreateInstance(mime_type)); return new WebPluginDelegatePepper(render_view, instance.get()); @@ -544,7 +544,7 @@ string16 WebPluginDelegatePepper::GetSelectedText(bool html) const { return string16(); string16 rv = UTF8ToUTF16(static_cast<char*>(text)); - webkit::npapi::PluginHost::Singleton()->host_functions()->memfree(text); + NPAPI::PluginHost::Singleton()->host_functions()->memfree(text); return rv; } @@ -680,8 +680,8 @@ NPError WebPluginDelegatePepper::Device3DInitializeContext( // Create an instance of the GPU plugin that is responsible for 3D // rendering. - nested_delegate_ = new WebPluginDelegateProxy( - "application/vnd.google.chrome.gpu-plugin", render_view_); + nested_delegate_ = new WebPluginDelegateProxy(kGPUPluginMimeType, + render_view_); // TODO(apatrick): should the GPU plugin be attached to plugin_? if (nested_delegate_->Initialize(GURL(), @@ -1270,8 +1270,7 @@ bool WebPluginDelegatePepper::VectorPrintPage(int page_number, size_in_pixels.height(), true, false, true, true); #endif // defined(OS_WIN) - webkit::npapi::PluginHost::Singleton()->host_functions()->memfree( - pdf_output); + NPAPI::PluginHost::Singleton()->host_functions()->memfree(pdf_output); return ret; } @@ -1379,7 +1378,7 @@ void WebPluginDelegatePepper::PrintEnd() { WebPluginDelegatePepper::WebPluginDelegatePepper( const base::WeakPtr<RenderView>& render_view, - webkit::npapi::PluginInstance *instance) + NPAPI::PluginInstance *instance) : render_view_(render_view), plugin_(NULL), instance_(instance), @@ -1637,7 +1636,7 @@ void WebPluginDelegatePepper::SendNestedDelegateGeometryToBrowser( return; } - webkit::npapi::WebPluginGeometry geom; + webkit_glue::WebPluginGeometry geom; geom.window = nested_delegate_->GetPluginWindowHandle(); geom.window_rect = window_rect; geom.clip_rect = clip_rect; |