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