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

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

Issue 1639363002: Move have_wheel_event_handlers to WebLayerTreeView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove blank line Created 4 years, 10 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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 m_webView->mainFrame()->addMessageToConsole(WebConsoleMessage(WebConsoleMess age::LevelError, message)); 874 m_webView->mainFrame()->addMessageToConsole(WebConsoleMessage(WebConsoleMess age::LevelError, message));
875 875
876 return false; 876 return false;
877 } 877 }
878 878
879 void ChromeClientImpl::needTouchEvents(bool needsTouchEvents) 879 void ChromeClientImpl::needTouchEvents(bool needsTouchEvents)
880 { 880 {
881 m_webView->hasTouchEventHandlers(needsTouchEvents); 881 m_webView->hasTouchEventHandlers(needsTouchEvents);
882 } 882 }
883 883
884 void ChromeClientImpl::setHaveWheelEventHandlers(bool hasEventHandlers)
885 {
886 if (WebLayerTreeView* treeView = m_webView->layerTreeView())
887 treeView->setHaveWheelEventHandlers(hasEventHandlers);
888 }
889
890 bool ChromeClientImpl::haveWheelEventHandlers() const
891 {
892 if (WebLayerTreeView* treeView = m_webView->layerTreeView())
893 return treeView->haveWheelEventHandlers();
894 return false;
895 }
896
884 void ChromeClientImpl::setTouchAction(TouchAction touchAction) 897 void ChromeClientImpl::setTouchAction(TouchAction touchAction)
885 { 898 {
886 if (WebViewClient* client = m_webView->client()) 899 if (WebViewClient* client = m_webView->client())
887 client->setTouchAction(static_cast<WebTouchAction>(touchAction)); 900 client->setTouchAction(static_cast<WebTouchAction>(touchAction));
888 } 901 }
889 902
890 bool ChromeClientImpl::requestPointerLock() 903 bool ChromeClientImpl::requestPointerLock()
891 { 904 {
892 return m_webView->requestPointerLock(); 905 return m_webView->requestPointerLock();
893 } 906 }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 if (m_webView->pageImportanceSignals()) 1045 if (m_webView->pageImportanceSignals())
1033 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); 1046 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript();
1034 } 1047 }
1035 1048
1036 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler() 1049 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler()
1037 { 1050 {
1038 return m_webView->scheduler()->createFrameScheduler().release(); 1051 return m_webView->scheduler()->createFrameScheduler().release();
1039 } 1052 }
1040 1053
1041 } // namespace blink 1054 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698