Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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::dispatchFocusInEvent(const AtomicString& eventType, Eleme nt* oldFocusedElement, FocusType type) | |
| 392 { | |
| 393 if (eventType == EventTypeNames::DOMFocusIn) | |
| 394 handleFocusInEvent(oldFocusedElement, type); | |
|
tkent
2014/09/10 23:47:11
This line should be replaced with m_inputTypeView-
Habib Virji
2014/09/11 09:12:22
Done.
| |
| 395 HTMLFormControlElementWithState::dispatchFocusInEvent(eventType, oldFocusedE lement, type); | |
| 396 } | |
| 397 | |
| 398 void HTMLInputElement::handleFocusInEvent(Element* oldFocusedElement, FocusType type) | |
|
tkent
2014/09/10 23:47:11
This function is unnecessary.
The function body is
Habib Virji
2014/09/11 09:12:22
Done.
| |
| 399 { | |
| 400 m_inputTypeView->handleFocusInEvent(oldFocusedElement, type); | |
| 401 } | |
| 402 | |
| 391 void HTMLInputElement::handleBlurEvent() | 403 void HTMLInputElement::handleBlurEvent() |
| 392 { | 404 { |
| 393 m_inputType->disableSecureTextInput(); | 405 m_inputType->disableSecureTextInput(); |
| 394 m_inputTypeView->handleBlurEvent(); | 406 m_inputTypeView->handleBlurEvent(); |
| 395 } | 407 } |
| 396 | 408 |
| 397 void HTMLInputElement::setType(const AtomicString& type) | 409 void HTMLInputElement::setType(const AtomicString& type) |
| 398 { | 410 { |
| 399 setAttribute(typeAttr, type); | 411 setAttribute(typeAttr, type); |
| 400 } | 412 } |
| (...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1894 { | 1906 { |
| 1895 listAttributeTargetChanged(); | 1907 listAttributeTargetChanged(); |
| 1896 } | 1908 } |
| 1897 | 1909 |
| 1898 AXObject* HTMLInputElement::popupRootAXObject() | 1910 AXObject* HTMLInputElement::popupRootAXObject() |
| 1899 { | 1911 { |
| 1900 return m_inputTypeView->popupRootAXObject(); | 1912 return m_inputTypeView->popupRootAXObject(); |
| 1901 } | 1913 } |
| 1902 | 1914 |
| 1903 } // namespace | 1915 } // namespace |
| OLD | NEW |