| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 int activeSelectionEndListIndex() const; | 114 int activeSelectionEndListIndex() const; |
| 115 void setActiveSelectionAnchorIndex(int); | 115 void setActiveSelectionAnchorIndex(int); |
| 116 void setActiveSelectionEndIndex(int); | 116 void setActiveSelectionEndIndex(int); |
| 117 | 117 |
| 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 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 updateListOnLayoutObject(); |
| 125 | 125 |
| 126 HTMLOptionElement* spatialNavigationFocusedOption(); | 126 HTMLOptionElement* spatialNavigationFocusedOption(); |
| 127 void handleMouseRelease(); | 127 void handleMouseRelease(); |
| 128 | 128 |
| 129 int listIndexForOption(const HTMLOptionElement&); | 129 int listIndexForOption(const HTMLOptionElement&); |
| 130 | 130 |
| 131 DECLARE_VIRTUAL_TRACE(); | 131 DECLARE_VIRTUAL_TRACE(); |
| 132 | 132 |
| 133 protected: | 133 protected: |
| 134 HTMLSelectElement(Document&, HTMLFormElement*); | 134 HTMLSelectElement(Document&, HTMLFormElement*); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 void selectOption(int optionIndex, SelectOptionFlags = 0); | 183 void selectOption(int optionIndex, SelectOptionFlags = 0); |
| 184 void deselectItemsWithoutValidation(HTMLElement* elementToExclude = 0); | 184 void deselectItemsWithoutValidation(HTMLElement* elementToExclude = 0); |
| 185 void parseMultipleAttribute(const AtomicString&); | 185 void parseMultipleAttribute(const AtomicString&); |
| 186 int lastSelectedListIndex() const; | 186 int lastSelectedListIndex() const; |
| 187 void updateSelectedState(int listIndex, bool multi, bool shift); | 187 void updateSelectedState(int listIndex, bool multi, bool shift); |
| 188 void menuListDefaultEventHandler(Event*); | 188 void menuListDefaultEventHandler(Event*); |
| 189 void handlePopupOpenKeyboardEvent(Event*); | 189 void handlePopupOpenKeyboardEvent(Event*); |
| 190 bool shouldOpenPopupForKeyDownEvent(KeyboardEvent*); | 190 bool shouldOpenPopupForKeyDownEvent(KeyboardEvent*); |
| 191 bool shouldOpenPopupForKeyPressEvent(KeyboardEvent*); | 191 bool shouldOpenPopupForKeyPressEvent(KeyboardEvent*); |
| 192 void listBoxDefaultEventHandler(Event*); | 192 void listBoxDefaultEventHandler(Event*); |
| 193 void setOptionsChangedOnRenderer(); | 193 void setOptionsChangedOnLayoutObject(); |
| 194 size_t searchOptionsForValue(const String&, size_t listIndexStart, size_t li
stIndexEnd) const; | 194 size_t searchOptionsForValue(const String&, size_t listIndexStart, size_t li
stIndexEnd) const; |
| 195 void updateListBoxSelection(bool deselectOtherOptions, bool scroll = true); | 195 void updateListBoxSelection(bool deselectOtherOptions, bool scroll = true); |
| 196 | 196 |
| 197 enum SkipDirection { | 197 enum SkipDirection { |
| 198 SkipBackwards = -1, | 198 SkipBackwards = -1, |
| 199 SkipForwards = 1 | 199 SkipForwards = 1 |
| 200 }; | 200 }; |
| 201 int nextValidIndex(int listIndex, SkipDirection, int skip) const; | 201 int nextValidIndex(int listIndex, SkipDirection, int skip) const; |
| 202 int nextSelectableListIndex(int startIndex) const; | 202 int nextSelectableListIndex(int startIndex) const; |
| 203 int previousSelectableListIndex(int startIndex) const; | 203 int previousSelectableListIndex(int startIndex) const; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 229 bool m_multiple; | 229 bool m_multiple; |
| 230 bool m_activeSelectionState; | 230 bool m_activeSelectionState; |
| 231 mutable bool m_shouldRecalcListItems; | 231 mutable bool m_shouldRecalcListItems; |
| 232 int m_suggestedIndex; | 232 int m_suggestedIndex; |
| 233 bool m_isAutofilledByPreview; | 233 bool m_isAutofilledByPreview; |
| 234 }; | 234 }; |
| 235 | 235 |
| 236 } // namespace blink | 236 } // namespace blink |
| 237 | 237 |
| 238 #endif // HTMLSelectElement_h | 238 #endif // HTMLSelectElement_h |
| OLD | NEW |