diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 04:08:59 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 04:08:59 +0000 |
commit | 60c42a8c7b44171abc3f8a58d0f69a923ead2bbd (patch) | |
tree | 692a0162b6843c3ce0c95448274fdc8e50667766 /chrome/renderer/extensions/event_bindings.cc | |
parent | e7634aa3ea26c84026b8eb0abfc0bdee3e753f6a (diff) | |
download | chromium_src-60c42a8c7b44171abc3f8a58d0f69a923ead2bbd.zip chromium_src-60c42a8c7b44171abc3f8a58d0f69a923ead2bbd.tar.gz chromium_src-60c42a8c7b44171abc3f8a58d0f69a923ead2bbd.tar.bz2 |
Eliminate WebView::GetDelegate and replace RenderViewSet with a map from
WebView to RenderView.
R=mpcomplete
BUG=10033
TEST=none
Review URL: http://codereview.chromium.org/265044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28515 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/event_bindings.cc')
-rw-r--r-- | chrome/renderer/extensions/event_bindings.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/extensions/event_bindings.cc b/chrome/renderer/extensions/event_bindings.cc index 446cacb..e23c060 100644 --- a/chrome/renderer/extensions/event_bindings.cc +++ b/chrome/renderer/extensions/event_bindings.cc @@ -253,8 +253,8 @@ void EventBindings::HandleContextCreated(WebFrame* frame, bool content_script) { } RenderView* render_view = NULL; - if (frame->view() && frame->view()->GetDelegate()) - render_view = static_cast<RenderView*>(frame->view()->GetDelegate()); + if (frame->view()) + render_view = RenderView::FromWebView(frame->view()); contexts.push_back(linked_ptr<ContextInfo>( new ContextInfo(persistent_context, extension_id, parent_context, @@ -298,7 +298,7 @@ void EventBindings::CallFunction(const std::string& function_name, continue; v8::Handle<v8::Value> retval = CallFunctionInContext((*it)->context, function_name, argc, argv); - // In debug, the js will validate the event parameters and return a + // In debug, the js will validate the event parameters and return a // string if a validation error has occured. // TODO(rafaelw): Consider only doing this check if function_name == // "Event.dispatchJSON". |