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

Unified Diff: third_party/WebKit/Source/web/tests/WebViewTest.cpp

Issue 2741633002: Remove FrameHost::eventHandlerRegistry() (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/web/tests/WebPluginContainerTest.cpp ('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/web/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index 4bcb8c64a50114a68bafbd7d272210df4ff084e8..45508010519a33c51e6fe020a2e6e514950ff168 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -3311,8 +3311,7 @@ TEST_P(WebViewTest, HasTouchEventHandlers) {
// Adding the first document handler results in a has-handlers call.
Document* document = webViewImpl->mainFrameImpl()->frame()->document();
- EventHandlerRegistry* registry =
- &document->frameHost()->eventHandlerRegistry();
+ EventHandlerRegistry* registry = &document->page()->eventHandlerRegistry();
registry->didAddEventHandler(*document, touchEvent);
EXPECT_EQ(0, client.getAndResetHasTouchEventHandlerCallCount(false));
EXPECT_EQ(1, client.getAndResetHasTouchEventHandlerCallCount(true));
@@ -3427,8 +3426,7 @@ TEST_P(WebViewTest, DeleteElementWithRegisteredHandler) {
Persistent<Document> document =
webViewImpl->mainFrameImpl()->frame()->document();
Element* div = document->getElementById("div");
- EventHandlerRegistry& registry =
- document->frameHost()->eventHandlerRegistry();
+ EventHandlerRegistry& registry = document->page()->eventHandlerRegistry();
registry.didAddEventHandler(*div, EventHandlerRegistry::ScrollEvent);
EXPECT_TRUE(registry.hasEventHandlers(EventHandlerRegistry::ScrollEvent));
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698