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

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

Issue 995363002: Implement autocapitalize in Blink to be used by the embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update webexposed tests Created 5 years, 9 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
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLInputElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 } 1694 }
1695 1695
1696 void HTMLInputElement::updateValueIfNeeded() 1696 void HTMLInputElement::updateValueIfNeeded()
1697 { 1697 {
1698 String newValue = sanitizeValue(m_valueIfDirty); 1698 String newValue = sanitizeValue(m_valueIfDirty);
1699 ASSERT(!m_valueIfDirty.isNull() || newValue.isNull()); 1699 ASSERT(!m_valueIfDirty.isNull() || newValue.isNull());
1700 if (newValue != m_valueIfDirty) 1700 if (newValue != m_valueIfDirty)
1701 setValue(newValue); 1701 setValue(newValue);
1702 } 1702 }
1703 1703
1704 bool HTMLInputElement::supportsAutocapitalize() const
1705 {
1706 return m_inputType->supportsAutocapitalize();
1707 }
1708
1709 const AtomicString& HTMLInputElement::defaultAutocapitalize() const
1710 {
1711 return m_inputType->defaultAutocapitalize();
1712 }
1713
1704 String HTMLInputElement::defaultToolTip() const 1714 String HTMLInputElement::defaultToolTip() const
1705 { 1715 {
1706 return m_inputType->defaultToolTip(); 1716 return m_inputType->defaultToolTip();
1707 } 1717 }
1708 1718
1709 bool HTMLInputElement::shouldAppearIndeterminate() const 1719 bool HTMLInputElement::shouldAppearIndeterminate() const
1710 { 1720 {
1711 return m_inputType->shouldAppearIndeterminate(); 1721 return m_inputType->shouldAppearIndeterminate();
1712 } 1722 }
1713 1723
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 void HTMLInputElement::ensurePrimaryContent() 1923 void HTMLInputElement::ensurePrimaryContent()
1914 { 1924 {
1915 m_inputTypeView->ensurePrimaryContent(); 1925 m_inputTypeView->ensurePrimaryContent();
1916 } 1926 }
1917 1927
1918 bool HTMLInputElement::hasFallbackContent() const 1928 bool HTMLInputElement::hasFallbackContent() const
1919 { 1929 {
1920 return m_inputTypeView->hasFallbackContent(); 1930 return m_inputTypeView->hasFallbackContent();
1921 } 1931 }
1922 } // namespace 1932 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLInputElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698