Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 1055683003: (NOT FOR REVIEW) Distinguish between touch and touchmove handler presence (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix loading Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698