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

Unified Diff: webkit/glue/temporary_glue.cc

Issue 200054: Hook up WebFrameClient, replacing many WebViewDelegate methods.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « webkit/glue/mimetype_unittest.cc ('k') | webkit/glue/webframe_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/temporary_glue.cc
===================================================================
--- webkit/glue/temporary_glue.cc (revision 25715)
+++ webkit/glue/temporary_glue.cc (working copy)
@@ -5,11 +5,13 @@
#include "config.h"
#include "webkit/api/src/TemporaryGlue.h"
+#include "Page.h"
#include <wtf/Assertions.h>
#undef LOG
+#include "webkit/api/public/WebFrameClient.h"
#include "webkit/glue/chrome_client_impl.h"
-#include "webkit/glue/webview_impl.h"
+#include "webkit/glue/webframe_impl.h"
using WebCore::Frame;
using WebCore::Page;
@@ -19,11 +21,11 @@
// static
WebMediaPlayer* TemporaryGlue::createWebMediaPlayer(
WebMediaPlayerClient* client, Frame* frame) {
- WebViewImpl* webview = WebFrameImpl::FromFrame(frame)->GetWebViewImpl();
- if (!webview || !webview->delegate())
+ WebFrameImpl* webframe = WebFrameImpl::FromFrame(frame);
+ if (!webframe->client())
return NULL;
- return webview->delegate()->CreateWebMediaPlayer(client);
+ return webframe->client()->createMediaPlayer(webframe, client);
}
// static
« no previous file with comments | « webkit/glue/mimetype_unittest.cc ('k') | webkit/glue/webframe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698