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

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

Issue 1292653003: [bindings] Avoid using custom binding for HTMLOptionsCollection.length attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added new test Created 5 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
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 26 matching lines...) Expand all
37 37
38 class AutoscrollController; 38 class AutoscrollController;
39 class ExceptionState; 39 class ExceptionState;
40 class HTMLOptionElement; 40 class HTMLOptionElement;
41 class HTMLOptionElementOrHTMLOptGroupElement; 41 class HTMLOptionElementOrHTMLOptGroupElement;
42 class HTMLElementOrLong; 42 class HTMLElementOrLong;
43 43
44 class CORE_EXPORT HTMLSelectElement final : public HTMLFormControlElementWithSta te, public TypeAheadDataSource { 44 class CORE_EXPORT HTMLSelectElement final : public HTMLFormControlElementWithSta te, public TypeAheadDataSource {
45 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
46 public: 46 public:
47 static const unsigned maxSelectItems;
47 static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&); 48 static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&);
48 static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&, HTMLFormE lement*); 49 static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&, HTMLFormE lement*);
49 50
50 int selectedIndex() const; 51 int selectedIndex() const;
51 void setSelectedIndex(int); 52 void setSelectedIndex(int);
52 int suggestedIndex() const; 53 int suggestedIndex() const;
53 void setSuggestedIndex(int); 54 void setSuggestedIndex(int);
54 55
55 void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMul tipleSelection = false); 56 void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMul tipleSelection = false);
56 57
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 bool m_multiple; 232 bool m_multiple;
232 bool m_activeSelectionState; 233 bool m_activeSelectionState;
233 mutable bool m_shouldRecalcListItems; 234 mutable bool m_shouldRecalcListItems;
234 int m_suggestedIndex; 235 int m_suggestedIndex;
235 bool m_isAutofilledByPreview; 236 bool m_isAutofilledByPreview;
236 }; 237 };
237 238
238 } // namespace blink 239 } // namespace blink
239 240
240 #endif // HTMLSelectElement_h 241 #endif // HTMLSelectElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698