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

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

Issue 2174303002: Move filtering logic in GetDataListSuggestions() to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move implementation to HTMLInputElement Created 4 years, 4 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void onSearch(); 201 void onSearch();
202 202
203 void updateClearButtonVisibility(); 203 void updateClearButtonVisibility();
204 204
205 bool willRespondToMouseClickEvents() override; 205 bool willRespondToMouseClickEvents() override;
206 206
207 HTMLElement* list() const; 207 HTMLElement* list() const;
208 HTMLDataListElement* dataList() const; 208 HTMLDataListElement* dataList() const;
209 bool hasValidDataListOptions() const; 209 bool hasValidDataListOptions() const;
210 void listAttributeTargetChanged(); 210 void listAttributeTargetChanged();
211 // Associated <datalsit> options which match to the current INPUT value.
vabr (Chromium) 2016/07/26 12:05:03 typo: datalsit -> datalist
212 HeapVector<Member<HTMLOptionElement>> filteredDataListOptions() const;
211 213
212 HTMLInputElement* checkedRadioButtonForGroup(); 214 HTMLInputElement* checkedRadioButtonForGroup();
213 bool isInRequiredRadioButtonGroup(); 215 bool isInRequiredRadioButtonGroup();
214 216
215 // Functions for InputType classes. 217 // Functions for InputType classes.
216 void setValueInternal(const String&, TextFieldEventBehavior); 218 void setValueInternal(const String&, TextFieldEventBehavior);
217 bool valueAttributeWasUpdatedAfterParsing() const { return m_valueAttributeW asUpdatedAfterParsing; } 219 bool valueAttributeWasUpdatedAfterParsing() const { return m_valueAttributeW asUpdatedAfterParsing; }
218 void updateView(); 220 void updateView();
219 bool needsToUpdateViewValue() const { return m_needsToUpdateViewValue; } 221 bool needsToUpdateViewValue() const { return m_needsToUpdateViewValue; }
220 void setInnerEditorValue(const String&) override; 222 void setInnerEditorValue(const String&) override;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // The ImageLoader must be owned by this element because the loader code ass umes 404 // The ImageLoader must be owned by this element because the loader code ass umes
403 // that it lives as long as its owning element lives. If we move the loader into 405 // that it lives as long as its owning element lives. If we move the loader into
404 // the ImageInput object we may delete the loader while this element lives o n. 406 // the ImageInput object we may delete the loader while this element lives o n.
405 Member<HTMLImageLoader> m_imageLoader; 407 Member<HTMLImageLoader> m_imageLoader;
406 Member<ListAttributeTargetObserver> m_listAttributeTargetObserver; 408 Member<ListAttributeTargetObserver> m_listAttributeTargetObserver;
407 }; 409 };
408 410
409 } // namespace blink 411 } // namespace blink
410 412
411 #endif // HTMLInputElement_h 413 #endif // HTMLInputElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698