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

Unified Diff: sky/engine/core/html/HTMLImportElement.h

Issue 681983005: Basic implementation of <import> (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Works Created 6 years, 1 month 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
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

Powered by Google App Engine
This is Rietveld 408576698