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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 m_webView->mainFrame()->addMessageToConsole(WebConsoleMessage(WebConsoleMess
age::LevelError, message)); | 839 m_webView->mainFrame()->addMessageToConsole(WebConsoleMessage(WebConsoleMess
age::LevelError, message)); |
840 | 840 |
841 return false; | 841 return false; |
842 } | 842 } |
843 | 843 |
844 void ChromeClientImpl::needTouchEvents(bool needsTouchEvents) | 844 void ChromeClientImpl::needTouchEvents(bool needsTouchEvents) |
845 { | 845 { |
846 m_webView->hasTouchEventHandlers(needsTouchEvents); | 846 m_webView->hasTouchEventHandlers(needsTouchEvents); |
847 } | 847 } |
848 | 848 |
| 849 void ChromeClientImpl::needTouchMoveEvents(bool needsTouchMoveEvents) |
| 850 { |
| 851 m_webView->hasTouchMoveEventHandlers(needsTouchMoveEvents); |
| 852 } |
| 853 |
849 void ChromeClientImpl::setTouchAction(TouchAction touchAction) | 854 void ChromeClientImpl::setTouchAction(TouchAction touchAction) |
850 { | 855 { |
851 if (WebViewClient* client = m_webView->client()) | 856 if (WebViewClient* client = m_webView->client()) |
852 client->setTouchAction(static_cast<WebTouchAction>(touchAction)); | 857 client->setTouchAction(static_cast<WebTouchAction>(touchAction)); |
853 } | 858 } |
854 | 859 |
855 bool ChromeClientImpl::requestPointerLock() | 860 bool ChromeClientImpl::requestPointerLock() |
856 { | 861 { |
857 return m_webView->requestPointerLock(); | 862 return m_webView->requestPointerLock(); |
858 } | 863 } |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 for (const auto& observer : observers) | 991 for (const auto& observer : observers) |
987 observer->willOpenPopup(); | 992 observer->willOpenPopup(); |
988 } | 993 } |
989 | 994 |
990 FloatSize ChromeClientImpl::elasticOverscroll() const | 995 FloatSize ChromeClientImpl::elasticOverscroll() const |
991 { | 996 { |
992 return m_webView->elasticOverscroll(); | 997 return m_webView->elasticOverscroll(); |
993 } | 998 } |
994 | 999 |
995 } // namespace blink | 1000 } // namespace blink |
OLD | NEW |