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

Unified Diff: chrome/renderer/extensions/bindings_utils.cc

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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/extensions/bindings_utils.h ('k') | chrome/renderer/extensions/event_bindings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/bindings_utils.cc
===================================================================
--- chrome/renderer/extensions/bindings_utils.cc (revision 22886)
+++ chrome/renderer/extensions/bindings_utils.cc (working copy)
@@ -6,8 +6,10 @@
#include "base/string_util.h"
#include "chrome/renderer/render_view.h"
-#include "webkit/glue/webframe.h"
+#include "webkit/api/public/WebFrame.h"
+using WebKit::WebFrame;
+
namespace bindings_utils {
const char* kChromeHidden = "chromeHidden";
@@ -78,12 +80,12 @@
}
RenderView* GetRenderViewForCurrentContext() {
- WebFrame* webframe = WebFrame::RetrieveFrameForCurrentContext();
+ WebFrame* webframe = WebFrame::frameForCurrentContext();
DCHECK(webframe) << "RetrieveCurrentFrame called when not in a V8 context.";
if (!webframe)
return NULL;
- WebView* webview = webframe->GetView();
+ WebView* webview = webframe->view();
if (!webview)
return NULL; // can happen during closing
« no previous file with comments | « chrome/renderer/extensions/bindings_utils.h ('k') | chrome/renderer/extensions/event_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698