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

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: 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 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 frame->spellChecker().didEndEditingOnTextField(this); 381 frame->spellChecker().didEndEditingOnTextField(this);
382 frame->host()->chrome().client().didEndEditingOnTextField(*this); 382 frame->host()->chrome().client().didEndEditingOnTextField(*this);
383 } 383 }
384 384
385 void HTMLInputElement::handleFocusEvent(Element* oldFocusedElement, FocusType ty pe) 385 void HTMLInputElement::handleFocusEvent(Element* oldFocusedElement, FocusType ty pe)
386 { 386 {
387 m_inputTypeView->handleFocusEvent(oldFocusedElement, type); 387 m_inputTypeView->handleFocusEvent(oldFocusedElement, type);
388 m_inputType->enableSecureTextInput(); 388 m_inputType->enableSecureTextInput();
389 } 389 }
390 390
391 void HTMLInputElement::handleFocusInEvent(Element* oldFocusedElement, FocusType type)
392 {
393 m_inputTypeView->handleFocusInEvent(oldFocusedElement, type);
394 }
395
391 void HTMLInputElement::handleBlurEvent() 396 void HTMLInputElement::handleBlurEvent()
392 { 397 {
393 m_inputType->disableSecureTextInput(); 398 m_inputType->disableSecureTextInput();
394 m_inputTypeView->handleBlurEvent(); 399 m_inputTypeView->handleBlurEvent();
395 } 400 }
396 401
397 void HTMLInputElement::setType(const AtomicString& type) 402 void HTMLInputElement::setType(const AtomicString& type)
398 { 403 {
399 setAttribute(typeAttr, type); 404 setAttribute(typeAttr, type);
400 } 405 }
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 { 1899 {
1895 listAttributeTargetChanged(); 1900 listAttributeTargetChanged();
1896 } 1901 }
1897 1902
1898 AXObject* HTMLInputElement::popupRootAXObject() 1903 AXObject* HTMLInputElement::popupRootAXObject()
1899 { 1904 {
1900 return m_inputTypeView->popupRootAXObject(); 1905 return m_inputTypeView->popupRootAXObject();
1901 } 1906 }
1902 1907
1903 } // namespace 1908 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698