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

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: issue pageImportanceSignalsUpdated from itself 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/WebPageImportanceSignals.cpp » ('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) 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 } 937 }
938 938
939 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement) 939 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement)
940 { 940 {
941 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame()); 941 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame());
942 if (webframe->autofillClient()) 942 if (webframe->autofillClient())
943 webframe->autofillClient()->textFieldDidEndEditing(WebInputElement(&inpu tElement)); 943 webframe->autofillClient()->textFieldDidEndEditing(WebInputElement(&inpu tElement));
944 } 944 }
945 945
946 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) 946 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 for (const auto& observer : observers) 995 for (const auto& observer : observers)
996 observer->willOpenPopup(); 996 observer->willOpenPopup();
997 } 997 }
998 998
999 FloatSize ChromeClientImpl::elasticOverscroll() const 999 FloatSize ChromeClientImpl::elasticOverscroll() const
1000 { 1000 {
1001 return m_webView->elasticOverscroll(); 1001 return m_webView->elasticOverscroll();
1002 } 1002 }
1003 1003
1004 } // namespace blink 1004 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebPageImportanceSignals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698