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 22 matching lines...) Expand all Loading... |
33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class AutoscrollController; | 37 class AutoscrollController; |
38 class ExceptionState; | 38 class ExceptionState; |
39 class HTMLOptionElement; | 39 class HTMLOptionElement; |
40 class MouseEvent; | 40 class MouseEvent; |
41 | 41 |
42 class HTMLSelectElement FINAL : public HTMLFormControlElementWithState, public T
ypeAheadDataSource { | 42 class HTMLSelectElement FINAL : public HTMLFormControlElementWithState, public T
ypeAheadDataSource { |
| 43 DEFINE_WRAPPERTYPEINFO(); |
43 public: | 44 public: |
44 static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&); | 45 static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&); |
45 static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&, HTMLFormE
lement*); | 46 static PassRefPtrWillBeRawPtr<HTMLSelectElement> create(Document&, HTMLFormE
lement*); |
46 | 47 |
47 int selectedIndex() const; | 48 int selectedIndex() const; |
48 void setSelectedIndex(int); | 49 void setSelectedIndex(int); |
49 int suggestedIndex() const; | 50 int suggestedIndex() const; |
50 void setSuggestedIndex(int); | 51 void setSuggestedIndex(int); |
51 | 52 |
52 void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMul
tipleSelection = false); | 53 void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMul
tipleSelection = false); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 int m_lastOnChangeIndex; | 223 int m_lastOnChangeIndex; |
223 int m_activeSelectionAnchorIndex; | 224 int m_activeSelectionAnchorIndex; |
224 int m_activeSelectionEndIndex; | 225 int m_activeSelectionEndIndex; |
225 bool m_isProcessingUserDrivenChange; | 226 bool m_isProcessingUserDrivenChange; |
226 bool m_multiple; | 227 bool m_multiple; |
227 bool m_activeSelectionState; | 228 bool m_activeSelectionState; |
228 mutable bool m_shouldRecalcListItems; | 229 mutable bool m_shouldRecalcListItems; |
229 int m_suggestedIndex; | 230 int m_suggestedIndex; |
230 }; | 231 }; |
231 | 232 |
232 } // namespace | 233 } // namespace blink |
233 | 234 |
234 #endif | 235 #endif // HTMLSelectElement_h |
OLD | NEW |