summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/html/WindowNameCollection.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/WindowNameCollection.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/html/WindowNameCollection.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/WindowNameCollection.h b/chromium/third_party/WebKit/Source/core/html/WindowNameCollection.h
new file mode 100644
index 00000000000..fc9408707c1
--- /dev/null
+++ b/chromium/third_party/WebKit/Source/core/html/WindowNameCollection.h
@@ -0,0 +1,30 @@
+// 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 WindowNameCollection_h
+#define WindowNameCollection_h
+
+#include "core/html/HTMLNameCollection.h"
+
+namespace WebCore {
+
+class WindowNameCollection FINAL : public HTMLNameCollection {
+public:
+ static PassRefPtrWillBeRawPtr<WindowNameCollection> create(ContainerNode& document, CollectionType type, const AtomicString& name)
+ {
+ ASSERT_UNUSED(type, type == WindowNamedItems);
+ return adoptRefWillBeNoop(new WindowNameCollection(document, name));
+ }
+
+ bool elementMatches(const Element&) const;
+
+private:
+ WindowNameCollection(ContainerNode& document, const AtomicString& name);
+};
+
+DEFINE_TYPE_CASTS(WindowNameCollection, LiveNodeListBase, collection, collection->type() == WindowNamedItems, collection.type() == WindowNamedItems);
+
+} // namespace WebCore
+
+#endif // WindowNameCollection_h