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 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1700 { | 1700 { |
1701 return m_inputType->defaultToolTip(); | 1701 return m_inputType->defaultToolTip(); |
1702 } | 1702 } |
1703 | 1703 |
1704 bool HTMLInputElement::shouldAppearIndeterminate() const | 1704 bool HTMLInputElement::shouldAppearIndeterminate() const |
1705 { | 1705 { |
1706 return m_inputType->supportsIndeterminateAppearance() && indeterminate(); | 1706 return m_inputType->supportsIndeterminateAppearance() && indeterminate(); |
1707 } | 1707 } |
1708 | 1708 |
1709 #if ENABLE(MEDIA_CAPTURE) | 1709 #if ENABLE(MEDIA_CAPTURE) |
1710 String HTMLInputElement::capture() const | 1710 bool HTMLInputElement::isCaptureEnabled() const |
1711 { | 1711 { |
1712 if (!isFileUpload()) | 1712 return fastHasAttribute(captureAttr); |
1713 return String(); | |
1714 | |
1715 String capture = fastGetAttribute(captureAttr).lower(); | |
1716 if (capture == "camera" | |
1717 || capture == "camcorder" | |
1718 || capture == "microphone" | |
1719 || capture == "filesystem") | |
1720 return capture; | |
1721 | |
1722 return "filesystem"; | |
1723 } | 1713 } |
1724 | |
1725 void HTMLInputElement::setCapture(const String& value) | |
1726 { | |
1727 setAttribute(captureAttr, value); | |
1728 } | |
1729 | |
1730 #endif | 1714 #endif |
1731 | 1715 |
1732 bool HTMLInputElement::isInRequiredRadioButtonGroup() | 1716 bool HTMLInputElement::isInRequiredRadioButtonGroup() |
1733 { | 1717 { |
1734 ASSERT(isRadioButton()); | 1718 ASSERT(isRadioButton()); |
1735 if (CheckedRadioButtons* buttons = checkedRadioButtons()) | 1719 if (CheckedRadioButtons* buttons = checkedRadioButtons()) |
1736 return buttons->isInRequiredGroup(this); | 1720 return buttons->isInRequiredGroup(this); |
1737 return false; | 1721 return false; |
1738 } | 1722 } |
1739 | 1723 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1882 } | 1866 } |
1883 | 1867 |
1884 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1868 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
1885 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1869 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
1886 { | 1870 { |
1887 return m_inputType->customStyleForRenderer(document()->styleResolver()->styl
eForElement(this)); | 1871 return m_inputType->customStyleForRenderer(document()->styleResolver()->styl
eForElement(this)); |
1888 } | 1872 } |
1889 #endif | 1873 #endif |
1890 | 1874 |
1891 } // namespace | 1875 } // namespace |
OLD | NEW |