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

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

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.h
diff --git a/Source/core/html/HTMLTextFormControlElement.h b/Source/core/html/HTMLTextFormControlElement.h
index e27eabcf5a3ad2b1c1a7b4c4d34982ab353d83d2..bc130b0ff2a64b9320ffffd23df44b121aaefee0 100644
--- a/Source/core/html/HTMLTextFormControlElement.h
+++ b/Source/core/html/HTMLTextFormControlElement.h
@@ -133,6 +133,7 @@ private:
virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusType) OVERRIDE FINAL;
virtual void dispatchBlurEvent(Element* newFocusedElement) OVERRIDE FINAL;
+ virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocusedElement, FocusType) OVERRIDE FINAL;
// Returns true if user-editable value is empty. Used to check placeholder visibility.
virtual bool isEmptyValue() const = 0;
@@ -142,6 +143,8 @@ private:
virtual void handleFocusEvent(Element* /* oldFocusedNode */, FocusType) { }
// Called in dispatchBlurEvent(), after placeholder process, before calling parent's dispatchBlurEvent().
virtual void handleBlurEvent() { }
+ // Called in dispatchFocusInEvent(), before calling parent's dispatchFocusInEvent().
+ virtual void handleFocusInEvent(Element* /* oldFocusedNode */, FocusType) { }
String m_textAsOfLastFormControlChangeEvent;
bool m_lastChangeWasUserEdit;

Powered by Google App Engine
This is Rietveld 408576698