Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4511)

Unified Diff: chrome/renderer/render_view.cc

Issue 159471: Merge 21466 - Allow the browser to send actions back to the render for media ... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 21785)
+++ chrome/renderer/render_view.cc (working copy)
@@ -59,6 +59,7 @@
#include "webkit/api/public/WebDragData.h"
#include "webkit/api/public/WebForm.h"
#include "webkit/api/public/WebHistoryItem.h"
+#include "webkit/api/public/WebNode.h"
#include "webkit/api/public/WebPoint.h"
#include "webkit/api/public/WebRect.h"
#include "webkit/api/public/WebScriptSource.h"
@@ -423,6 +424,7 @@
IPC_MESSAGE_HANDLER(ViewMsg_EnableIntrinsicWidthChangedMode,
OnEnableIntrinsicWidthChangedMode)
IPC_MESSAGE_HANDLER(ViewMsg_SetRendererPrefs, OnSetRendererPrefs)
+ IPC_MESSAGE_HANDLER(ViewMsg_MediaPlayerActionAt, OnMediaPlayerActionAt)
// Have the super handle all other messages.
IPC_MESSAGE_UNHANDLED(RenderWidget::OnMessageReceived(message))
@@ -1976,7 +1978,7 @@
}
void RenderView::ShowContextMenu(WebView* webview,
- ContextNode node,
+ ContextNodeType node_type,
int x,
int y,
const GURL& link_url,
@@ -1990,7 +1992,7 @@
const std::string& security_info,
const std::string& frame_charset) {
ContextMenuParams params;
- params.node = node;
+ params.node_type = node_type;
params.x = x;
params.y = y;
params.src_url = src_url;
@@ -2631,6 +2633,15 @@
renderer_preferences_ = renderer_prefs;
}
+void RenderView::OnMediaPlayerActionAt(int x,
+ int y,
+ const MediaPlayerAction& action) {
+ if (!webview())
+ return;
+
+ webview()->MediaPlayerActionAt(x, y, action);
+}
+
void RenderView::OnUpdateBackForwardListCount(int back_list_count,
int forward_list_count) {
history_back_list_count_ = back_list_count;
Property changes on: chrome\renderer\render_view.cc
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/chrome/renderer/render_view.cc:r21466
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698