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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 class CORE_EXPORT HTMLSelectElement final : public HTMLFormControlElementWithSta
te, private TypeAheadDataSource { | 49 class CORE_EXPORT HTMLSelectElement final : public HTMLFormControlElementWithSta
te, private TypeAheadDataSource { |
50 DEFINE_WRAPPERTYPEINFO(); | 50 DEFINE_WRAPPERTYPEINFO(); |
51 public: | 51 public: |
52 static HTMLSelectElement* create(Document&); | 52 static HTMLSelectElement* create(Document&); |
53 static HTMLSelectElement* create(Document&, HTMLFormElement*); | 53 static HTMLSelectElement* create(Document&, HTMLFormElement*); |
54 ~HTMLSelectElement() override; | 54 ~HTMLSelectElement() override; |
55 | 55 |
56 int selectedIndex() const; | 56 int selectedIndex() const; |
57 void setSelectedIndex(int); | 57 void setSelectedIndex(int); |
| 58 // `listIndex' version of |selectedIndex|. |
| 59 int selectedListIndex() const; |
58 | 60 |
59 // For ValidityState | 61 // For ValidityState |
60 String validationMessage() const override; | 62 String validationMessage() const override; |
61 bool valueMissing() const override; | 63 bool valueMissing() const override; |
62 | 64 |
63 String defaultToolTip() const override; | 65 String defaultToolTip() const override; |
64 void resetImpl() override; | 66 void resetImpl() override; |
65 | 67 |
66 unsigned length() const; | 68 unsigned length() const; |
67 void setLength(unsigned, ExceptionState&); | 69 void setLength(unsigned, ExceptionState&); |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 296 |
295 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption); | 297 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption); |
296 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption); | 298 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption); |
297 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption); | 299 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption); |
298 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption); | 300 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption); |
299 }; | 301 }; |
300 | 302 |
301 } // namespace blink | 303 } // namespace blink |
302 | 304 |
303 #endif // HTMLSelectElement_h | 305 #endif // HTMLSelectElement_h |
OLD | NEW |