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

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2728423005: Move FrameHost::m_eventHandlerRegistry to Page (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index 65140b70f936b57305e88f7500b8f5d792536792..0aa6889799c7803c12dd4efcd087669cca815225 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -32,6 +32,7 @@
#include "core/events/Event.h"
#include "core/frame/BrowserControls.h"
#include "core/frame/DOMTimer.h"
+#include "core/frame/EventHandlerRegistry.h"
#include "core/frame/FrameConsole.h"
#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
@@ -105,6 +106,7 @@ Page::Page(PageClients& pageClients)
m_pageScaleConstraintsSet(PageScaleConstraintsSet::create()),
m_pointerLockController(PointerLockController::create(this)),
m_browserControls(BrowserControls::create(*this)),
+ m_eventHandlerRegistry(new EventHandlerRegistry(*this)),
m_mainFrame(nullptr),
m_editorClient(pageClients.editorClient),
m_spellCheckerClient(pageClients.spellCheckerClient),
@@ -171,6 +173,14 @@ const BrowserControls& Page::browserControls() const {
return *m_browserControls;
}
+EventHandlerRegistry& Page::eventHandlerRegistry() {
+ return *m_eventHandlerRegistry;
+}
+
+const EventHandlerRegistry& Page::eventHandlerRegistry() const {
+ return *m_eventHandlerRegistry;
+}
+
ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) {
DisableCompositingQueryAsserts disabler;
if (ScrollingCoordinator* scrollingCoordinator =
@@ -550,6 +560,7 @@ DEFINE_TRACE(Page) {
visitor->trace(m_pointerLockController);
visitor->trace(m_scrollingCoordinator);
visitor->trace(m_browserControls);
+ visitor->trace(m_eventHandlerRegistry);
visitor->trace(m_mainFrame);
visitor->trace(m_validationMessageClient);
visitor->trace(m_useCounter);
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698