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