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

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

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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 dispatchChangeEvent(); 337 dispatchChangeEvent();
338 setChangedSinceLastFormControlChangeEvent(false); 338 setChangedSinceLastFormControlChangeEvent(false);
339 } 339 }
340 340
341 void HTMLFormControlElement::dispatchFormControlInputEvent() 341 void HTMLFormControlElement::dispatchFormControlInputEvent()
342 { 342 {
343 setChangedSinceLastFormControlChangeEvent(true); 343 setChangedSinceLastFormControlChangeEvent(true);
344 HTMLElement::dispatchInputEvent(); 344 HTMLElement::dispatchInputEvent();
345 } 345 }
346 346
347 void HTMLFormControlElement::dispatchKeyDownEvent()
348 {
349 dispatchScopedEvent(Event::createBubble(EventTypeNames::keydown));
350 }
351
352 void HTMLFormControlElement::dispatchKeyUpEvent()
353 {
354 dispatchScopedEvent(Event::createBubble(EventTypeNames::keyup));
355 }
356
347 HTMLFormElement* HTMLFormControlElement::formOwner() const 357 HTMLFormElement* HTMLFormControlElement::formOwner() const
348 { 358 {
349 return FormAssociatedElement::form(); 359 return FormAssociatedElement::form();
350 } 360 }
351 361
352 bool HTMLFormControlElement::isDisabledFormControl() const 362 bool HTMLFormControlElement::isDisabledFormControl() const
353 { 363 {
354 if (fastHasAttribute(disabledAttr)) 364 if (fastHasAttribute(disabledAttr))
355 return true; 365 return true;
356 366
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 dispatchFormControlChangeEvent(); 664 dispatchFormControlChangeEvent();
655 } 665 }
656 666
657 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element & source) 667 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element & source)
658 { 668 {
659 HTMLElement::copyNonAttributePropertiesFromElement(source); 669 HTMLElement::copyNonAttributePropertiesFromElement(source);
660 setNeedsValidityCheck(); 670 setNeedsValidityCheck();
661 } 671 }
662 672
663 } // namespace blink 673 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698