| 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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 if (m_webView->client()) | 877 if (m_webView->client()) |
| 878 m_webView->client()->showImeIfNeeded(); | 878 m_webView->client()->showImeIfNeeded(); |
| 879 } | 879 } |
| 880 | 880 |
| 881 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPositionInViewp
ort, Node* tappedNode, bool pageChanged) | 881 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPositionInViewp
ort, Node* tappedNode, bool pageChanged) |
| 882 { | 882 { |
| 883 if (m_webView->client()) | 883 if (m_webView->client()) |
| 884 m_webView->client()->showUnhandledTapUIIfNeeded(WebPoint(tappedPositionI
nViewport), WebNode(tappedNode), pageChanged); | 884 m_webView->client()->showUnhandledTapUIIfNeeded(WebPoint(tappedPositionI
nViewport), WebNode(tappedNode), pageChanged); |
| 885 } | 885 } |
| 886 | 886 |
| 887 void ChromeClientImpl::onMouseDown(Node* mouseDownNode) |
| 888 { |
| 889 if (m_webView->client()) |
| 890 m_webView->client()->onMouseDown(WebNode(mouseDownNode)); |
| 891 } |
| 892 |
| 887 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle
ment, KeyboardEvent& event) | 893 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle
ment, KeyboardEvent& event) |
| 888 { | 894 { |
| 889 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu
ment().frame()); | 895 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu
ment().frame()); |
| 890 if (webframe->autofillClient()) | 896 if (webframe->autofillClient()) |
| 891 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(&
inputElement), WebKeyboardEventBuilder(event)); | 897 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(&
inputElement), WebKeyboardEventBuilder(event)); |
| 892 } | 898 } |
| 893 | 899 |
| 894 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element
) | 900 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element
) |
| 895 { | 901 { |
| 896 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document(
).frame()); | 902 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document(
).frame()); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 } | 958 } |
| 953 | 959 |
| 954 void ChromeClientImpl::notifyPopupOpeningObservers() const | 960 void ChromeClientImpl::notifyPopupOpeningObservers() const |
| 955 { | 961 { |
| 956 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); | 962 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); |
| 957 for (const auto& observer : observers) | 963 for (const auto& observer : observers) |
| 958 observer->willOpenPopup(); | 964 observer->willOpenPopup(); |
| 959 } | 965 } |
| 960 | 966 |
| 961 } // namespace blink | 967 } // namespace blink |
| OLD | NEW |