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

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 1345023002: Expose WebPageImportanceSignals to embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/web/WebViewImpl.h » ('j') | Source/web/WebViewImpl.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 if (webframe->autofillClient()) 926 if (webframe->autofillClient())
927 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(& inputElement), WebKeyboardEventBuilder(event)); 927 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(& inputElement), WebKeyboardEventBuilder(event));
928 } 928 }
929 929
930 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element ) 930 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element )
931 { 931 {
932 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document( ).frame()); 932 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document( ).frame());
933 if (webframe->autofillClient()) 933 if (webframe->autofillClient())
934 webframe->autofillClient()->textFieldDidChange(WebFormControlElement(&el ement)); 934 webframe->autofillClient()->textFieldDidChange(WebFormControlElement(&el ement));
935 935
936 m_webView->pageImportanceSignals().setHadFormInteraction(); 936 m_webView->pageImportanceSignals()->setHadFormInteraction();
937 if (m_webView->client())
938 m_webView->client()->pageImportanceSignalsChanged();
tkent 2015/09/15 23:16:42 Can we move the pageImportanceSignalsChanged call
937 } 939 }
938 940
939 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement) 941 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement)
940 { 942 {
941 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame()); 943 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame());
942 if (webframe->autofillClient()) 944 if (webframe->autofillClient())
943 webframe->autofillClient()->textFieldDidEndEditing(WebInputElement(&inpu tElement)); 945 webframe->autofillClient()->textFieldDidEndEditing(WebInputElement(&inpu tElement));
944 } 946 }
945 947
946 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) 948 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 for (const auto& observer : observers) 997 for (const auto& observer : observers)
996 observer->willOpenPopup(); 998 observer->willOpenPopup();
997 } 999 }
998 1000
999 FloatSize ChromeClientImpl::elasticOverscroll() const 1001 FloatSize ChromeClientImpl::elasticOverscroll() const
1000 { 1002 {
1001 return m_webView->elasticOverscroll(); 1003 return m_webView->elasticOverscroll();
1002 } 1004 }
1003 1005
1004 } // namespace blink 1006 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.h » ('j') | Source/web/WebViewImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698