Index: Source/core/html/HTMLSelectElement.h |
diff --git a/Source/core/html/HTMLSelectElement.h b/Source/core/html/HTMLSelectElement.h |
index 0c1ca809c5373373bb3538187d0536cd6b205aec..4601bee58670f08be755cc7c919a95916abfb60b 100644 |
--- a/Source/core/html/HTMLSelectElement.h |
+++ b/Source/core/html/HTMLSelectElement.h |
@@ -26,6 +26,7 @@ |
#ifndef HTMLSelectElement_h |
#define HTMLSelectElement_h |
+#include "core/html/HTMLContentElement.h" |
#include "core/html/HTMLFormControlElementWithState.h" |
#include "core/html/HTMLOptionsCollection.h" |
#include "core/html/forms/TypeAhead.h" |
@@ -33,8 +34,10 @@ |
namespace WebCore { |
+class AutoscrollController; |
class ExceptionState; |
class HTMLOptionElement; |
+class MouseEvent; |
class HTMLSelectElement FINAL : public HTMLFormControlElementWithState, public TypeAheadDataSource { |
public: |
@@ -97,6 +100,7 @@ public: |
Element* item(unsigned index); |
void scrollToSelection(); |
+ void scrollTo(int listIndex); |
void listBoxSelectItem(int listIndex, bool allowMultiplySelections, bool shift, bool fireOnChangeNow = true); |
@@ -113,10 +117,14 @@ public: |
// For use in the implementation of HTMLOptionElement. |
void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected); |
+ void optionRemoved(const HTMLOptionElement&); |
bool anonymousIndexedSetter(unsigned, PassRefPtrWillBeRawPtr<HTMLOptionElement>, ExceptionState&); |
void updateListOnRenderer(); |
+ HTMLOptionElement* spatialNavigationFocusedOption(); |
+ void handleMouseRelease(); |
+ |
virtual void trace(Visitor*) OVERRIDE; |
protected: |
@@ -145,6 +153,7 @@ private: |
virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
virtual bool appendFormData(FormDataList&, bool) OVERRIDE; |
+ virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE; |
virtual void defaultEventHandler(Event*) OVERRIDE; |
@@ -191,6 +200,9 @@ private: |
int firstSelectableListIndex() const; |
int lastSelectableListIndex() const; |
int nextSelectableListIndexPageAway(int startIndex, SkipDirection) const; |
+ int listIndexForEventTargetOption(const Event&); |
+ int listIndexForOption(const HTMLOptionElement&); |
+ AutoscrollController* autoscrollController() const; |
virtual void childrenChanged(const ChildrenChange&) OVERRIDE; |
virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } |