Index: content/renderer/render_view_impl.cc |
=================================================================== |
--- content/renderer/render_view_impl.cc (revision 114593) |
+++ content/renderer/render_view_impl.cc (working copy) |
@@ -105,6 +105,7 @@ |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" |
@@ -207,6 +208,7 @@ |
using WebKit::WebPageSerializer; |
using WebKit::WebPageSerializerClient; |
using WebKit::WebPlugin; |
+using WebKit::WebPluginAction; |
using WebKit::WebPluginContainer; |
using WebKit::WebPluginDocument; |
using WebKit::WebPluginParams; |
@@ -668,6 +670,7 @@ |
OnDisableScrollbarsForSmallWindows) |
IPC_MESSAGE_HANDLER(ViewMsg_SetRendererPrefs, OnSetRendererPrefs) |
IPC_MESSAGE_HANDLER(ViewMsg_MediaPlayerActionAt, OnMediaPlayerActionAt) |
+ IPC_MESSAGE_HANDLER(ViewMsg_PluginAction, OnPluginAction) |
IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive) |
#if defined(OS_MACOSX) |
IPC_MESSAGE_HANDLER(ViewMsg_SetWindowVisibility, OnSetWindowVisibility) |
@@ -3967,6 +3970,11 @@ |
webview()->performMediaPlayerAction(action, location); |
} |
+void RenderViewImpl::OnPluginAction(const WebPluginAction& action) { |
+ if (webview()) |
+ webview()->performPluginAction(action); |
+} |
+ |
void RenderViewImpl::OnGetAllSavableResourceLinksForCurrentPage( |
const GURL& page_url) { |
// Prepare list to storage all savable resource links. |