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

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

Issue 368023003: Popup open and hide using Alt+KeyDown (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: "Build fix" Created 6 years, 5 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLSelectElement.cpp » ('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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 DispatchInputAndChangeEvent = 1 << 1, 167 DispatchInputAndChangeEvent = 1 << 1,
168 UserDriven = 1 << 2, 168 UserDriven = 1 << 2,
169 }; 169 };
170 typedef unsigned SelectOptionFlags; 170 typedef unsigned SelectOptionFlags;
171 void selectOption(int optionIndex, SelectOptionFlags = 0); 171 void selectOption(int optionIndex, SelectOptionFlags = 0);
172 void deselectItemsWithoutValidation(HTMLElement* elementToExclude = 0); 172 void deselectItemsWithoutValidation(HTMLElement* elementToExclude = 0);
173 void parseMultipleAttribute(const AtomicString&); 173 void parseMultipleAttribute(const AtomicString&);
174 int lastSelectedListIndex() const; 174 int lastSelectedListIndex() const;
175 void updateSelectedState(int listIndex, bool multi, bool shift); 175 void updateSelectedState(int listIndex, bool multi, bool shift);
176 void menuListDefaultEventHandler(Event*); 176 void menuListDefaultEventHandler(Event*);
177 bool platformHandleKeydownEvent(KeyboardEvent*); 177 void handlePopupOpenKeyboardEvent(Event*);
178 bool shouldOpenPopupForKeyDownEvent(KeyboardEvent*);
179 bool shouldOpenPopupForKeyPressEvent(KeyboardEvent*);
178 void listBoxDefaultEventHandler(Event*); 180 void listBoxDefaultEventHandler(Event*);
179 void setOptionsChangedOnRenderer(); 181 void setOptionsChangedOnRenderer();
180 size_t searchOptionsForValue(const String&, size_t listIndexStart, size_t li stIndexEnd) const; 182 size_t searchOptionsForValue(const String&, size_t listIndexStart, size_t li stIndexEnd) const;
181 183
182 enum SkipDirection { 184 enum SkipDirection {
183 SkipBackwards = -1, 185 SkipBackwards = -1,
184 SkipForwards = 1 186 SkipForwards = 1
185 }; 187 };
186 int nextValidIndex(int listIndex, SkipDirection, int skip) const; 188 int nextValidIndex(int listIndex, SkipDirection, int skip) const;
187 int nextSelectableListIndex(int startIndex) const; 189 int nextSelectableListIndex(int startIndex) const;
(...skipping 23 matching lines...) Expand all
211 bool m_isProcessingUserDrivenChange; 213 bool m_isProcessingUserDrivenChange;
212 bool m_multiple; 214 bool m_multiple;
213 bool m_activeSelectionState; 215 bool m_activeSelectionState;
214 mutable bool m_shouldRecalcListItems; 216 mutable bool m_shouldRecalcListItems;
215 int m_suggestedIndex; 217 int m_suggestedIndex;
216 }; 218 };
217 219
218 } // namespace 220 } // namespace
219 221
220 #endif 222 #endif
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698