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

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

Issue 1646603004: Move scroll event handlers from layer to layer tree view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_cc_listeners
Patch Set: Rebase 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 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 treeView->setHaveWheelEventHandlers(hasEventHandlers); 887 treeView->setHaveWheelEventHandlers(hasEventHandlers);
888 } 888 }
889 889
890 bool ChromeClientImpl::haveWheelEventHandlers() const 890 bool ChromeClientImpl::haveWheelEventHandlers() const
891 { 891 {
892 if (WebLayerTreeView* treeView = m_webView->layerTreeView()) 892 if (WebLayerTreeView* treeView = m_webView->layerTreeView())
893 return treeView->haveWheelEventHandlers(); 893 return treeView->haveWheelEventHandlers();
894 return false; 894 return false;
895 } 895 }
896 896
897 void ChromeClientImpl::setHaveScrollEventHandlers(bool hasEventHandlers)
898 {
899 if (WebLayerTreeView* treeView = m_webView->layerTreeView())
900 treeView->setHaveScrollEventHandlers(hasEventHandlers);
901 }
902
903 bool ChromeClientImpl::haveScrollEventHandlers() const
904 {
905 if (WebLayerTreeView* treeView = m_webView->layerTreeView())
906 return treeView->haveScrollEventHandlers();
907 return false;
908 }
909
897 void ChromeClientImpl::setTouchAction(TouchAction touchAction) 910 void ChromeClientImpl::setTouchAction(TouchAction touchAction)
898 { 911 {
899 if (WebViewClient* client = m_webView->client()) 912 if (WebViewClient* client = m_webView->client())
900 client->setTouchAction(static_cast<WebTouchAction>(touchAction)); 913 client->setTouchAction(static_cast<WebTouchAction>(touchAction));
901 } 914 }
902 915
903 bool ChromeClientImpl::requestPointerLock() 916 bool ChromeClientImpl::requestPointerLock()
904 { 917 {
905 return m_webView->requestPointerLock(); 918 return m_webView->requestPointerLock();
906 } 919 }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 if (m_webView->pageImportanceSignals()) 1058 if (m_webView->pageImportanceSignals())
1046 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); 1059 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript();
1047 } 1060 }
1048 1061
1049 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler() 1062 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler()
1050 { 1063 {
1051 return m_webView->scheduler()->createFrameScheduler().release(); 1064 return m_webView->scheduler()->createFrameScheduler().release();
1052 } 1065 }
1053 1066
1054 } // namespace blink 1067 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698