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

Unified Diff: chrome/renderer/render_view.cc

Issue 251103: Move MediaPlayerAction to WebMediaPlayerAction. Switch to an enum and a... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/api/public/WebMediaPlayerAction.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 28235)
+++ chrome/renderer/render_view.cc (working copy)
@@ -123,6 +123,7 @@
using WebKit::WebFrame;
using WebKit::WebHistoryItem;
using WebKit::WebMediaPlayer;
+using WebKit::WebMediaPlayerAction;
using WebKit::WebMediaPlayerClient;
using WebKit::WebNavigationPolicy;
using WebKit::WebNavigationType;
@@ -3032,13 +3033,10 @@
#endif
}
-void RenderView::OnMediaPlayerActionAt(int x,
- int y,
- const MediaPlayerAction& action) {
- if (!webview())
- return;
-
- webview()->MediaPlayerActionAt(x, y, action);
+void RenderView::OnMediaPlayerActionAt(const gfx::Point& location,
+ const WebMediaPlayerAction& action) {
+ if (webview())
+ webview()->performMediaPlayerAction(action, location);
}
void RenderView::OnNotifyRendererViewType(ViewType::Type type) {
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/api/public/WebMediaPlayerAction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698