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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 206603002: Add EventHandlerRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 years, 9 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: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index dfc1cd40f213062c8f087d7f51a24d5890bf252c..c304a9424e3dd8415ec78381d5b3cca707497e63 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -76,8 +76,8 @@
#include "core/clipboard/DataObject.h"
#include "core/dom/Document.h"
#include "core/dom/DocumentMarkerController.h"
+#include "core/dom/EventHandlerRegistry.h"
#include "core/dom/Text.h"
-#include "core/dom/WheelController.h"
#include "core/editing/Editor.h"
#include "core/editing/FrameSelection.h"
#include "core/editing/InputMethodController.h"
@@ -1447,7 +1447,7 @@ void WebViewImpl::popupOpened(PopupContainer* popupContainer)
m_selectPopup = popupContainer;
ASSERT(mainFrameImpl()->frame()->document());
Document& document = *mainFrameImpl()->frame()->document();
- WheelController::from(document)->didAddWheelEventHandler(document);
+ EventHandlerRegistry::from(document)->didAddExternalEventHandler(EventTypeNames::wheel);
}
void WebViewImpl::popupClosed(PopupContainer* popupContainer)
@@ -1456,7 +1456,7 @@ void WebViewImpl::popupClosed(PopupContainer* popupContainer)
m_selectPopup = nullptr;
ASSERT(mainFrameImpl()->frame()->document());
Document& document = *mainFrameImpl()->frame()->document();
- WheelController::from(document)->didRemoveWheelEventHandler(document);
+ EventHandlerRegistry::from(document)->didRemoveExternalEventHandler(EventTypeNames::wheel);
}
PagePopup* WebViewImpl::openPagePopup(PagePopupClient* client, const IntRect& originBoundsInRootView)

Powered by Google App Engine
This is Rietveld 408576698