Chromium Code Reviews| Index: Source/core/html/HTMLSelectElement.h |
| diff --git a/Source/core/html/HTMLSelectElement.h b/Source/core/html/HTMLSelectElement.h |
| index 2f1f0e239c0aedc5dc5ebd5089297212c4502396..f932d635ff889063ac8e6c1ef0efc3fc48fb2d76 100644 |
| --- a/Source/core/html/HTMLSelectElement.h |
| +++ b/Source/core/html/HTMLSelectElement.h |
| @@ -44,6 +44,8 @@ public: |
| int selectedIndex() const; |
| void setSelectedIndex(int); |
| + int suggestedIndex() const; |
| + void setSuggestedIndex(int); |
| void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMultipleSelection = false); |
| @@ -67,6 +69,8 @@ public: |
| String value() const; |
| void setValue(const String&); |
| + String suggestedValue() const; |
| + void setSuggestedValue(const String&); |
| PassRefPtr<HTMLOptionsCollection> options(); |
| PassRefPtr<HTMLCollection> selectedOptions(); |
| @@ -204,6 +208,8 @@ private: |
| bool m_multiple; |
| bool m_activeSelectionState; |
| mutable bool m_shouldRecalcListItems; |
| + |
| + int m_suggestedIndex; |
|
tkent
2014/03/18 13:56:26
This should be initialized in the constructor.
ziran.sun
2014/03/18 14:06:40
Done.
|
| }; |
| } // namespace |