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

Unified Diff: content/browser/site_per_process_browsertest.cc

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits Created 3 years, 11 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 | « content/browser/renderer_host/ui_events_helper.cc ('k') | content/common/content_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/site_per_process_browsertest.cc
diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc
index 16ca7360e42f744b4350b171671d56cfb311225b..887e8f541c885d89efcb7050ed3d859470b6b0c1 100644
--- a/content/browser/site_per_process_browsertest.cc
+++ b/content/browser/site_per_process_browsertest.cc
@@ -207,7 +207,7 @@ class TestInputEventObserver : public RenderWidgetHost::InputEventObserver {
}
void OnInputEvent(const blink::WebInputEvent& event) override {
- events_received_.push_back(event.type);
+ events_received_.push_back(event.type());
};
private:
@@ -1503,7 +1503,7 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
web_contents()->GetInputEventRouter()->RouteMouseEvent(rwhv_a, &mouse_event,
ui::LatencyInfo());
EXPECT_TRUE(a_frame_monitor.EventWasReceived());
- EXPECT_EQ(a_frame_monitor.event().type, blink::WebInputEvent::MouseMove);
+ EXPECT_EQ(a_frame_monitor.event().type(), blink::WebInputEvent::MouseMove);
a_frame_monitor.ResetEventReceived();
EXPECT_TRUE(b_frame_monitor.EventWasReceived());
b_frame_monitor.ResetEventReceived();
@@ -1517,11 +1517,11 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
web_contents()->GetInputEventRouter()->RouteMouseEvent(rwhv_a, &mouse_event,
ui::LatencyInfo());
EXPECT_TRUE(a_frame_monitor.EventWasReceived());
- EXPECT_EQ(a_frame_monitor.event().type, blink::WebInputEvent::MouseMove);
+ EXPECT_EQ(a_frame_monitor.event().type(), blink::WebInputEvent::MouseMove);
EXPECT_TRUE(b_frame_monitor.EventWasReceived());
- EXPECT_EQ(b_frame_monitor.event().type, blink::WebInputEvent::MouseLeave);
+ EXPECT_EQ(b_frame_monitor.event().type(), blink::WebInputEvent::MouseLeave);
EXPECT_TRUE(c_frame_monitor.EventWasReceived());
- EXPECT_EQ(c_frame_monitor.event().type, blink::WebInputEvent::MouseMove);
+ EXPECT_EQ(c_frame_monitor.event().type(), blink::WebInputEvent::MouseMove);
EXPECT_TRUE(d_frame_monitor.EventWasReceived());
}
« no previous file with comments | « content/browser/renderer_host/ui_events_helper.cc ('k') | content/common/content_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698