| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMul
tipleSelection = false); | 55 void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMul
tipleSelection = false); |
| 56 | 56 |
| 57 // For ValidityState | 57 // For ValidityState |
| 58 virtual String validationMessage() const override; | 58 virtual String validationMessage() const override; |
| 59 virtual bool valueMissing() const override; | 59 virtual bool valueMissing() const override; |
| 60 | 60 |
| 61 virtual void resetImpl() override; | 61 virtual void resetImpl() override; |
| 62 | 62 |
| 63 unsigned length() const; | 63 unsigned length() const; |
| 64 | 64 |
| 65 int size() const { return m_size; } | 65 unsigned size() const { return m_size; } |
| 66 bool multiple() const { return m_multiple; } | 66 bool multiple() const { return m_multiple; } |
| 67 | 67 |
| 68 bool usesMenuList() const; | 68 bool usesMenuList() const; |
| 69 | 69 |
| 70 void add(const HTMLOptionElementOrHTMLOptGroupElement&, const HTMLElementOrL
ong&, ExceptionState&); | 70 void add(const HTMLOptionElementOrHTMLOptGroupElement&, const HTMLElementOrL
ong&, ExceptionState&); |
| 71 | 71 |
| 72 using Node::remove; | 72 using Node::remove; |
| 73 void remove(int index); | 73 void remove(int index); |
| 74 | 74 |
| 75 String value() const; | 75 String value() const; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 86 void invalidateSelectedItems(); | 86 void invalidateSelectedItems(); |
| 87 void updateListItemSelectedStates(); | 87 void updateListItemSelectedStates(); |
| 88 | 88 |
| 89 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement>>& listItems() const; | 89 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement>>& listItems() const; |
| 90 | 90 |
| 91 virtual void accessKeyAction(bool sendMouseEvents) override; | 91 virtual void accessKeyAction(bool sendMouseEvents) override; |
| 92 void accessKeySetSelectedIndex(int); | 92 void accessKeySetSelectedIndex(int); |
| 93 | 93 |
| 94 void setMultiple(bool); | 94 void setMultiple(bool); |
| 95 | 95 |
| 96 void setSize(int); | 96 void setSize(unsigned); |
| 97 | 97 |
| 98 void setOption(unsigned index, HTMLOptionElement*, ExceptionState&); | 98 void setOption(unsigned index, HTMLOptionElement*, ExceptionState&); |
| 99 void setLength(unsigned, ExceptionState&); | 99 void setLength(unsigned, ExceptionState&); |
| 100 | 100 |
| 101 Element* namedItem(const AtomicString& name); | 101 Element* namedItem(const AtomicString& name); |
| 102 HTMLOptionElement* item(unsigned index); | 102 HTMLOptionElement* item(unsigned index); |
| 103 | 103 |
| 104 void scrollToSelection(); | 104 void scrollToSelection(); |
| 105 void scrollToIndex(int listIndex); | 105 void scrollToIndex(int listIndex); |
| 106 | 106 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // TypeAheadDataSource functions. | 214 // TypeAheadDataSource functions. |
| 215 virtual int indexOfSelectedOption() const override; | 215 virtual int indexOfSelectedOption() const override; |
| 216 virtual int optionCount() const override; | 216 virtual int optionCount() const override; |
| 217 virtual String optionAtIndex(int index) const override; | 217 virtual String optionAtIndex(int index) const override; |
| 218 | 218 |
| 219 // m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHREl
ement objects. | 219 // m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHREl
ement objects. |
| 220 mutable WillBeHeapVector<RawPtrWillBeMember<HTMLElement>> m_listItems; | 220 mutable WillBeHeapVector<RawPtrWillBeMember<HTMLElement>> m_listItems; |
| 221 Vector<bool> m_lastOnChangeSelection; | 221 Vector<bool> m_lastOnChangeSelection; |
| 222 Vector<bool> m_cachedStateForActiveSelection; | 222 Vector<bool> m_cachedStateForActiveSelection; |
| 223 TypeAhead m_typeAhead; | 223 TypeAhead m_typeAhead; |
| 224 int m_size; | 224 unsigned m_size; |
| 225 int m_lastOnChangeIndex; | 225 int m_lastOnChangeIndex; |
| 226 int m_activeSelectionAnchorIndex; | 226 int m_activeSelectionAnchorIndex; |
| 227 int m_activeSelectionEndIndex; | 227 int m_activeSelectionEndIndex; |
| 228 bool m_isProcessingUserDrivenChange; | 228 bool m_isProcessingUserDrivenChange; |
| 229 bool m_multiple; | 229 bool m_multiple; |
| 230 bool m_activeSelectionState; | 230 bool m_activeSelectionState; |
| 231 mutable bool m_shouldRecalcListItems; | 231 mutable bool m_shouldRecalcListItems; |
| 232 int m_suggestedIndex; | 232 int m_suggestedIndex; |
| 233 bool m_isAutofilledByPreview; | 233 bool m_isAutofilledByPreview; |
| 234 }; | 234 }; |
| 235 | 235 |
| 236 } // namespace blink | 236 } // namespace blink |
| 237 | 237 |
| 238 #endif // HTMLSelectElement_h | 238 #endif // HTMLSelectElement_h |
| OLD | NEW |