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

Unified Diff: webkit/glue/chrome_client_impl.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/bookmarklet_unittest.cc ('k') | webkit/glue/chromium_bridge_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/chrome_client_impl.cc
===================================================================
--- webkit/glue/chrome_client_impl.cc (revision 25715)
+++ webkit/glue/chrome_client_impl.cc (working copy)
@@ -30,6 +30,7 @@
#include "googleurl/src/gurl.h"
#include "webkit/api/public/WebCursorInfo.h"
+#include "webkit/api/public/WebFrameClient.h"
#include "webkit/api/public/WebInputEvent.h"
#include "webkit/api/public/WebKit.h"
#include "webkit/api/public/WebPopupMenuInfo.h"
@@ -487,10 +488,10 @@
void ChromeClientImpl::contentsSizeChanged(WebCore::Frame* frame, const
WebCore::IntSize& size) const {
- WebViewDelegate* delegate = webview_->delegate();
-
- if (delegate) {
- delegate->DidContentsSizeChange(webview_, size.width(), size.height());
+ WebFrameImpl* webframe = WebFrameImpl::FromFrame(frame);
+ if (webframe->client()) {
+ webframe->client()->didChangeContentsSize(
+ webframe, webkit_glue::IntSizeToWebSize(size));
}
}
« no previous file with comments | « webkit/glue/bookmarklet_unittest.cc ('k') | webkit/glue/chromium_bridge_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698