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

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

Issue 541693003: HTMLSelectElement does not include selected index/indices while saving state (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 void parseMultipleAttribute(const AtomicString&); 183 void parseMultipleAttribute(const AtomicString&);
184 int lastSelectedListIndex() const; 184 int lastSelectedListIndex() const;
185 void updateSelectedState(int listIndex, bool multi, bool shift); 185 void updateSelectedState(int listIndex, bool multi, bool shift);
186 void menuListDefaultEventHandler(Event*); 186 void menuListDefaultEventHandler(Event*);
187 void handlePopupOpenKeyboardEvent(Event*); 187 void handlePopupOpenKeyboardEvent(Event*);
188 bool shouldOpenPopupForKeyDownEvent(KeyboardEvent*); 188 bool shouldOpenPopupForKeyDownEvent(KeyboardEvent*);
189 bool shouldOpenPopupForKeyPressEvent(KeyboardEvent*); 189 bool shouldOpenPopupForKeyPressEvent(KeyboardEvent*);
190 void listBoxDefaultEventHandler(Event*); 190 void listBoxDefaultEventHandler(Event*);
191 void setOptionsChangedOnRenderer(); 191 void setOptionsChangedOnRenderer();
192 size_t searchOptionsForValue(const String&, size_t listIndexStart, size_t li stIndexEnd) const; 192 size_t searchOptionsForValue(const String&, size_t listIndexStart, size_t li stIndexEnd) const;
193 String valueAtIndex(size_t index) const;
193 194
194 enum SkipDirection { 195 enum SkipDirection {
195 SkipBackwards = -1, 196 SkipBackwards = -1,
196 SkipForwards = 1 197 SkipForwards = 1
197 }; 198 };
198 int nextValidIndex(int listIndex, SkipDirection, int skip) const; 199 int nextValidIndex(int listIndex, SkipDirection, int skip) const;
199 int nextSelectableListIndex(int startIndex) const; 200 int nextSelectableListIndex(int startIndex) const;
200 int previousSelectableListIndex(int startIndex) const; 201 int previousSelectableListIndex(int startIndex) const;
201 int firstSelectableListIndex() const; 202 int firstSelectableListIndex() const;
202 int lastSelectableListIndex() const; 203 int lastSelectableListIndex() const;
(...skipping 23 matching lines...) Expand all
226 bool m_isProcessingUserDrivenChange; 227 bool m_isProcessingUserDrivenChange;
227 bool m_multiple; 228 bool m_multiple;
228 bool m_activeSelectionState; 229 bool m_activeSelectionState;
229 mutable bool m_shouldRecalcListItems; 230 mutable bool m_shouldRecalcListItems;
230 int m_suggestedIndex; 231 int m_suggestedIndex;
231 }; 232 };
232 233
233 } // namespace blink 234 } // namespace blink
234 235
235 #endif // HTMLSelectElement_h 236 #endif // HTMLSelectElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698