| 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
|
|
|