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

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

Issue 15376006: Added window.internals.isColorChooserShown() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
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 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 m_inputType->requiredAttributeChanged(); 1480 m_inputType->requiredAttributeChanged();
1481 } 1481 }
1482 1482
1483 #if ENABLE(INPUT_TYPE_COLOR) 1483 #if ENABLE(INPUT_TYPE_COLOR)
1484 void HTMLInputElement::selectColorInColorChooser(const Color& color) 1484 void HTMLInputElement::selectColorInColorChooser(const Color& color)
1485 { 1485 {
1486 if (!m_inputType->isColorControl()) 1486 if (!m_inputType->isColorControl())
1487 return; 1487 return;
1488 static_cast<ColorInputType*>(m_inputType.get())->didChooseColor(color); 1488 static_cast<ColorInputType*>(m_inputType.get())->didChooseColor(color);
1489 } 1489 }
1490
1491 bool HTMLInputElement::isColorChooserShown() const
1492 {
1493 if (!m_inputType->isColorControl())
keishi 2013/05/21 05:20:54 We decided not to branch depending on type inside
Hajime Morrita 2013/05/21 06:11:23 OK, let me do that.
1494 return false;
1495 return static_cast<ColorInputType*>(m_inputType.get())->hasChooser();
1496 }
1490 #endif 1497 #endif
1491 1498
1492 #if ENABLE(DATALIST_ELEMENT) 1499 #if ENABLE(DATALIST_ELEMENT)
1493 HTMLElement* HTMLInputElement::list() const 1500 HTMLElement* HTMLInputElement::list() const
1494 { 1501 {
1495 return dataList(); 1502 return dataList();
1496 } 1503 }
1497 1504
1498 HTMLDataListElement* HTMLInputElement::dataList() const 1505 HTMLDataListElement* HTMLInputElement::dataList() const
1499 { 1506 {
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1882 } 1889 }
1883 1890
1884 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 1891 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
1885 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() 1892 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer()
1886 { 1893 {
1887 return m_inputType->customStyleForRenderer(document()->styleResolver()->styl eForElement(this)); 1894 return m_inputType->customStyleForRenderer(document()->styleResolver()->styl eForElement(this));
1888 } 1895 }
1889 #endif 1896 #endif
1890 1897
1891 } // namespace 1898 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698