Index: chrome/renderer/webplugin_delegate_pepper.cc |
=================================================================== |
--- chrome/renderer/webplugin_delegate_pepper.cc (revision 69765) |
+++ chrome/renderer/webplugin_delegate_pepper.cc (working copy) |
@@ -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 @@ |
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 @@ |
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 @@ |
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 @@ |
// 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 @@ |
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 @@ |
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 @@ |
return; |
} |
- webkit::npapi::WebPluginGeometry geom; |
+ webkit_glue::WebPluginGeometry geom; |
geom.window = nested_delegate_->GetPluginWindowHandle(); |
geom.window_rect = window_rect; |
geom.clip_rect = clip_rect; |