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

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

Issue 2315223003: Move didUpdateTextOfFocusedElementByNonUserInput from WebViewClient to WebWidgetClient. (Closed)
Patch Set: Created 4 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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 1039
1040 void HTMLInputElement::setValueInternal(const String& sanitizedValue, TextFieldE ventBehavior eventBehavior) 1040 void HTMLInputElement::setValueInternal(const String& sanitizedValue, TextFieldE ventBehavior eventBehavior)
1041 { 1041 {
1042 m_valueIfDirty = sanitizedValue; 1042 m_valueIfDirty = sanitizedValue;
1043 setNeedsValidityCheck(); 1043 setNeedsValidityCheck();
1044 if (m_inputType->isSteppable()) { 1044 if (m_inputType->isSteppable()) {
1045 pseudoStateChanged(CSSSelector::PseudoInRange); 1045 pseudoStateChanged(CSSSelector::PseudoInRange);
1046 pseudoStateChanged(CSSSelector::PseudoOutOfRange); 1046 pseudoStateChanged(CSSSelector::PseudoOutOfRange);
1047 } 1047 }
1048 if (document().focusedElement() == this) 1048 if (document().focusedElement() == this)
1049 document().frameHost()->chromeClient().didUpdateTextOfFocusedElementByNo nUserInput(); 1049 document().frameHost()->chromeClient().didUpdateTextOfFocusedElementByNo nUserInput(*document().frame());
1050 } 1050 }
1051 1051
1052 void HTMLInputElement::updateView() 1052 void HTMLInputElement::updateView()
1053 { 1053 {
1054 m_inputTypeView->updateView(); 1054 m_inputTypeView->updateView();
1055 } 1055 }
1056 1056
1057 double HTMLInputElement::valueAsDate(bool& isNull) const 1057 double HTMLInputElement::valueAsDate(bool& isNull) const
1058 { 1058 {
1059 double date = m_inputType->valueAsDate(); 1059 double date = m_inputType->valueAsDate();
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 { 1908 {
1909 return m_inputTypeView->hasFallbackContent(); 1909 return m_inputTypeView->hasFallbackContent();
1910 } 1910 }
1911 1911
1912 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) 1912 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths)
1913 { 1913 {
1914 return m_inputType->setFilesFromPaths(paths); 1914 return m_inputType->setFilesFromPaths(paths);
1915 } 1915 }
1916 1916
1917 } // namespace blink 1917 } // namespace blink
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698