| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 PassRefPtrWillBeRawPtr<HTMLOptionsCollection> options(); | 78 PassRefPtrWillBeRawPtr<HTMLOptionsCollection> options(); |
| 79 PassRefPtrWillBeRawPtr<HTMLCollection> selectedOptions(); | 79 PassRefPtrWillBeRawPtr<HTMLCollection> selectedOptions(); |
| 80 | 80 |
| 81 void optionElementChildrenChanged(); | 81 void optionElementChildrenChanged(); |
| 82 | 82 |
| 83 void setRecalcListItems(); | 83 void setRecalcListItems(); |
| 84 void invalidateSelectedItems(); | 84 void invalidateSelectedItems(); |
| 85 void updateListItemSelectedStates(); | 85 void updateListItemSelectedStates(); |
| 86 | 86 |
| 87 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& listItems() const; | 87 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement>>& listItems() const; |
| 88 | 88 |
| 89 virtual void accessKeyAction(bool sendMouseEvents) override; | 89 virtual void accessKeyAction(bool sendMouseEvents) override; |
| 90 void accessKeySetSelectedIndex(int); | 90 void accessKeySetSelectedIndex(int); |
| 91 | 91 |
| 92 void setMultiple(bool); | 92 void setMultiple(bool); |
| 93 | 93 |
| 94 void setSize(int); | 94 void setSize(int); |
| 95 | 95 |
| 96 void setOption(unsigned index, HTMLOptionElement*, ExceptionState&); | 96 void setOption(unsigned index, HTMLOptionElement*, ExceptionState&); |
| 97 void setLength(unsigned, ExceptionState&); | 97 void setLength(unsigned, ExceptionState&); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 virtual void childrenChanged(const ChildrenChange&) override; | 207 virtual void childrenChanged(const ChildrenChange&) override; |
| 208 virtual bool areAuthorShadowsAllowed() const override { return false; } | 208 virtual bool areAuthorShadowsAllowed() const override { return false; } |
| 209 virtual void finishParsingChildren() override; | 209 virtual void finishParsingChildren() override; |
| 210 | 210 |
| 211 // TypeAheadDataSource functions. | 211 // TypeAheadDataSource functions. |
| 212 virtual int indexOfSelectedOption() const override; | 212 virtual int indexOfSelectedOption() const override; |
| 213 virtual int optionCount() const override; | 213 virtual int optionCount() const override; |
| 214 virtual String optionAtIndex(int index) const override; | 214 virtual String optionAtIndex(int index) const override; |
| 215 | 215 |
| 216 // m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHREl
ement objects. | 216 // m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHREl
ement objects. |
| 217 mutable WillBeHeapVector<RawPtrWillBeMember<HTMLElement> > m_listItems; | 217 mutable WillBeHeapVector<RawPtrWillBeMember<HTMLElement>> m_listItems; |
| 218 Vector<bool> m_lastOnChangeSelection; | 218 Vector<bool> m_lastOnChangeSelection; |
| 219 Vector<bool> m_cachedStateForActiveSelection; | 219 Vector<bool> m_cachedStateForActiveSelection; |
| 220 TypeAhead m_typeAhead; | 220 TypeAhead m_typeAhead; |
| 221 int m_size; | 221 int m_size; |
| 222 int m_lastOnChangeIndex; | 222 int m_lastOnChangeIndex; |
| 223 int m_activeSelectionAnchorIndex; | 223 int m_activeSelectionAnchorIndex; |
| 224 int m_activeSelectionEndIndex; | 224 int m_activeSelectionEndIndex; |
| 225 bool m_isProcessingUserDrivenChange; | 225 bool m_isProcessingUserDrivenChange; |
| 226 bool m_multiple; | 226 bool m_multiple; |
| 227 bool m_activeSelectionState; | 227 bool m_activeSelectionState; |
| 228 mutable bool m_shouldRecalcListItems; | 228 mutable bool m_shouldRecalcListItems; |
| 229 int m_suggestedIndex; | 229 int m_suggestedIndex; |
| 230 bool m_isAutofilledByPreview; | 230 bool m_isAutofilledByPreview; |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 } // namespace blink | 233 } // namespace blink |
| 234 | 234 |
| 235 #endif // HTMLSelectElement_h | 235 #endif // HTMLSelectElement_h |
| OLD | NEW |