| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 4 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 4 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 5 * (C) 2000 Dirk Mueller (mueller@kde.org) | 5 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
| 7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 * | 23 * |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef HTMLSelectElement_h | 26 #ifndef HTMLSelectElement_h |
| 27 #define HTMLSelectElement_h | 27 #define HTMLSelectElement_h |
| 28 | 28 |
| 29 #include "HTMLFormControlElementWithState.h" | |
| 30 #include "HTMLOptionsCollection.h" | |
| 31 #include "TypeAhead.h" | |
| 32 #include "core/dom/Event.h" | 29 #include "core/dom/Event.h" |
| 30 #include "core/html/HTMLFormControlElementWithState.h" |
| 31 #include "core/html/HTMLOptionsCollection.h" |
| 32 #include "core/html/TypeAhead.h" |
| 33 #include <wtf/Vector.h> | 33 #include <wtf/Vector.h> |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 class HTMLOptionElement; | 37 class HTMLOptionElement; |
| 38 | 38 |
| 39 class HTMLSelectElement : public HTMLFormControlElementWithState, public TypeAhe
adDataSource { | 39 class HTMLSelectElement : public HTMLFormControlElementWithState, public TypeAhe
adDataSource { |
| 40 public: | 40 public: |
| 41 static PassRefPtr<HTMLSelectElement> create(const QualifiedName&, Document*,
HTMLFormElement*); | 41 static PassRefPtr<HTMLSelectElement> create(const QualifiedName&, Document*,
HTMLFormElement*); |
| 42 | 42 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 { | 217 { |
| 218 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLSelectElement(node)); | 218 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLSelectElement(node)); |
| 219 return static_cast<const HTMLSelectElement*>(node); | 219 return static_cast<const HTMLSelectElement*>(node); |
| 220 } | 220 } |
| 221 | 221 |
| 222 void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch
anyone doing an unnecessary cast. | 222 void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch
anyone doing an unnecessary cast. |
| 223 | 223 |
| 224 } // namespace | 224 } // namespace |
| 225 | 225 |
| 226 #endif | 226 #endif |
| OLD | NEW |