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

Unified Diff: third_party/WebKit/fake_gen/web/api/document.h

Issue 2591803002: NOT FOR LANDING: Thread the needle through all webmodules.
Patch Set: AddEventListener sketched out. Created 3 years, 10 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 | « third_party/WebKit/fake_gen/fake_the_gen.py ('k') | third_party/WebKit/fake_gen/web/api/document.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/fake_gen/web/api/document.h
diff --git a/third_party/WebKit/fake_gen/web/api/document.h b/third_party/WebKit/fake_gen/web/api/document.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f8ab640f6e98ff6a60f7cf4ed6b8834f7518561
--- /dev/null
+++ b/third_party/WebKit/fake_gen/web/api/document.h
@@ -0,0 +1,83 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file has been auto-generated by code_generator_web_module.py.
+// DO NOT MODIFY!
+
+// This file has been generated from the Jinja2 template in
+// third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl
+
+// clang-format off
+
+#ifndef WEB_API_DOCUMENT_H
+#define WEB_API_DOCUMENT_H
+
+#include "core/dom/Document.h"
+#include "web/api/node.h"
+#include "wtf/Optional.h"
+#include "wtf/Variant.h"
+
+namespace blink {
+class Document;
+class HTMLScriptElement;
+class SVGScriptElement;
+}
+
+namespace web {
+
+class HTMLScriptElement : public Node {
+ public:
+ virtual ~HTMLScriptElement() = default;
+
+ static HTMLScriptElement* Create(blink::HTMLScriptElement*);
+
+ void DoDummyThing() {}
+ protected:
+ blink::HTMLScriptElement* GetBlinkInstance() const;
+ explicit HTMLScriptElement(blink::HTMLScriptElement*);
+};
+
+class SVGScriptElement : public Node {
+ public:
+ virtual ~SVGScriptElement() = default;
+
+ static SVGScriptElement* Create(blink::SVGScriptElement*);
+ protected:
+ blink::SVGScriptElement* GetBlinkInstance() const;
+ explicit SVGScriptElement(blink::SVGScriptElement*);
+};
+
+class Document : public Node {
+ public:
+ virtual ~Document() = default;
+
+ static Document* Create(blink::Document*);
+
+ // [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks,
+ // RaisesException]
+ // void write(DOMString... text);
+ template<typename... Args>
+ void Write(Args... args) {
+ String array[] = { args... };
+ // is_gc_type governs whether Vector or HeapVector is used here.
+ Vector<String> vector(sizeof...(args));
+ for (auto item : array)
+ vector.push_back(item);
+ document()->write(document()->domWindow(), vector, ASSERT_NO_EXCEPTION);
+ }
+
+ // typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
+ // [ImplementedAs=currentScriptForBinding]
+ // readonly attribute HTMLOrSVGScriptElement? currentScript;
+ using CurrentScript = WTF::Variant<blink::Member<HTMLScriptElement>, blink::Member<SVGScriptElement>>;
+ Optional<CurrentScript> GetCurrentScript() const;
+
+ protected:
+ blink::Document* document() const;
+ explicit Document(blink::Document*);
+};
+
+} // namespace web
+
+#endif // WEB_API_DOCUMENT_H
« no previous file with comments | « third_party/WebKit/fake_gen/fake_the_gen.py ('k') | third_party/WebKit/fake_gen/web/api/document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698