| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // For use in the implementation of HTMLOptionElement. | 118 // For use in the implementation of HTMLOptionElement. |
| 119 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected); | 119 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected); |
| 120 void optionRemoved(const HTMLOptionElement&); | 120 void optionRemoved(const HTMLOptionElement&); |
| 121 bool anonymousIndexedSetter(unsigned, PassRefPtrWillBeRawPtr<HTMLOptionEleme
nt>, ExceptionState&); | 121 bool anonymousIndexedSetter(unsigned, PassRefPtrWillBeRawPtr<HTMLOptionEleme
nt>, ExceptionState&); |
| 122 | 122 |
| 123 void updateListOnRenderer(); | 123 void updateListOnRenderer(); |
| 124 | 124 |
| 125 HTMLOptionElement* spatialNavigationFocusedOption(); | 125 HTMLOptionElement* spatialNavigationFocusedOption(); |
| 126 void handleMouseRelease(); | 126 void handleMouseRelease(); |
| 127 | 127 |
| 128 int listIndexForOption(const HTMLOptionElement&); |
| 129 |
| 128 virtual void trace(Visitor*) override; | 130 virtual void trace(Visitor*) override; |
| 129 | 131 |
| 130 protected: | 132 protected: |
| 131 HTMLSelectElement(Document&, HTMLFormElement*); | 133 HTMLSelectElement(Document&, HTMLFormElement*); |
| 132 | 134 |
| 133 private: | 135 private: |
| 134 virtual const AtomicString& formControlType() const override; | 136 virtual const AtomicString& formControlType() const override; |
| 135 | 137 |
| 136 virtual bool shouldShowFocusRingOnMouseFocus() const override; | 138 virtual bool shouldShowFocusRingOnMouseFocus() const override; |
| 137 | 139 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 SkipBackwards = -1, | 197 SkipBackwards = -1, |
| 196 SkipForwards = 1 | 198 SkipForwards = 1 |
| 197 }; | 199 }; |
| 198 int nextValidIndex(int listIndex, SkipDirection, int skip) const; | 200 int nextValidIndex(int listIndex, SkipDirection, int skip) const; |
| 199 int nextSelectableListIndex(int startIndex) const; | 201 int nextSelectableListIndex(int startIndex) const; |
| 200 int previousSelectableListIndex(int startIndex) const; | 202 int previousSelectableListIndex(int startIndex) const; |
| 201 int firstSelectableListIndex() const; | 203 int firstSelectableListIndex() const; |
| 202 int lastSelectableListIndex() const; | 204 int lastSelectableListIndex() const; |
| 203 int nextSelectableListIndexPageAway(int startIndex, SkipDirection) const; | 205 int nextSelectableListIndexPageAway(int startIndex, SkipDirection) const; |
| 204 int listIndexForEventTargetOption(const Event&); | 206 int listIndexForEventTargetOption(const Event&); |
| 205 int listIndexForOption(const HTMLOptionElement&); | |
| 206 AutoscrollController* autoscrollController() const; | 207 AutoscrollController* autoscrollController() const; |
| 207 | 208 |
| 208 virtual void childrenChanged(const ChildrenChange&) override; | 209 virtual void childrenChanged(const ChildrenChange&) override; |
| 209 virtual bool areAuthorShadowsAllowed() const override { return false; } | 210 virtual bool areAuthorShadowsAllowed() const override { return false; } |
| 210 virtual void finishParsingChildren() override; | 211 virtual void finishParsingChildren() override; |
| 211 | 212 |
| 212 // TypeAheadDataSource functions. | 213 // TypeAheadDataSource functions. |
| 213 virtual int indexOfSelectedOption() const override; | 214 virtual int indexOfSelectedOption() const override; |
| 214 virtual int optionCount() const override; | 215 virtual int optionCount() const override; |
| 215 virtual String optionAtIndex(int index) const override; | 216 virtual String optionAtIndex(int index) const override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 227 bool m_multiple; | 228 bool m_multiple; |
| 228 bool m_activeSelectionState; | 229 bool m_activeSelectionState; |
| 229 mutable bool m_shouldRecalcListItems; | 230 mutable bool m_shouldRecalcListItems; |
| 230 int m_suggestedIndex; | 231 int m_suggestedIndex; |
| 231 bool m_isAutofilledByPreview; | 232 bool m_isAutofilledByPreview; |
| 232 }; | 233 }; |
| 233 | 234 |
| 234 } // namespace blink | 235 } // namespace blink |
| 235 | 236 |
| 236 #endif // HTMLSelectElement_h | 237 #endif // HTMLSelectElement_h |
| OLD | NEW |