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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 10154004: re-use WebUIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix reload DCHECKs Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 2925 matching lines...) Expand 10 before | Expand all | Expand 10 after
2936 dom_automation_controller_->set_routing_id(routing_id()); 2936 dom_automation_controller_->set_routing_id(routing_id());
2937 dom_automation_controller_->BindToJavascript(frame, 2937 dom_automation_controller_->BindToJavascript(frame,
2938 "domAutomationController"); 2938 "domAutomationController");
2939 } 2939 }
2940 } 2940 }
2941 2941
2942 void RenderViewImpl::didCreateDocumentElement(WebFrame* frame) { 2942 void RenderViewImpl::didCreateDocumentElement(WebFrame* frame) {
2943 // Notify the browser about non-blank documents loading in the top frame. 2943 // Notify the browser about non-blank documents loading in the top frame.
2944 GURL url = frame->document().url(); 2944 GURL url = frame->document().url();
2945 if (url.is_valid() && url.spec() != chrome::kAboutBlankURL) { 2945 if (url.is_valid() && url.spec() != chrome::kAboutBlankURL) {
2946 Send(new ViewHostMsg_DocumentAvailableInFrame( 2946 if (frame == webview()->mainFrame())
2947 routing_id_, 2947 Send(new ViewHostMsg_DocumentAvailableInMainFrame(routing_id_));
2948 frame == webview()->mainFrame(),
2949 frame->document().url()));
2950 } 2948 }
2951 2949
2952 FOR_EACH_OBSERVER(RenderViewObserver, observers_, 2950 FOR_EACH_OBSERVER(RenderViewObserver, observers_,
2953 DidCreateDocumentElement(frame)); 2951 DidCreateDocumentElement(frame));
2954 } 2952 }
2955 2953
2956 void RenderViewImpl::didReceiveTitle(WebFrame* frame, const WebString& title, 2954 void RenderViewImpl::didReceiveTitle(WebFrame* frame, const WebString& title,
2957 WebTextDirection direction) { 2955 WebTextDirection direction) {
2958 UpdateTitle(frame, title, direction); 2956 UpdateTitle(frame, title, direction);
2959 2957
(...skipping 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after
5252 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5250 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5253 return !!RenderThreadImpl::current()->compositor_thread(); 5251 return !!RenderThreadImpl::current()->compositor_thread();
5254 } 5252 }
5255 5253
5256 void RenderViewImpl::OnJavaBridgeInit() { 5254 void RenderViewImpl::OnJavaBridgeInit() {
5257 DCHECK(!java_bridge_dispatcher_.get()); 5255 DCHECK(!java_bridge_dispatcher_.get());
5258 #if defined(ENABLE_JAVA_BRIDGE) 5256 #if defined(ENABLE_JAVA_BRIDGE)
5259 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 5257 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
5260 #endif 5258 #endif
5261 } 5259 }
OLDNEW
« content/common/view_messages.h ('K') | « content/public/browser/web_ui_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698