| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 void saveLastSelection(); | 212 void saveLastSelection(); |
| 213 void saveListboxActiveSelection(); | 213 void saveListboxActiveSelection(); |
| 214 // Returns the first selected OPTION, or nullptr. | 214 // Returns the first selected OPTION, or nullptr. |
| 215 HTMLOptionElement* selectedOption() const; | 215 HTMLOptionElement* selectedOption() const; |
| 216 | 216 |
| 217 bool isOptionalFormControl() const override { return !isRequiredFormControl(
); } | 217 bool isOptionalFormControl() const override { return !isRequiredFormControl(
); } |
| 218 bool isRequiredFormControl() const override; | 218 bool isRequiredFormControl() const override; |
| 219 | 219 |
| 220 bool hasPlaceholderLabelOption() const; | 220 bool hasPlaceholderLabelOption() const; |
| 221 | 221 |
| 222 void optionSelectedByUser(int optionIndex, bool dispatchChangeEvent); | |
| 223 enum SelectOptionFlag { | 222 enum SelectOptionFlag { |
| 224 DeselectOtherOptions = 1 << 0, | 223 DeselectOtherOptions = 1 << 0, |
| 225 DispatchInputAndChangeEvent = 1 << 1, | 224 DispatchInputAndChangeEvent = 1 << 1, |
| 226 MakeOptionDirty = 1 << 2, | 225 MakeOptionDirty = 1 << 2, |
| 227 }; | 226 }; |
| 228 typedef unsigned SelectOptionFlags; | 227 typedef unsigned SelectOptionFlags; |
| 229 void selectOption(HTMLOptionElement*, SelectOptionFlags); | 228 void selectOption(HTMLOptionElement*, SelectOptionFlags); |
| 230 void deselectItemsWithoutValidation(HTMLOptionElement* elementToExclude = nu
llptr); | 229 void deselectItemsWithoutValidation(HTMLOptionElement* elementToExclude = nu
llptr); |
| 231 void parseMultipleAttribute(const AtomicString&); | 230 void parseMultipleAttribute(const AtomicString&); |
| 232 HTMLOptionElement* lastSelectedOption() const; | 231 HTMLOptionElement* lastSelectedOption() const; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 | 291 |
| 293 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption); | 292 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption); |
| 294 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption); | 293 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption); |
| 295 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption); | 294 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption); |
| 296 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption); | 295 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption); |
| 297 }; | 296 }; |
| 298 | 297 |
| 299 } // namespace blink | 298 } // namespace blink |
| 300 | 299 |
| 301 #endif // HTMLSelectElement_h | 300 #endif // HTMLSelectElement_h |
| OLD | NEW |