| Index: sky/engine/core/html/HTMLImportElement.h
|
| diff --git a/sky/engine/core/html/HTMLImportElement.h b/sky/engine/core/html/HTMLImportElement.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0053fc7fa1e56a922bdf2b74e6a3ec0477278748
|
| --- /dev/null
|
| +++ b/sky/engine/core/html/HTMLImportElement.h
|
| @@ -0,0 +1,39 @@
|
| +// 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.
|
| +
|
| +#ifndef HTMLImportElement_h
|
| +#define HTMLImportElement_h
|
| +
|
| +#include "core/html/HTMLElement.h"
|
| +#include "core/html/imports/HTMLImportChildClient.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class HTMLImportElement final : public HTMLElement, public HTMLImportChildClient {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +public:
|
| + static PassRefPtr<HTMLImportElement> create(Document&);
|
| +
|
| +
|
| +private:
|
| + explicit HTMLImportElement(Document&);
|
| +
|
| + bool shouldLoad() const;
|
| + void load();
|
| +
|
| + // From HTMLElement
|
| + InsertionNotificationRequest insertedInto(ContainerNode*) override;
|
| +
|
| + // From HTMLImportChildClient
|
| + void didFinish() override;
|
| + void importChildWasDestroyed(HTMLImportChild*) override;
|
| + bool isSync() const override;
|
| + Element* link() override;
|
| +
|
| + HTMLImportChild* m_child;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // HTMLImportElement_h
|
|
|