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

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

Issue 736883002: Implement <select> Popup Menu using PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests for mac Created 5 years, 10 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
« no previous file with comments | « Source/core/html/HTMLOptionElement.cpp ('k') | Source/core/html/forms/PopupMenuClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected); 119 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected);
120 void optionInserted(const HTMLOptionElement&, bool optionIsSelected); 120 void optionInserted(const HTMLOptionElement&, bool optionIsSelected);
121 void optionRemoved(const HTMLOptionElement&); 121 void optionRemoved(const HTMLOptionElement&);
122 bool anonymousIndexedSetter(unsigned, PassRefPtrWillBeRawPtr<HTMLOptionEleme nt>, ExceptionState&); 122 bool anonymousIndexedSetter(unsigned, PassRefPtrWillBeRawPtr<HTMLOptionEleme nt>, ExceptionState&);
123 123
124 void updateListOnRenderer(); 124 void updateListOnRenderer();
125 125
126 HTMLOptionElement* spatialNavigationFocusedOption(); 126 HTMLOptionElement* spatialNavigationFocusedOption();
127 void handleMouseRelease(); 127 void handleMouseRelease();
128 128
129 int listIndexForOption(const HTMLOptionElement&);
130
129 virtual void trace(Visitor*) override; 131 virtual void trace(Visitor*) override;
130 132
131 protected: 133 protected:
132 HTMLSelectElement(Document&, HTMLFormElement*); 134 HTMLSelectElement(Document&, HTMLFormElement*);
133 135
134 private: 136 private:
135 virtual const AtomicString& formControlType() const override; 137 virtual const AtomicString& formControlType() const override;
136 138
137 virtual bool shouldShowFocusRingOnMouseFocus() const override; 139 virtual bool shouldShowFocusRingOnMouseFocus() const override;
138 140
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 SkipBackwards = -1, 198 SkipBackwards = -1,
197 SkipForwards = 1 199 SkipForwards = 1
198 }; 200 };
199 int nextValidIndex(int listIndex, SkipDirection, int skip) const; 201 int nextValidIndex(int listIndex, SkipDirection, int skip) const;
200 int nextSelectableListIndex(int startIndex) const; 202 int nextSelectableListIndex(int startIndex) const;
201 int previousSelectableListIndex(int startIndex) const; 203 int previousSelectableListIndex(int startIndex) const;
202 int firstSelectableListIndex() const; 204 int firstSelectableListIndex() const;
203 int lastSelectableListIndex() const; 205 int lastSelectableListIndex() const;
204 int nextSelectableListIndexPageAway(int startIndex, SkipDirection) const; 206 int nextSelectableListIndexPageAway(int startIndex, SkipDirection) const;
205 int listIndexForEventTargetOption(const Event&); 207 int listIndexForEventTargetOption(const Event&);
206 int listIndexForOption(const HTMLOptionElement&);
207 AutoscrollController* autoscrollController() const; 208 AutoscrollController* autoscrollController() const;
208 209
209 virtual void childrenChanged(const ChildrenChange&) override; 210 virtual void childrenChanged(const ChildrenChange&) override;
210 virtual bool areAuthorShadowsAllowed() const override { return false; } 211 virtual bool areAuthorShadowsAllowed() const override { return false; }
211 virtual void finishParsingChildren() override; 212 virtual void finishParsingChildren() override;
212 213
213 // TypeAheadDataSource functions. 214 // TypeAheadDataSource functions.
214 virtual int indexOfSelectedOption() const override; 215 virtual int indexOfSelectedOption() const override;
215 virtual int optionCount() const override; 216 virtual int optionCount() const override;
216 virtual String optionAtIndex(int index) const override; 217 virtual String optionAtIndex(int index) const override;
(...skipping 11 matching lines...) Expand all
228 bool m_multiple; 229 bool m_multiple;
229 bool m_activeSelectionState; 230 bool m_activeSelectionState;
230 mutable bool m_shouldRecalcListItems; 231 mutable bool m_shouldRecalcListItems;
231 int m_suggestedIndex; 232 int m_suggestedIndex;
232 bool m_isAutofilledByPreview; 233 bool m_isAutofilledByPreview;
233 }; 234 };
234 235
235 } // namespace blink 236 } // namespace blink
236 237
237 #endif // HTMLSelectElement_h 238 #endif // HTMLSelectElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLOptionElement.cpp ('k') | Source/core/html/forms/PopupMenuClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698