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

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

Issue 213773003: select.add() should support optgroup adding and before index (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void resetImpl() OVERRIDE; 56 virtual void resetImpl() OVERRIDE;
57 57
58 unsigned length() const; 58 unsigned length() const;
59 59
60 int size() const { return m_size; } 60 int size() const { return m_size; }
61 bool multiple() const { return m_multiple; } 61 bool multiple() const { return m_multiple; }
62 62
63 bool usesMenuList() const; 63 bool usesMenuList() const;
64 64
65 void add(HTMLElement*, HTMLElement* beforeElement, ExceptionState&); 65 void add(HTMLElement*, HTMLElement* beforeElement, ExceptionState&);
66 void addBeforeOptionAtIndex(HTMLElement*, unsigned beforeIndex, ExceptionSta te&);
tkent 2014/03/27 01:18:53 Is ImplementedAs necessary? Doesn't an overload a
keishi 2014/03/27 06:06:53 I tried that and the compiler said it doesn't know
66 67
67 using Node::remove; 68 using Node::remove;
68 void remove(int index); 69 void remove(int index);
69 70
70 String value() const; 71 String value() const;
71 void setValue(const String&); 72 void setValue(const String&);
72 String suggestedValue() const; 73 String suggestedValue() const;
73 void setSuggestedValue(const String&); 74 void setSuggestedValue(const String&);
74 75
75 PassRefPtr<HTMLOptionsCollection> options(); 76 PassRefPtr<HTMLOptionsCollection> options();
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 bool m_isProcessingUserDrivenChange; 208 bool m_isProcessingUserDrivenChange;
208 bool m_multiple; 209 bool m_multiple;
209 bool m_activeSelectionState; 210 bool m_activeSelectionState;
210 mutable bool m_shouldRecalcListItems; 211 mutable bool m_shouldRecalcListItems;
211 int m_suggestedIndex; 212 int m_suggestedIndex;
212 }; 213 };
213 214
214 } // namespace 215 } // namespace
215 216
216 #endif 217 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698