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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 1296533003: Introduce WebPageImportanceSignals to judge state preservation needs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 5 years, 4 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/core/page/ChromeClient.h ('k') | Source/web/WebPageImportanceSignals.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index 89f8b5e98526a93401205233d069222318f93571..e26161ceaf466fb2b32819c7e7cf4fdf4ae556f7 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -905,6 +905,8 @@ void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element
WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document().frame());
if (webframe->autofillClient())
webframe->autofillClient()->textFieldDidChange(WebFormControlElement(&element));
+
+ m_webView->pageImportanceSignals().setHadFormInteraction();
}
void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement)
« no previous file with comments | « Source/core/page/ChromeClient.h ('k') | Source/web/WebPageImportanceSignals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698