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

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

Issue 485093003: Make it obvious an HTMLOptionsCollection can only contain HTMLOptionElements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLOptionsCollection.h ('k') | 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void accessKeySetSelectedIndex(int); 90 void accessKeySetSelectedIndex(int);
91 91
92 void setMultiple(bool); 92 void setMultiple(bool);
93 93
94 void setSize(int); 94 void setSize(int);
95 95
96 void setOption(unsigned index, HTMLOptionElement*, ExceptionState&); 96 void setOption(unsigned index, HTMLOptionElement*, ExceptionState&);
97 void setLength(unsigned, ExceptionState&); 97 void setLength(unsigned, ExceptionState&);
98 98
99 Element* namedItem(const AtomicString& name); 99 Element* namedItem(const AtomicString& name);
100 Element* item(unsigned index); 100 HTMLOptionElement* item(unsigned index);
101 101
102 void scrollToSelection(); 102 void scrollToSelection();
103 void scrollTo(int listIndex); 103 void scrollTo(int listIndex);
104 104
105 void listBoxSelectItem(int listIndex, bool allowMultiplySelections, bool shi ft, bool fireOnChangeNow = true); 105 void listBoxSelectItem(int listIndex, bool allowMultiplySelections, bool shi ft, bool fireOnChangeNow = true);
106 106
107 bool canSelectAll() const; 107 bool canSelectAll() const;
108 void selectAll(); 108 void selectAll();
109 int listToOptionIndex(int listIndex) const; 109 int listToOptionIndex(int listIndex) const;
110 void listBoxOnChange(); 110 void listBoxOnChange();
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 bool m_isProcessingUserDrivenChange; 225 bool m_isProcessingUserDrivenChange;
226 bool m_multiple; 226 bool m_multiple;
227 bool m_activeSelectionState; 227 bool m_activeSelectionState;
228 mutable bool m_shouldRecalcListItems; 228 mutable bool m_shouldRecalcListItems;
229 int m_suggestedIndex; 229 int m_suggestedIndex;
230 }; 230 };
231 231
232 } // namespace 232 } // namespace
233 233
234 #endif 234 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLOptionsCollection.h ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698