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

Side by Side Diff: Source/core/html/HTMLInputElement.cpp

Issue 513783002: Dispatch change event for input type=color when colorpicker is closed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added didEndChooser in InputType to avoid static cast 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 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 } 1475 }
1476 1476
1477 void HTMLInputElement::selectColorInColorChooser(const Color& color) 1477 void HTMLInputElement::selectColorInColorChooser(const Color& color)
1478 { 1478 {
1479 // FIXME: Remove type check and static_cast. 1479 // FIXME: Remove type check and static_cast.
1480 if (type() != InputTypeNames::color) 1480 if (type() != InputTypeNames::color)
1481 return; 1481 return;
1482 static_cast<ColorInputType*>(m_inputType.get())->didChooseColor(color); 1482 static_cast<ColorInputType*>(m_inputType.get())->didChooseColor(color);
1483 } 1483 }
1484 1484
1485 void HTMLInputElement::endColorChooser()
1486 {
1487 m_inputType->didEndChooser();
keishi 2014/09/18 13:16:01 nit: Now I realize this seems unfortunate. I see t
Habib Virji 2014/09/18 14:54:26 This does not hold true, " ColorChooserClient* cli
keishi 2014/09/19 03:04:12 I was thinking, ColorInputType is a ColorChooserCl
Habib Virji 2014/09/19 09:15:56 Sorry, still not clear. Yes ColorInputType is de
keishi 2014/09/22 09:58:36 Yes I am proposing that you add it.
Habib Virji 2014/09/22 13:44:39 Done.
1488 }
1489
1485 HTMLElement* HTMLInputElement::list() const 1490 HTMLElement* HTMLInputElement::list() const
1486 { 1491 {
1487 return dataList(); 1492 return dataList();
1488 } 1493 }
1489 1494
1490 HTMLDataListElement* HTMLInputElement::dataList() const 1495 HTMLDataListElement* HTMLInputElement::dataList() const
1491 { 1496 {
1492 if (!m_hasNonEmptyList) 1497 if (!m_hasNonEmptyList)
1493 return 0; 1498 return 0;
1494 1499
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 { 1799 {
1795 listAttributeTargetChanged(); 1800 listAttributeTargetChanged();
1796 } 1801 }
1797 1802
1798 AXObject* HTMLInputElement::popupRootAXObject() 1803 AXObject* HTMLInputElement::popupRootAXObject()
1799 { 1804 {
1800 return m_inputTypeView->popupRootAXObject(); 1805 return m_inputTypeView->popupRootAXObject();
1801 } 1806 }
1802 1807
1803 } // namespace 1808 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698