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

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

Issue 19045002: Use Blink support to watch CSS selectors directly instead of using a MutationObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unCamelCase in Chrome code. Created 7 years, 2 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/child/appcache/appcache_dispatcher.h" 10 #include "content/child/appcache/appcache_dispatcher.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 if (!render_view_->renderer_preferences_.report_frame_name_changes) 267 if (!render_view_->renderer_preferences_.report_frame_name_changes)
268 return; 268 return;
269 269
270 render_view_->Send( 270 render_view_->Send(
271 new ViewHostMsg_UpdateFrameName(render_view_->GetRoutingID(), 271 new ViewHostMsg_UpdateFrameName(render_view_->GetRoutingID(),
272 frame->identifier(), 272 frame->identifier(),
273 !frame->parent(), 273 !frame->parent(),
274 UTF16ToUTF8(name))); 274 UTF16ToUTF8(name)));
275 } 275 }
276 276
277 void RenderFrameImpl::didMatchCSS(
278 WebKit::WebFrame* frame,
279 const WebKit::WebVector<WebKit::WebString>& newly_matching_selectors,
280 const WebKit::WebVector<WebKit::WebString>& stopped_matching_selectors) {
281 render_view_->didMatchCSS(
282 frame, newly_matching_selectors, stopped_matching_selectors);
283 }
284
277 void RenderFrameImpl::loadURLExternally(WebKit::WebFrame* frame, 285 void RenderFrameImpl::loadURLExternally(WebKit::WebFrame* frame,
278 const WebKit::WebURLRequest& request, 286 const WebKit::WebURLRequest& request,
279 WebKit::WebNavigationPolicy policy) { 287 WebKit::WebNavigationPolicy policy) {
280 loadURLExternally(frame, request, policy, WebString()); 288 loadURLExternally(frame, request, policy, WebString());
281 } 289 }
282 290
283 void RenderFrameImpl::loadURLExternally( 291 void RenderFrameImpl::loadURLExternally(
284 WebKit::WebFrame* frame, 292 WebKit::WebFrame* frame,
285 const WebKit::WebURLRequest& request, 293 const WebKit::WebURLRequest& request,
286 WebKit::WebNavigationPolicy policy, 294 WebKit::WebNavigationPolicy policy,
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 877
870 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, 878 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame,
871 int arb_robustness_status_code) { 879 int arb_robustness_status_code) {
872 render_view_->Send(new ViewHostMsg_DidLose3DContext( 880 render_view_->Send(new ViewHostMsg_DidLose3DContext(
873 GURL(frame->top()->document().securityOrigin().toString()), 881 GURL(frame->top()->document().securityOrigin().toString()),
874 THREE_D_API_TYPE_WEBGL, 882 THREE_D_API_TYPE_WEBGL,
875 arb_robustness_status_code)); 883 arb_robustness_status_code));
876 } 884 }
877 885
878 } // namespace content 886 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698