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

Unified Diff: content/browser/renderer_host/input/synthetic_pointer_action_unittest.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
Index: content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc
diff --git a/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc b/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc
index 3ef3d6f0fa9e45ec9a7f3be6fe4ed720b36ba2cf..46df157fc18487cf56c076f2bd7ca209aa1902d8 100644
--- a/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc
+++ b/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc
@@ -97,9 +97,9 @@ class MockSyntheticPointerTouchActionTarget
~MockSyntheticPointerTouchActionTarget() override {}
void DispatchInputEventToPlatform(const WebInputEvent& event) override {
- DCHECK(WebInputEvent::isTouchEventType(event.type));
+ DCHECK(WebInputEvent::isTouchEventType(event.type()));
const WebTouchEvent& touch_event = static_cast<const WebTouchEvent&>(event);
- type_ = touch_event.type;
+ type_ = touch_event.type();
for (size_t i = 0; i < WebTouchEvent::kTouchesLengthCap; ++i) {
indexes_[i] = touch_event.touches[i].id;
positions_[i] = gfx::PointF(touch_event.touches[i].position);
@@ -175,9 +175,9 @@ class MockSyntheticPointerMouseActionTarget
~MockSyntheticPointerMouseActionTarget() override {}
void DispatchInputEventToPlatform(const WebInputEvent& event) override {
- DCHECK(WebInputEvent::isMouseEventType(event.type));
+ DCHECK(WebInputEvent::isMouseEventType(event.type()));
const WebMouseEvent& mouse_event = static_cast<const WebMouseEvent&>(event);
- type_ = mouse_event.type;
+ type_ = mouse_event.type();
position_ = gfx::PointF(mouse_event.x, mouse_event.y);
clickCount_ = mouse_event.clickCount;
button_ = mouse_event.button;
@@ -559,4 +559,4 @@ TEST_F(SyntheticPointerActionTest, PointerMouseActionTypeInvalid) {
} // namespace
-} // namespace content
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698