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

Unified Diff: Source/core/html/HTMLTextFormControlElement.cpp

Issue 541993003: Generate focusin for input type=date/time when selected by tab (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added handleFocusInEvent handler for handling focus event for date/time input type Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLTextFormControlElement.cpp
diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp
index 658ef9df2375ac4015e2f817e6984bd35abc38bf..b832055ec21ff8663a592bfaa32931597fe2e6ec 100644
--- a/Source/core/html/HTMLTextFormControlElement.cpp
+++ b/Source/core/html/HTMLTextFormControlElement.cpp
@@ -95,6 +95,13 @@ void HTMLTextFormControlElement::dispatchBlurEvent(Element* newFocusedElement)
HTMLFormControlElementWithState::dispatchBlurEvent(newFocusedElement);
}
+void HTMLTextFormControlElement::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocusedElement, FocusType type)
tkent 2014/09/09 23:00:08 This function should be moved to HTMLInputElement.
Habib Virji 2014/09/10 10:00:47 Done.
+{
+ if (eventType == EventTypeNames::DOMFocusIn)
+ handleFocusInEvent(oldFocusedElement, type);
tkent 2014/09/09 23:00:07 Move this function to HTMLInputElmenet, and this l
Habib Virji 2014/09/10 10:00:48 Was already part of patch#2.
tkent 2014/09/10 23:47:10 You misunderstood my comment.
Habib Virji 2014/09/11 09:12:22 Done.
+ HTMLFormControlElementWithState::dispatchFocusInEvent(eventType, oldFocusedElement, type);
+}
+
void HTMLTextFormControlElement::defaultEventHandler(Event* event)
{
if (event->type() == EventTypeNames::webkitEditableContentChanged && renderer() && renderer()->isTextControl()) {
« no previous file with comments | « Source/core/html/HTMLTextFormControlElement.h ('k') | Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698