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

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

Issue 1955963002: [Autofill] Send events to fields being autofilled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void ancestorDisabledStateWasChanged(); 56 void ancestorDisabledStateWasChanged();
57 57
58 void reset(); 58 void reset();
59 59
60 bool wasChangedSinceLastFormControlChangeEvent() const { return m_wasChanged SinceLastFormControlChangeEvent; } 60 bool wasChangedSinceLastFormControlChangeEvent() const { return m_wasChanged SinceLastFormControlChangeEvent; }
61 void setChangedSinceLastFormControlChangeEvent(bool); 61 void setChangedSinceLastFormControlChangeEvent(bool);
62 62
63 virtual void dispatchFormControlChangeEvent(); 63 virtual void dispatchFormControlChangeEvent();
64 void dispatchChangeEvent(); 64 void dispatchChangeEvent();
65 void dispatchFormControlInputEvent(); 65 void dispatchFormControlInputEvent();
66 void dispatchKeyDownEvent();
tkent 2016/05/09 01:54:21 Can you move these two functions to WebFormControl
sebsg 2016/05/09 22:19:11 Done.
67 void dispatchKeyUpEvent();
66 68
67 HTMLFormElement* formOwner() const final; 69 HTMLFormElement* formOwner() const final;
68 70
69 bool isDisabledFormControl() const override; 71 bool isDisabledFormControl() const override;
70 72
71 bool matchesEnabledPseudoClass() const override; 73 bool matchesEnabledPseudoClass() const override;
72 74
73 bool isEnumeratable() const override { return false; } 75 bool isEnumeratable() const override { return false; }
74 76
75 bool isRequired() const; 77 bool isRequired() const;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 { 197 {
196 return element.isFormControlElement(); 198 return element.isFormControlElement();
197 } 199 }
198 200
199 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 201 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
200 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement()); 202 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement());
201 203
202 } // namespace blink 204 } // namespace blink
203 205
204 #endif 206 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698