| 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 | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 30 #include "core/html/HTMLFormControlElementWithState.h" | 30 #include "core/html/HTMLFormControlElementWithState.h" | 
| 31 #include "core/html/HTMLOptionsCollection.h" | 31 #include "core/html/HTMLOptionsCollection.h" | 
| 32 #include "core/html/forms/TypeAhead.h" | 32 #include "core/html/forms/TypeAhead.h" | 
| 33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" | 
| 34 | 34 | 
| 35 namespace blink { | 35 namespace blink { | 
| 36 | 36 | 
| 37 class AutoscrollController; | 37 class AutoscrollController; | 
| 38 class ExceptionState; | 38 class ExceptionState; | 
| 39 class HTMLOptionElement; | 39 class HTMLOptionElement; | 
|  | 40 class HTMLOptionElementOrHTMLOptGroupElement; | 
|  | 41 class HTMLElementOrLong; | 
| 40 | 42 | 
| 41 class HTMLSelectElement final : public HTMLFormControlElementWithState, public T
     ypeAheadDataSource { | 43 class HTMLSelectElement final : public HTMLFormControlElementWithState, public T
     ypeAheadDataSource { | 
| 42     DEFINE_WRAPPERTYPEINFO(); | 44     DEFINE_WRAPPERTYPEINFO(); | 
| 43 public: | 45 public: | 
| 44     static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&); | 46     static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&); | 
| 45     static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&, HTMLFormE
     lement*); | 47     static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&, HTMLFormE
     lement*); | 
| 46 | 48 | 
| 47     int selectedIndex() const; | 49     int selectedIndex() const; | 
| 48     void setSelectedIndex(int); | 50     void setSelectedIndex(int); | 
| 49     int suggestedIndex() const; | 51     int suggestedIndex() const; | 
| 50     void setSuggestedIndex(int); | 52     void setSuggestedIndex(int); | 
| 51 | 53 | 
| 52     void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMul
     tipleSelection = false); | 54     void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMul
     tipleSelection = false); | 
| 53 | 55 | 
| 54     // For ValidityState | 56     // For ValidityState | 
| 55     virtual String validationMessage() const override; | 57     virtual String validationMessage() const override; | 
| 56     virtual bool valueMissing() const override; | 58     virtual bool valueMissing() const override; | 
| 57 | 59 | 
| 58     virtual void resetImpl() override; | 60     virtual void resetImpl() override; | 
| 59 | 61 | 
| 60     unsigned length() const; | 62     unsigned length() const; | 
| 61 | 63 | 
| 62     int size() const { return m_size; } | 64     int size() const { return m_size; } | 
| 63     bool multiple() const { return m_multiple; } | 65     bool multiple() const { return m_multiple; } | 
| 64 | 66 | 
| 65     bool usesMenuList() const; | 67     bool usesMenuList() const; | 
| 66 | 68 | 
| 67     void add(HTMLElement*, HTMLElement* beforeElement, ExceptionState&); | 69     void add(const HTMLOptionElementOrHTMLOptGroupElement&, const HTMLElementOrL
     ong&, ExceptionState&); | 
| 68     void addBeforeOptionAtIndex(HTMLElement*, int beforeIndex, ExceptionState&); |  | 
| 69 | 70 | 
| 70     using Node::remove; | 71     using Node::remove; | 
| 71     void remove(int index); | 72     void remove(int index); | 
| 72 | 73 | 
| 73     String value() const; | 74     String value() const; | 
| 74     void setValue(const String&, bool sendEvents = false); | 75     void setValue(const String&, bool sendEvents = false); | 
| 75     String suggestedValue() const; | 76     String suggestedValue() const; | 
| 76     void setSuggestedValue(const String&); | 77     void setSuggestedValue(const String&); | 
| 77 | 78 | 
| 78     PassRefPtrWillBeRawPtr<HTMLOptionsCollection> options(); | 79     PassRefPtrWillBeRawPtr<HTMLOptionsCollection> options(); | 
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 226     bool m_multiple; | 227     bool m_multiple; | 
| 227     bool m_activeSelectionState; | 228     bool m_activeSelectionState; | 
| 228     mutable bool m_shouldRecalcListItems; | 229     mutable bool m_shouldRecalcListItems; | 
| 229     int m_suggestedIndex; | 230     int m_suggestedIndex; | 
| 230     bool m_isAutofilledByPreview; | 231     bool m_isAutofilledByPreview; | 
| 231 }; | 232 }; | 
| 232 | 233 | 
| 233 } // namespace blink | 234 } // namespace blink | 
| 234 | 235 | 
| 235 #endif // HTMLSelectElement_h | 236 #endif // HTMLSelectElement_h | 
| OLD | NEW | 
|---|