OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |