| 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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 if (m_webView->client()) | 831 if (m_webView->client()) |
| 832 m_webView->client()->didUpdateTextOfFocusedElementByNonUserInput(); | 832 m_webView->client()->didUpdateTextOfFocusedElementByNonUserInput(); |
| 833 } | 833 } |
| 834 | 834 |
| 835 void ChromeClientImpl::showImeIfNeeded() | 835 void ChromeClientImpl::showImeIfNeeded() |
| 836 { | 836 { |
| 837 if (m_webView->client()) | 837 if (m_webView->client()) |
| 838 m_webView->client()->showImeIfNeeded(); | 838 m_webView->client()->showImeIfNeeded(); |
| 839 } | 839 } |
| 840 | 840 |
| 841 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPosition, Node*
tappedNode, bool pageChanged) | 841 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPositionInViewp
ort, Node* tappedNode, bool pageChanged) |
| 842 { | 842 { |
| 843 if (m_webView->client()) | 843 if (m_webView->client()) |
| 844 m_webView->client()->showUnhandledTapUIIfNeeded(WebPoint(tappedPosition)
, WebNode(tappedNode), pageChanged); | 844 m_webView->client()->showUnhandledTapUIIfNeeded(WebPoint(tappedPositionI
nViewport), WebNode(tappedNode), pageChanged); |
| 845 } | 845 } |
| 846 | 846 |
| 847 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle
ment, KeyboardEvent& event) | 847 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle
ment, KeyboardEvent& event) |
| 848 { | 848 { |
| 849 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu
ment().frame()); | 849 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu
ment().frame()); |
| 850 if (webframe->autofillClient()) | 850 if (webframe->autofillClient()) |
| 851 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(&
inputElement), WebKeyboardEventBuilder(event)); | 851 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(&
inputElement), WebKeyboardEventBuilder(event)); |
| 852 } | 852 } |
| 853 | 853 |
| 854 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element
) | 854 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element
) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 884 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie
w->pinchVirtualViewportEnabled()) | 884 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie
w->pinchVirtualViewportEnabled()) |
| 885 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); | 885 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); |
| 886 } | 886 } |
| 887 | 887 |
| 888 void ChromeClientImpl::didUpdateTopControls() const | 888 void ChromeClientImpl::didUpdateTopControls() const |
| 889 { | 889 { |
| 890 m_webView->didUpdateTopControls(); | 890 m_webView->didUpdateTopControls(); |
| 891 } | 891 } |
| 892 | 892 |
| 893 } // namespace blink | 893 } // namespace blink |
| OLD | NEW |