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

Unified Diff: Source/web/tests/WebViewTest.cpp

Issue 133443011: Add text field change handling for autofill preview in textarea element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update documentation as per tkent's review comments Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebInputElement.cpp ('k') | public/web/WebAutofillClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebViewTest.cpp
diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp
index 17f20ee5eb6c2677056f97ff6d0531ef7e65ae74..bb56f5ef6cfd457eed2d79bbcaa07f2312a8f80d 100644
--- a/Source/web/tests/WebViewTest.cpp
+++ b/Source/web/tests/WebViewTest.cpp
@@ -1129,6 +1129,8 @@ public:
virtual ~MockAutofillClient() { }
virtual void setIgnoreTextChanges(bool ignore) OVERRIDE { m_ignoreTextChanges = ignore; }
+ // FIXME: This function is to be removed once both chromium and blink changes
+ // for BUG332557 are in.
virtual void textFieldDidChange(const WebInputElement&) OVERRIDE
{
if (m_ignoreTextChanges)
@@ -1136,6 +1138,13 @@ public:
else
++m_textChangesWhileNotIgnored;
}
+ virtual void textFieldDidChange(const WebFormControlElement&) OVERRIDE
+ {
+ if (m_ignoreTextChanges)
+ ++m_textChangesWhileIgnored;
+ else
+ ++m_textChangesWhileNotIgnored;
+ }
void clearChangeCounts()
{
« no previous file with comments | « Source/web/WebInputElement.cpp ('k') | public/web/WebAutofillClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698