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

Issue 407313002: Add a MotionEventGeneric implementation (Closed)

Created:
6 years, 5 months ago by jdduke (slow)
Modified:
6 years, 5 months ago
Reviewers:
sadrul, tdresser
CC:
chromium-reviews, jam, tdresser+watch_chromium.org, jdduke+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add a MotionEventGeneric implementation Provide a reference implementation of the MotionEvent interface, usable by mock implementations and platform-specific implementations. BUG=394562 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285110

Patch Set 1 #

Total comments: 12

Patch Set 2 : Code review #

Total comments: 2

Patch Set 3 : vesrion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -336 lines) Patch
M content/browser/renderer_host/input/gesture_text_selector_unittest.cc View 1 7 chunks +10 lines, -10 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_web.h View 1 chunk +0 lines, -12 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_web.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M ui/events/BUILD.gn View 1 2 chunks +4 lines, -0 lines 0 comments Download
M ui/events/events.gyp View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 32 chunks +24 lines, -36 lines 0 comments Download
M ui/events/gesture_detection/motion_event.h View 2 chunks +13 lines, -8 lines 0 comments Download
A ui/events/gesture_detection/motion_event.cc View 1 chunk +79 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/motion_event_generic.h View 1 1 chunk +86 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/motion_event_generic.cc View 1 chunk +144 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/motion_event_generic_unittest.cc View 1 1 chunk +70 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc View 1 7 chunks +8 lines, -3 lines 0 comments Download
M ui/events/gestures/motion_event_aura.h View 1 chunk +1 line, -11 lines 0 comments Download
M ui/events/gestures/motion_event_aura.cc View 2 chunks +4 lines, -30 lines 0 comments Download
M ui/events/test/mock_motion_event.h View 1 3 chunks +5 lines, -39 lines 0 comments Download
M ui/events/test/mock_motion_event.cc View 1 3 chunks +97 lines, -160 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jdduke (slow)
tdresser@: I went ahead and factored out this change from the MotionEventBuffer change, PTAL, thanks.
6 years, 5 months ago (2014-07-22 23:13:52 UTC) #1
tdresser
https://codereview.chromium.org/407313002/diff/1/ui/events/gesture_detection/motion_event_generic_unittest.cc File ui/events/gesture_detection/motion_event_generic_unittest.cc (right): https://codereview.chromium.org/407313002/diff/1/ui/events/gesture_detection/motion_event_generic_unittest.cc#newcode55 ui/events/gesture_detection/motion_event_generic_unittest.cc:55: ASSERT_TRUE(clone); Looks like you forgot a |EXPECT_EQ(event, *clone)|. https://codereview.chromium.org/407313002/diff/1/ui/events/test/mock_motion_event.cc ...
6 years, 5 months ago (2014-07-23 12:53:45 UTC) #2
jdduke (slow)
sadrul@: Owner review for events/BUILD.gn and events/test? Thanks. https://codereview.chromium.org/407313002/diff/1/ui/events/gesture_detection/motion_event_generic_unittest.cc File ui/events/gesture_detection/motion_event_generic_unittest.cc (right): https://codereview.chromium.org/407313002/diff/1/ui/events/gesture_detection/motion_event_generic_unittest.cc#newcode55 ui/events/gesture_detection/motion_event_generic_unittest.cc:55: ASSERT_TRUE(clone); ...
6 years, 5 months ago (2014-07-23 17:20:56 UTC) #3
tdresser
Awesome, thanks! LGTM. https://codereview.chromium.org/407313002/diff/20001/ui/events/events.gyp File ui/events/events.gyp (right): https://codereview.chromium.org/407313002/diff/20001/ui/events/events.gyp#newcode291 ui/events/events.gyp:291: # GN vesrion: //ui/events:events_unittests vesrion!
6 years, 5 months ago (2014-07-23 18:06:15 UTC) #4
sadrul
said files lgtm
6 years, 5 months ago (2014-07-23 18:31:53 UTC) #5
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 5 months ago (2014-07-23 18:35:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/407313002/40001
6 years, 5 months ago (2014-07-23 18:37:14 UTC) #7
jdduke (slow)
https://codereview.chromium.org/407313002/diff/20001/ui/events/events.gyp File ui/events/events.gyp (right): https://codereview.chromium.org/407313002/diff/20001/ui/events/events.gyp#newcode291 ui/events/events.gyp:291: # GN vesrion: //ui/events:events_unittests On 2014/07/23 18:06:15, tdresser wrote: ...
6 years, 5 months ago (2014-07-23 21:40:01 UTC) #8
commit-bot: I haz the power
6 years, 5 months ago (2014-07-24 02:14:22 UTC) #9
Message was sent while issue was closed.
Change committed as 285110

Powered by Google App Engine
This is Rietveld 408576698