OLD | NEW |
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 66 |
67 using Node::remove; | 67 using Node::remove; |
68 void remove(int index); | 68 void remove(int index); |
69 | 69 |
70 String value() const; | 70 String value() const; |
71 void setValue(const String&); | 71 void setValue(const String&, bool sendEvents = false); |
72 String suggestedValue() const; | 72 String suggestedValue() const; |
73 void setSuggestedValue(const String&); | 73 void setSuggestedValue(const String&); |
74 | 74 |
75 PassRefPtr<HTMLOptionsCollection> options(); | 75 PassRefPtr<HTMLOptionsCollection> options(); |
76 PassRefPtr<HTMLCollection> selectedOptions(); | 76 PassRefPtr<HTMLCollection> selectedOptions(); |
77 | 77 |
78 void optionElementChildrenChanged(); | 78 void optionElementChildrenChanged(); |
79 | 79 |
80 void setRecalcListItems(); | 80 void setRecalcListItems(); |
81 void invalidateSelectedItems(); | 81 void invalidateSelectedItems(); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 virtual void restoreFormControlState(const FormControlState&) OVERRIDE; | 137 virtual void restoreFormControlState(const FormControlState&) OVERRIDE; |
138 | 138 |
139 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 139 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
140 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 140 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
141 | 141 |
142 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 142 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
143 virtual bool appendFormData(FormDataList&, bool) OVERRIDE; | 143 virtual bool appendFormData(FormDataList&, bool) OVERRIDE; |
144 | 144 |
145 virtual void defaultEventHandler(Event*) OVERRIDE; | 145 virtual void defaultEventHandler(Event*) OVERRIDE; |
146 | 146 |
147 void dispatchInputAndChangeEventForMenuList(); | 147 void dispatchInputAndChangeEventForMenuList(bool requiresUserGesture = true)
; |
148 | 148 |
149 void recalcListItems(bool updateSelectedStates = true) const; | 149 void recalcListItems(bool updateSelectedStates = true) const; |
150 | 150 |
151 void typeAheadFind(KeyboardEvent*); | 151 void typeAheadFind(KeyboardEvent*); |
152 void saveLastSelection(); | 152 void saveLastSelection(); |
153 | 153 |
154 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 154 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
155 | 155 |
156 virtual bool isOptionalFormControl() const OVERRIDE { return !isRequiredForm
Control(); } | 156 virtual bool isOptionalFormControl() const OVERRIDE { return !isRequiredForm
Control(); } |
157 virtual bool isRequiredFormControl() const OVERRIDE; | 157 virtual bool isRequiredFormControl() const OVERRIDE; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 bool m_isProcessingUserDrivenChange; | 207 bool m_isProcessingUserDrivenChange; |
208 bool m_multiple; | 208 bool m_multiple; |
209 bool m_activeSelectionState; | 209 bool m_activeSelectionState; |
210 mutable bool m_shouldRecalcListItems; | 210 mutable bool m_shouldRecalcListItems; |
211 int m_suggestedIndex; | 211 int m_suggestedIndex; |
212 }; | 212 }; |
213 | 213 |
214 } // namespace | 214 } // namespace |
215 | 215 |
216 #endif | 216 #endif |
OLD | NEW |