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

Side by Side Diff: public/web/WebDocument.h

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Add a test for watching dynamic attribute changes Created 7 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 unified diff | Download patch
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebFrameClient.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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 WEBKIT_EXPORT WebAccessibilityObject accessibilityObject() const; 121 WEBKIT_EXPORT WebAccessibilityObject accessibilityObject() const;
122 122
123 // Gets the accessibility object for an object on this page by ID. 123 // Gets the accessibility object for an object on this page by ID.
124 WEBKIT_EXPORT WebAccessibilityObject accessibilityObjectFromID(int axID) con st; 124 WEBKIT_EXPORT WebAccessibilityObject accessibilityObjectFromID(int axID) con st;
125 // Inserts the given CSS source code as a user stylesheet in the document. 125 // Inserts the given CSS source code as a user stylesheet in the document.
126 // Meant for programatic/one-off injection, as opposed to 126 // Meant for programatic/one-off injection, as opposed to
127 // WebView::addUserStyleSheet which inserts styles for the lifetime of the 127 // WebView::addUserStyleSheet which inserts styles for the lifetime of the
128 // WebView. 128 // WebView.
129 WEBKIT_EXPORT void insertUserStyleSheet(const WebString& sourceCode, UserSty leLevel); 129 WEBKIT_EXPORT void insertUserStyleSheet(const WebString& sourceCode, UserSty leLevel);
130 130
131 // Arranges to call WebFrameClient::didMatchCSS(frame(), ...) when one of
132 // the selectors matches or stops matching an element in this document.
133 // Each call to this method overrides any previous calls.
134 WEBKIT_EXPORT void watchCSSSelectors(const WebVector<WebString>& selectors);
135
131 WEBKIT_EXPORT WebVector<WebDraggableRegion> draggableRegions() const; 136 WEBKIT_EXPORT WebVector<WebDraggableRegion> draggableRegions() const;
132 137
133 #if WEBKIT_IMPLEMENTATION 138 #if WEBKIT_IMPLEMENTATION
134 WebDocument(const WTF::PassRefPtr<WebCore::Document>&); 139 WebDocument(const WTF::PassRefPtr<WebCore::Document>&);
135 WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&); 140 WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&);
136 operator WTF::PassRefPtr<WebCore::Document>() const; 141 operator WTF::PassRefPtr<WebCore::Document>() const;
137 #endif 142 #endif
138 }; 143 };
139 144
140 } // namespace WebKit 145 } // namespace WebKit
141 146
142 #endif 147 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698