| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 SkipBackwards = -1, | 183 SkipBackwards = -1, |
| 184 SkipForwards = 1 | 184 SkipForwards = 1 |
| 185 }; | 185 }; |
| 186 int nextValidIndex(int listIndex, SkipDirection, int skip) const; | 186 int nextValidIndex(int listIndex, SkipDirection, int skip) const; |
| 187 int nextSelectableListIndex(int startIndex) const; | 187 int nextSelectableListIndex(int startIndex) const; |
| 188 int previousSelectableListIndex(int startIndex) const; | 188 int previousSelectableListIndex(int startIndex) const; |
| 189 int firstSelectableListIndex() const; | 189 int firstSelectableListIndex() const; |
| 190 int lastSelectableListIndex() const; | 190 int lastSelectableListIndex() const; |
| 191 int nextSelectableListIndexPageAway(int startIndex, SkipDirection) const; | 191 int nextSelectableListIndexPageAway(int startIndex, SkipDirection) const; |
| 192 | 192 |
| 193 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; | 193 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; |
| 194 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } | 194 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } |
| 195 virtual void finishParsingChildren() OVERRIDE; | 195 virtual void finishParsingChildren() OVERRIDE; |
| 196 | 196 |
| 197 // TypeAheadDataSource functions. | 197 // TypeAheadDataSource functions. |
| 198 virtual int indexOfSelectedOption() const OVERRIDE; | 198 virtual int indexOfSelectedOption() const OVERRIDE; |
| 199 virtual int optionCount() const OVERRIDE; | 199 virtual int optionCount() const OVERRIDE; |
| 200 virtual String optionAtIndex(int index) const OVERRIDE; | 200 virtual String optionAtIndex(int index) const OVERRIDE; |
| 201 | 201 |
| 202 // m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHREl
ement objects. | 202 // m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHREl
ement objects. |
| 203 mutable WillBeHeapVector<RawPtrWillBeMember<HTMLElement> > m_listItems; | 203 mutable WillBeHeapVector<RawPtrWillBeMember<HTMLElement> > m_listItems; |
| 204 Vector<bool> m_lastOnChangeSelection; | 204 Vector<bool> m_lastOnChangeSelection; |
| 205 Vector<bool> m_cachedStateForActiveSelection; | 205 Vector<bool> m_cachedStateForActiveSelection; |
| 206 TypeAhead m_typeAhead; | 206 TypeAhead m_typeAhead; |
| 207 int m_size; | 207 int m_size; |
| 208 int m_lastOnChangeIndex; | 208 int m_lastOnChangeIndex; |
| 209 int m_activeSelectionAnchorIndex; | 209 int m_activeSelectionAnchorIndex; |
| 210 int m_activeSelectionEndIndex; | 210 int m_activeSelectionEndIndex; |
| 211 bool m_isProcessingUserDrivenChange; | 211 bool m_isProcessingUserDrivenChange; |
| 212 bool m_multiple; | 212 bool m_multiple; |
| 213 bool m_activeSelectionState; | 213 bool m_activeSelectionState; |
| 214 mutable bool m_shouldRecalcListItems; | 214 mutable bool m_shouldRecalcListItems; |
| 215 int m_suggestedIndex; | 215 int m_suggestedIndex; |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 } // namespace | 218 } // namespace |
| 219 | 219 |
| 220 #endif | 220 #endif |
| OLD | NEW |