Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLSelectElement.h

Issue 2149763003: SELECT element: Add HTMLSelectElement::selectedListIndex(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698