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

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

Issue 2146243002: Remove HTMLSelectElement::optionSelectedByUser(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | third_party/WebKit/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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 void saveLastSelection(); 212 void saveLastSelection();
213 void saveListboxActiveSelection(); 213 void saveListboxActiveSelection();
214 // Returns the first selected OPTION, or nullptr. 214 // Returns the first selected OPTION, or nullptr.
215 HTMLOptionElement* selectedOption() const; 215 HTMLOptionElement* selectedOption() const;
216 216
217 bool isOptionalFormControl() const override { return !isRequiredFormControl( ); } 217 bool isOptionalFormControl() const override { return !isRequiredFormControl( ); }
218 bool isRequiredFormControl() const override; 218 bool isRequiredFormControl() const override;
219 219
220 bool hasPlaceholderLabelOption() const; 220 bool hasPlaceholderLabelOption() const;
221 221
222 void optionSelectedByUser(int optionIndex, bool dispatchChangeEvent);
223 enum SelectOptionFlag { 222 enum SelectOptionFlag {
224 DeselectOtherOptions = 1 << 0, 223 DeselectOtherOptions = 1 << 0,
225 DispatchInputAndChangeEvent = 1 << 1, 224 DispatchInputAndChangeEvent = 1 << 1,
226 MakeOptionDirty = 1 << 2, 225 MakeOptionDirty = 1 << 2,
227 }; 226 };
228 typedef unsigned SelectOptionFlags; 227 typedef unsigned SelectOptionFlags;
229 void selectOption(HTMLOptionElement*, SelectOptionFlags); 228 void selectOption(HTMLOptionElement*, SelectOptionFlags);
230 void deselectItemsWithoutValidation(HTMLOptionElement* elementToExclude = nu llptr); 229 void deselectItemsWithoutValidation(HTMLOptionElement* elementToExclude = nu llptr);
231 void parseMultipleAttribute(const AtomicString&); 230 void parseMultipleAttribute(const AtomicString&);
232 HTMLOptionElement* lastSelectedOption() const; 231 HTMLOptionElement* lastSelectedOption() const;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 291
293 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption); 292 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption);
294 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption); 293 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption);
295 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption); 294 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption);
296 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption); 295 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption);
297 }; 296 };
298 297
299 } // namespace blink 298 } // namespace blink
300 299
301 #endif // HTMLSelectElement_h 300 #endif // HTMLSelectElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698