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

Unified Diff: webkit/glue/webframe_impl.cc

Issue 56122: Callbacks through ChromeClient->RenderView->RenderViewHost for ContentsDidCha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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/webframe_impl.h ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe_impl.cc
===================================================================
--- webkit/glue/webframe_impl.cc (revision 13128)
+++ webkit/glue/webframe_impl.cc (working copy)
@@ -105,6 +105,7 @@
#if defined(OS_WIN)
#include "RenderThemeChromiumWin.h"
#endif
+#include "RenderView.h"
#include "RenderWidget.h"
#include "ReplaceSelectionCommand.h"
#include "ResourceHandle.h"
@@ -538,6 +539,15 @@
return GURL();
}
+int WebFrameImpl::GetContentsPreferredWidth() const {
+ if ((frame_->document() != NULL) &&
+ (frame_->document()->renderView() != NULL)) {
+ return frame_->document()->renderView()->minPrefWidth();
+ } else {
+ return 0;
+ }
+}
+
scoped_refptr<FeedList> WebFrameImpl::GetFeedList() const {
scoped_refptr<FeedList> feedlist = new FeedList();
« no previous file with comments | « webkit/glue/webframe_impl.h ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698