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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 enum SkipDirection { | 171 enum SkipDirection { |
172 SkipBackwards = -1, | 172 SkipBackwards = -1, |
173 SkipForwards = 1 | 173 SkipForwards = 1 |
174 }; | 174 }; |
175 int nextValidIndex(int listIndex, SkipDirection, int skip) const; | 175 int nextValidIndex(int listIndex, SkipDirection, int skip) const; |
176 int nextSelectableListIndex(int startIndex) const; | 176 int nextSelectableListIndex(int startIndex) const; |
177 int previousSelectableListIndex(int startIndex) const; | 177 int previousSelectableListIndex(int startIndex) const; |
178 int firstSelectableListIndex() const; | 178 int firstSelectableListIndex() const; |
179 int lastSelectableListIndex() const; | 179 int lastSelectableListIndex() const; |
180 int nextSelectableListIndexPageAway(int startIndex, SkipDirection) const; | 180 int nextSelectableListIndexPageAway(int startIndex, SkipDirection) const; |
| 181 int listIndexForEvent(Event*); |
181 | 182 |
182 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 183 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
183 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } | 184 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } |
184 | 185 |
185 // TypeAheadDataSource functions. | 186 // TypeAheadDataSource functions. |
186 virtual int indexOfSelectedOption() const OVERRIDE; | 187 virtual int indexOfSelectedOption() const OVERRIDE; |
187 virtual int optionCount() const OVERRIDE; | 188 virtual int optionCount() const OVERRIDE; |
188 virtual String optionAtIndex(int index) const OVERRIDE; | 189 virtual String optionAtIndex(int index) const OVERRIDE; |
189 | 190 |
190 // m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHREl
ement objects. | 191 // m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHREl
ement objects. |
(...skipping 26 matching lines...) Expand all Loading... |
217 { | 218 { |
218 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLSelectElement(node)); | 219 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLSelectElement(node)); |
219 return static_cast<const HTMLSelectElement*>(node); | 220 return static_cast<const HTMLSelectElement*>(node); |
220 } | 221 } |
221 | 222 |
222 void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch
anyone doing an unnecessary cast. | 223 void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch
anyone doing an unnecessary cast. |
223 | 224 |
224 } // namespace | 225 } // namespace |
225 | 226 |
226 #endif | 227 #endif |
OLD | NEW |