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

Unified Diff: public/web/WebScriptBindings.h

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Initial 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebScriptBindings.h
diff --git a/public/web/WebDOMResourceProgressEvent.h b/public/web/WebScriptBindings.h
similarity index 77%
copy from public/web/WebDOMResourceProgressEvent.h
copy to public/web/WebScriptBindings.h
index b65d93c80e006d6e99c837e840eb38cb3a71055d..aca951edbb4270774da3f746eeae2d25ae105704 100644
--- a/public/web/WebDOMResourceProgressEvent.h
+++ b/public/web/WebScriptBindings.h
@@ -28,19 +28,27 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebDOMResourceProgressEvent_h
-#define WebDOMResourceProgressEvent_h
+#ifndef WebScriptBindings_h
+#define WebScriptBindings_h
-#include "WebDOMProgressEvent.h"
+#include "../platform/WebCommon.h"
+
+namespace v8 {
+class Isolate;
+class String;
+template <class T> class Local;
+}
namespace WebKit {
class WebString;
-class WebDOMResourceProgressEvent : public WebDOMProgressEvent {
+// A haphazard collection of functions for dealing with plugins.
+class WebScriptBindings {
public:
- WebDOMResourceProgressEvent() { }
- WEBKIT_EXPORT WebDOMResourceProgressEvent(const WebString& type, bool lengthIsComputable, unsigned long long loaded, unsigned long long total, const WebString& url);
+ // Efficiently converts a WebString to a v8::String. You must have
+ // a HandleScope to guard the result's lifetime.
+ WEBKIT_EXPORT static v8::Local<v8::String> toV8String(const WebString&, v8::Isolate*);
};
} // namespace WebKit
« no previous file with comments | « public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698