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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 void ChromeClientImpl::showImeIfNeeded() | 828 void ChromeClientImpl::showImeIfNeeded() |
829 { | 829 { |
830 if (m_webView->client()) | 830 if (m_webView->client()) |
831 m_webView->client()->showImeIfNeeded(); | 831 m_webView->client()->showImeIfNeeded(); |
832 } | 832 } |
833 | 833 |
834 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle
ment, KeyboardEvent& event) | 834 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle
ment, KeyboardEvent& event) |
835 { | 835 { |
836 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu
ment().frame()); | 836 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu
ment().frame()); |
837 if (webframe->autofillClient()) | 837 if (webframe->autofillClient()) |
838 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(&
inputElement), WebKeyboardEventBuilder(event)); | 838 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(&
inputElement), WebKeyboardEventBuilder(webframe->frameView(), event)); |
839 } | 839 } |
840 | 840 |
841 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element
) | 841 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element
) |
842 { | 842 { |
843 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document(
).frame()); | 843 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document(
).frame()); |
844 if (webframe->autofillClient()) | 844 if (webframe->autofillClient()) |
845 webframe->autofillClient()->textFieldDidChange(WebFormControlElement(&el
ement)); | 845 webframe->autofillClient()->textFieldDidChange(WebFormControlElement(&el
ement)); |
846 } | 846 } |
847 | 847 |
848 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement) | 848 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement) |
(...skipping 11 matching lines...) Expand all Loading... |
860 } | 860 } |
861 | 861 |
862 void ChromeClientImpl::textFieldDataListChanged(HTMLInputElement& input) | 862 void ChromeClientImpl::textFieldDataListChanged(HTMLInputElement& input) |
863 { | 863 { |
864 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(input.document().
frame()); | 864 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(input.document().
frame()); |
865 if (webframe->autofillClient()) | 865 if (webframe->autofillClient()) |
866 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu
t)); | 866 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu
t)); |
867 } | 867 } |
868 | 868 |
869 } // namespace blink | 869 } // namespace blink |
OLD | NEW |