blob: 3e990d7fa72eb1697d47fed251fc0d282d661812 [file] [log] [blame]
darinb9481ed2006-03-20 02:57:59 +00001/*
darinb9481ed2006-03-20 02:57:59 +00002 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
darin@apple.com6b166602007-12-03 04:57:59 +00004 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
darinb9481ed2006-03-20 02:57:59 +00005 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
ddkilzerc8eccec2007-09-26 02:29:57 +000018 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
darinb9481ed2006-03-20 02:57:59 +000020 *
21 */
22
eseidel8eddecf2007-01-16 00:49:43 +000023#ifndef HTMLNameCollection_h
24#define HTMLNameCollection_h
darinb9481ed2006-03-20 02:57:59 +000025
26#include "HTMLCollection.h"
27#include "PlatformString.h"
28
29namespace WebCore {
30
31class Document;
32
darin@apple.com6b166602007-12-03 04:57:59 +000033class HTMLNameCollection : public HTMLCollection {
darinb9481ed2006-03-20 02:57:59 +000034public:
darin@apple.com9a925fa2009-05-04 18:00:34 +000035 static PassRefPtr<HTMLNameCollection> create(PassRefPtr<Document> document, CollectionType type, const String& name)
darin@apple.com642f5002008-06-07 22:51:37 +000036 {
37 return adoptRef(new HTMLNameCollection(document, type, name));
38 }
darinb9481ed2006-03-20 02:57:59 +000039
darinb9481ed2006-03-20 02:57:59 +000040private:
darin@apple.com9a925fa2009-05-04 18:00:34 +000041 HTMLNameCollection(PassRefPtr<Document>, CollectionType, const String& name);
darin@apple.com642f5002008-06-07 22:51:37 +000042
darin@apple.com6b166602007-12-03 04:57:59 +000043 virtual Element* itemAfter(Element*) const;
44
darinb9481ed2006-03-20 02:57:59 +000045 String m_name;
46};
47
48}
49
50#endif