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

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

Issue 2147223004: SELECT element: Remove HTMLSelectElement::optionToListIndex(). (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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 Element* namedItem(const AtomicString& name); 111 Element* namedItem(const AtomicString& name);
112 HTMLOptionElement* item(unsigned index); 112 HTMLOptionElement* item(unsigned index);
113 113
114 void scrollToSelection(); 114 void scrollToSelection();
115 void scrollToOption(HTMLOptionElement*); 115 void scrollToOption(HTMLOptionElement*);
116 116
117 bool canSelectAll() const; 117 bool canSelectAll() const;
118 void selectAll(); 118 void selectAll();
119 void listBoxOnChange(); 119 void listBoxOnChange();
120 int optionToListIndex(int optionIndex) const;
121 int activeSelectionEndListIndex() const; 120 int activeSelectionEndListIndex() const;
122 HTMLOptionElement* activeSelectionEnd() const; 121 HTMLOptionElement* activeSelectionEnd() const;
123 void setActiveSelectionAnchor(HTMLOptionElement*); 122 void setActiveSelectionAnchor(HTMLOptionElement*);
124 void setActiveSelectionEnd(HTMLOptionElement*); 123 void setActiveSelectionEnd(HTMLOptionElement*);
125 124
126 // For use in the implementation of HTMLOptionElement. 125 // For use in the implementation of HTMLOptionElement.
127 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected); 126 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected);
128 void optionInserted(HTMLOptionElement&, bool optionIsSelected); 127 void optionInserted(HTMLOptionElement&, bool optionIsSelected);
129 void optionRemoved(HTMLOptionElement&); 128 void optionRemoved(HTMLOptionElement&);
130 bool anonymousIndexedSetter(unsigned, HTMLOptionElement*, ExceptionState&); 129 bool anonymousIndexedSetter(unsigned, HTMLOptionElement*, ExceptionState&);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 294
296 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption); 295 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption);
297 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption); 296 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption);
298 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption); 297 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption);
299 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption); 298 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption);
300 }; 299 };
301 300
302 } // namespace blink 301 } // namespace blink
303 302
304 #endif // HTMLSelectElement_h 303 #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