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