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

Unified Diff: chrome/renderer/extensions/extension_helper.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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/extension_helper.cc
diff --git a/chrome/renderer/extensions/extension_helper.cc b/chrome/renderer/extensions/extension_helper.cc
index 041578c42902eb8a9547c5ca1d768640e23ba4fa..ea24317dcc8a98b4897991ad0a16879f40a43863 100644
--- a/chrome/renderer/extensions/extension_helper.cc
+++ b/chrome/renderer/extensions/extension_helper.cc
@@ -230,6 +230,14 @@ void ExtensionHelper::FrameDetached(WebFrame* frame) {
g_schedulers.Get().erase(i);
}
+void ExtensionHelper::DidMatchCSS(
+ WebKit::WebFrame* frame,
+ const WebKit::WebVector<WebKit::WebString>& newly_matching_selectors,
+ const WebKit::WebVector<WebKit::WebString>& stopped_matching_selectors) {
+ dispatcher_->DidMatchCSS(
+ frame, newly_matching_selectors, stopped_matching_selectors);
+}
+
void ExtensionHelper::DidCreateDataSource(WebFrame* frame, WebDataSource* ds) {
// Check first if we created a scheduler for the frame, since this function
// gets called for navigations within the document.
« no previous file with comments | « chrome/renderer/extensions/extension_helper.h ('k') | chrome/renderer/resources/extensions/content_watcher.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698