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

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: Omit split CLs Created 7 years, 5 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 WEBKIT_EXPORT WebAccessibilityObject accessibilityObject() const; 116 WEBKIT_EXPORT WebAccessibilityObject accessibilityObject() const;
117 117
118 // Gets the accessibility object for an object on this page by ID. 118 // Gets the accessibility object for an object on this page by ID.
119 WEBKIT_EXPORT WebAccessibilityObject accessibilityObjectFromID(int axID) con st; 119 WEBKIT_EXPORT WebAccessibilityObject accessibilityObjectFromID(int axID) con st;
120 // Inserts the given CSS source code as a user stylesheet in the document. 120 // Inserts the given CSS source code as a user stylesheet in the document.
121 // Meant for programatic/one-off injection, as opposed to 121 // Meant for programatic/one-off injection, as opposed to
122 // WebView::addUserStyleSheet which inserts styles for the lifetime of the 122 // WebView::addUserStyleSheet which inserts styles for the lifetime of the
123 // WebView. 123 // WebView.
124 WEBKIT_EXPORT void insertUserStyleSheet(const WebString& sourceCode, UserSty leLevel); 124 WEBKIT_EXPORT void insertUserStyleSheet(const WebString& sourceCode, UserSty leLevel);
125 125
126 // Arranges to call WebFrameClient::didMatchCss(frame(), ...) when one of
127 // the selectors matches or stops matching an element in this document.
128 // Each call to this method overrides any previous calls.
129 WEBKIT_EXPORT void watchCssSelectors(const WebVector<WebString>& selectors);
Jeffrey Yasskin 2013/07/12 22:40:42 Used by https://codereview.chromium.org/19045002/.
130
126 WEBKIT_EXPORT WebVector<WebDraggableRegion> draggableRegions() const; 131 WEBKIT_EXPORT WebVector<WebDraggableRegion> draggableRegions() const;
127 132
128 #if WEBKIT_IMPLEMENTATION 133 #if WEBKIT_IMPLEMENTATION
129 WebDocument(const WTF::PassRefPtr<WebCore::Document>&); 134 WebDocument(const WTF::PassRefPtr<WebCore::Document>&);
130 WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&); 135 WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&);
131 operator WTF::PassRefPtr<WebCore::Document>() const; 136 operator WTF::PassRefPtr<WebCore::Document>() const;
132 #endif 137 #endif
133 }; 138 };
134 139
135 } // namespace WebKit 140 } // namespace WebKit
136 141
137 #endif 142 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698