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

Side by Side Diff: Source/core/html/HTMLInputElement.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: Updated to latest master and updated test 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 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, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
8 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 frame->spellChecker().didEndEditingOnTextField(this); 368 frame->spellChecker().didEndEditingOnTextField(this);
369 frame->host()->chrome().client().didEndEditingOnTextField(*this); 369 frame->host()->chrome().client().didEndEditingOnTextField(*this);
370 } 370 }
371 371
372 void HTMLInputElement::handleFocusEvent(Element* oldFocusedElement, FocusType ty pe) 372 void HTMLInputElement::handleFocusEvent(Element* oldFocusedElement, FocusType ty pe)
373 { 373 {
374 m_inputTypeView->handleFocusEvent(oldFocusedElement, type); 374 m_inputTypeView->handleFocusEvent(oldFocusedElement, type);
375 m_inputType->enableSecureTextInput(); 375 m_inputType->enableSecureTextInput();
376 } 376 }
377 377
378 void HTMLInputElement::dispatchFocusInEvent(const AtomicString& eventType, Eleme nt* oldFocusedElement, FocusType type)
379 {
380 if (eventType == EventTypeNames::DOMFocusIn)
381 m_inputTypeView->handleFocusInEvent(oldFocusedElement, type);
382 HTMLFormControlElementWithState::dispatchFocusInEvent(eventType, oldFocusedE lement, type);
383 }
384
378 void HTMLInputElement::handleBlurEvent() 385 void HTMLInputElement::handleBlurEvent()
379 { 386 {
380 m_inputType->disableSecureTextInput(); 387 m_inputType->disableSecureTextInput();
381 m_inputTypeView->handleBlurEvent(); 388 m_inputTypeView->handleBlurEvent();
382 } 389 }
383 390
384 void HTMLInputElement::setType(const AtomicString& type) 391 void HTMLInputElement::setType(const AtomicString& type)
385 { 392 {
386 setAttribute(typeAttr, type); 393 setAttribute(typeAttr, type);
387 } 394 }
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 { 1801 {
1795 listAttributeTargetChanged(); 1802 listAttributeTargetChanged();
1796 } 1803 }
1797 1804
1798 AXObject* HTMLInputElement::popupRootAXObject() 1805 AXObject* HTMLInputElement::popupRootAXObject()
1799 { 1806 {
1800 return m_inputTypeView->popupRootAXObject(); 1807 return m_inputTypeView->popupRootAXObject();
1801 } 1808 }
1802 1809
1803 } // namespace 1810 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698