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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 DispatchInputAndChangeEvent = 1 << 1, | 167 DispatchInputAndChangeEvent = 1 << 1, |
168 UserDriven = 1 << 2, | 168 UserDriven = 1 << 2, |
169 }; | 169 }; |
170 typedef unsigned SelectOptionFlags; | 170 typedef unsigned SelectOptionFlags; |
171 void selectOption(int optionIndex, SelectOptionFlags = 0); | 171 void selectOption(int optionIndex, SelectOptionFlags = 0); |
172 void deselectItemsWithoutValidation(HTMLElement* elementToExclude = 0); | 172 void deselectItemsWithoutValidation(HTMLElement* elementToExclude = 0); |
173 void parseMultipleAttribute(const AtomicString&); | 173 void parseMultipleAttribute(const AtomicString&); |
174 int lastSelectedListIndex() const; | 174 int lastSelectedListIndex() const; |
175 void updateSelectedState(int listIndex, bool multi, bool shift); | 175 void updateSelectedState(int listIndex, bool multi, bool shift); |
176 void menuListDefaultEventHandler(Event*); | 176 void menuListDefaultEventHandler(Event*); |
177 bool platformHandleKeydownEvent(KeyboardEvent*); | 177 bool handlePopupOpenKeyboardEvent(Event*); |
178 void listBoxDefaultEventHandler(Event*); | 178 void listBoxDefaultEventHandler(Event*); |
179 void setOptionsChangedOnRenderer(); | 179 void setOptionsChangedOnRenderer(); |
180 size_t searchOptionsForValue(const String&, size_t listIndexStart, size_t li
stIndexEnd) const; | 180 size_t searchOptionsForValue(const String&, size_t listIndexStart, size_t li
stIndexEnd) const; |
181 | 181 |
182 enum SkipDirection { | 182 enum SkipDirection { |
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; |
(...skipping 23 matching lines...) Expand all Loading... |
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 |