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

Issue 510793003: Remove ui::TouchEvent -> blink::WebTouchEvent conversion methods. (Closed)

Created:
6 years, 3 months ago by tdresser
Modified:
5 years, 11 months ago
Reviewers:
jdduke (slow), sadrul
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tdresser+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove ui::TouchEvent -> blink::WebTouchEvent conversion methods. Instead, we can just use ui::TouchEvent -> ui::MotionEvent -> blink::WebInputEvent. We need ui::TouchEvent -> ui::MotionEvent for gesture detection, and ui::MotionEvent -> blink::WebInputEvent will be used in the same way across all platforms supporting touch. BUG=407645 TEST=RenderWidgetHostViewAuraTest.* Committed: https://crrev.com/62bb8d3ff2322ed11a11913c3414c3a2f4d4e60f Cr-Commit-Position: refs/heads/master@{#310514}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase. #

Total comments: 2

Patch Set 4 : Address sadrul's comment. #

Patch Set 5 : Fix tests. #

Total comments: 4

Patch Set 6 : Rebase. #

Patch Set 7 : Fix Rebase. #

Patch Set 8 : Make method const. #

Total comments: 14

Patch Set 9 : Address jdduke's comments. #

Total comments: 2

Patch Set 10 : Address jdduke's comments. #

Patch Set 11 : Fix broken test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -245 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 4 chunks +7 lines, -22 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +58 lines, -50 lines 0 comments Download
M content/browser/renderer_host/ui_events_helper.h View 1 1 chunk +1 line, -7 lines 0 comments Download
M content/browser/renderer_host/ui_events_helper.cc View 1 2 3 4 5 2 chunks +0 lines, -99 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 2 3 4 5 6 1 chunk +5 lines, -3 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -22 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -2 lines 0 comments Download
M ui/events/gestures/motion_event_aura.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/gestures/motion_event_aura.cc View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -2 lines 0 comments Download
M ui/events/gestures/motion_event_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 17 chunks +61 lines, -32 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
tdresser
https://codereview.chromium.org/510793003/diff/1/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (right): https://codereview.chromium.org/510793003/diff/1/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode853 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:853: EXPECT_EQ(1U, view_->touch_event_.touchesLength); These changes are only necessary because the ...
6 years, 3 months ago (2014-08-28 14:36:33 UTC) #1
tdresser
On 2014/08/28 14:36:33, tdresser wrote: > https://codereview.chromium.org/510793003/diff/1/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc > File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc > (right): > > https://codereview.chromium.org/510793003/diff/1/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode853 ...
6 years ago (2014-12-11 14:28:32 UTC) #2
tdresser
6 years ago (2014-12-11 15:03:48 UTC) #4
sadrul
https://codereview.chromium.org/510793003/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.h File content/browser/renderer_host/render_widget_host_view_aura.h (right): https://codereview.chromium.org/510793003/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.h#newcode523 content/browser/renderer_host/render_widget_host_view_aura.h:523: blink::WebTouchEvent touch_event_; We shouldn't need |touch_event_| anymore.
6 years ago (2014-12-11 15:55:32 UTC) #5
tdresser
6 years ago (2014-12-11 21:10:23 UTC) #6
tdresser
https://codereview.chromium.org/510793003/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.h File content/browser/renderer_host/render_widget_host_view_aura.h (right): https://codereview.chromium.org/510793003/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.h#newcode523 content/browser/renderer_host/render_widget_host_view_aura.h:523: blink::WebTouchEvent touch_event_; On 2014/12/11 15:55:31, sadrul wrote: > We ...
6 years ago (2014-12-11 21:10:38 UTC) #7
sadrul
LGTM https://codereview.chromium.org/510793003/diff/80001/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (left): https://codereview.chromium.org/510793003/diff/80001/content/browser/renderer_host/input/web_input_event_util.cc#oldcode275 content/browser/renderer_host/input/web_input_event_util.cc:275: DCHECK_GT(result.touchesLength, 0U); I suppose you are removing this ...
6 years ago (2014-12-11 23:23:31 UTC) #8
tdresser
https://codereview.chromium.org/510793003/diff/80001/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (left): https://codereview.chromium.org/510793003/diff/80001/content/browser/renderer_host/input/web_input_event_util.cc#oldcode275 content/browser/renderer_host/input/web_input_event_util.cc:275: DCHECK_GT(result.touchesLength, 0U); On 2014/12/11 23:23:31, sadrul (OOO) wrote: > ...
5 years, 11 months ago (2015-01-05 21:51:10 UTC) #9
tdresser
jdduke@, can you take a look at ui/events/gestures/motion_event_aura.cc? This is a little ugly, and it's ...
5 years, 11 months ago (2015-01-05 21:55:17 UTC) #11
jdduke (slow)
On 2015/01/05 21:55:17, tdresser wrote: > jdduke@, can you take a look at ui/events/gestures/motion_event_aura.cc? > ...
5 years, 11 months ago (2015-01-05 22:29:50 UTC) #12
jdduke (slow)
https://codereview.chromium.org/510793003/diff/140001/ui/events/gestures/gesture_provider_aura.cc File ui/events/gestures/gesture_provider_aura.cc (right): https://codereview.chromium.org/510793003/diff/140001/ui/events/gestures/gesture_provider_aura.cc#newcode30 ui/events/gestures/gesture_provider_aura.cc:30: last_unique_touch_event_id_ = event->unique_event_id(); Should we only update these if ...
5 years, 11 months ago (2015-01-05 22:35:14 UTC) #13
tdresser
The associated bug is here: crbug.com/373125. If we correctly sent a touch end in this ...
5 years, 11 months ago (2015-01-06 14:20:17 UTC) #14
jdduke (slow)
https://codereview.chromium.org/510793003/diff/140001/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (left): https://codereview.chromium.org/510793003/diff/140001/content/browser/renderer_host/input/web_input_event_util.cc#oldcode277 content/browser/renderer_host/input/web_input_event_util.cc:277: DCHECK_GT(result.touchesLength, 0U); I'm a little nervous about removing this ...
5 years, 11 months ago (2015-01-06 16:49:54 UTC) #15
tdresser
https://codereview.chromium.org/510793003/diff/140001/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (left): https://codereview.chromium.org/510793003/diff/140001/content/browser/renderer_host/input/web_input_event_util.cc#oldcode277 content/browser/renderer_host/input/web_input_event_util.cc:277: DCHECK_GT(result.touchesLength, 0U); On 2015/01/06 16:49:54, jdduke wrote: > I'm ...
5 years, 11 months ago (2015-01-07 17:01:15 UTC) #16
jdduke (slow)
Thanks, motion_event_aura* changes lgtm.
5 years, 11 months ago (2015-01-07 17:21:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/510793003/180001
5 years, 11 months ago (2015-01-07 17:25:38 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/20182)
5 years, 11 months ago (2015-01-07 18:49:55 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/510793003/200001
5 years, 11 months ago (2015-01-08 15:39:27 UTC) #23
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 11 months ago (2015-01-08 16:26:59 UTC) #24
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 16:28:15 UTC) #25
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/62bb8d3ff2322ed11a11913c3414c3a2f4d4e60f
Cr-Commit-Position: refs/heads/master@{#310514}

Powered by Google App Engine
This is Rietveld 408576698