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

Unified Diff: third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp

Issue 2716153003: Removed FrameHost::chromeClient() (Closed)
Patch Set: Small feedback Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
diff --git a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
index 527414bdb6171d987fbd42922d94f26be512f888..a9b0fc809c6a4b989e9661dced56700c7d653db5 100644
--- a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
+++ b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
@@ -213,19 +213,19 @@ void EventHandlerRegistry::notifyHasHandlersChanged(
bool hasActiveHandlers) {
switch (handlerClass) {
case ScrollEvent:
- m_frameHost->chromeClient().setHasScrollEventHandlers(frame,
- hasActiveHandlers);
+ m_frameHost->page().chromeClient().setHasScrollEventHandlers(
+ frame, hasActiveHandlers);
break;
case WheelEventBlocking:
case WheelEventPassive:
- m_frameHost->chromeClient().setEventListenerProperties(
+ m_frameHost->page().chromeClient().setEventListenerProperties(
frame, WebEventListenerClass::MouseWheel,
webEventListenerProperties(hasEventHandlers(WheelEventBlocking),
hasEventHandlers(WheelEventPassive)));
break;
case TouchStartOrMoveEventBlocking:
case TouchStartOrMoveEventPassive:
- m_frameHost->chromeClient().setEventListenerProperties(
+ m_frameHost->page().chromeClient().setEventListenerProperties(
frame, WebEventListenerClass::TouchStartOrMove,
webEventListenerProperties(
hasEventHandlers(TouchStartOrMoveEventBlocking),
@@ -233,7 +233,7 @@ void EventHandlerRegistry::notifyHasHandlersChanged(
break;
case TouchEndOrCancelEventBlocking:
case TouchEndOrCancelEventPassive:
- m_frameHost->chromeClient().setEventListenerProperties(
+ m_frameHost->page().chromeClient().setEventListenerProperties(
frame, WebEventListenerClass::TouchEndOrCancel,
webEventListenerProperties(
hasEventHandlers(TouchEndOrCancelEventBlocking),
« no previous file with comments | « third_party/WebKit/Source/core/frame/BrowserControls.cpp ('k') | third_party/WebKit/Source/core/frame/FrameHost.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698