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

Issue 2240983003: Move |ScopedWebInputEvent| and |WebInputEventTraits| from |content::| to "ui/events/blink" (Closed)

Created:
4 years, 4 months ago by chongz
Modified:
4 years, 4 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, tdresser+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, 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

Move |ScopedWebInputEvent| and |WebInputEventTraits| from |content::| to "ui/events/blink" This CL moves |ScopedWebInputEvent| and |WebInputEventTraits| from |content::| to "ui/events/blink", so they can be accessed by |InputHandlerProxy|. Adds dependency: 1. content/common : ui/events/blink 2. content/renderer/mus : ui/events/blink Concerns: 1. Moving |WebInputEventTraits| seems redundant since we only need |WebInputEventTraits::Delete/Clone|. 2. "ui/events/blink" seems to be static linked, so it will cause each file to grow. After discussion with dtapuska@ and tdresser@ it doesn't really matter whether we move it entirely or only part of it. So the easier solution is to move it entirely for now, and handle it later if it's actually causing problems. BUG=637393 Committed: https://crrev.com/4a975194104af57c2c05f8dc0144e94a79dc2076 Cr-Commit-Position: refs/heads/master@{#412579}

Patch Set 1 : Move |ScopedWebInputEvent| and |WebInputEventTraits| from |content::| to |ui::| #

Total comments: 6

Patch Set 2 : Rebase and ncarter's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -571 lines) Patch
M content/browser/android/content_view_core_impl.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_queue.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 3 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/input_router_impl_perftest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/mouse_wheel_event_queue.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/render_widget_host_latency_tracker.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_base.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 3 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M content/common/content_param_traits.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/input/event_with_latency_info.h View 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/input/event_with_latency_info.cc View 2 chunks +1 line, -2 lines 0 comments Download
M content/common/input/gesture_event_stream_validator.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M content/common/input/input_event.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/input/input_event.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/input/input_event_stream_validator.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/input/input_param_traits.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/input/input_param_traits.cc View 5 chunks +6 lines, -6 lines 0 comments Download
D content/common/input/scoped_web_input_event.h View 1 chunk +0 lines, -28 lines 0 comments Download
D content/common/input/scoped_web_input_event.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M content/common/input/touch_event_stream_validator.cc View 3 chunks +5 lines, -4 lines 0 comments Download
D content/common/input/web_input_event_traits.h View 1 chunk +0 lines, -36 lines 0 comments Download
D content/common/input/web_input_event_traits.cc View 1 chunk +0 lines, -304 lines 0 comments Download
D content/common/input/web_input_event_traits_unittest.cc View 1 chunk +0 lines, -49 lines 0 comments Download
M content/common/input/web_touch_event_traits.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/content_common.gypi View 1 2 chunks +0 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/input/input_event_filter.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/input/input_event_filter_unittest.cc View 5 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/input/input_handler_manager.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/input/main_thread_event_queue.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/input/main_thread_event_queue.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/input/main_thread_event_queue_unittest.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.cc View 1 4 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/render_widget.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_widget_unittest.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M content/test/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/blink/BUILD.gn View 1 1 chunk +4 lines, -0 lines 0 comments Download
A + ui/events/blink/scoped_web_input_event.h View 1 chunk +6 lines, -8 lines 0 comments Download
A + ui/events/blink/scoped_web_input_event.cc View 2 chunks +4 lines, -10 lines 0 comments Download
A + ui/events/blink/web_input_event_traits.h View 1 2 chunks +8 lines, -13 lines 0 comments Download
A + ui/events/blink/web_input_event_traits.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
A + ui/events/blink/web_input_event_traits_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ui/events/events_unittests.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
chongz
dtapuska@ please also take a look at this CL as well. I'm not sure if ...
4 years, 4 months ago (2016-08-15 18:45:15 UTC) #8
chongz
dtapuska@ I've updated CL description as per our discussion, PTAL, thanks!
4 years, 4 months ago (2016-08-16 14:47:01 UTC) #13
dtapuska
On 2016/08/16 14:47:01, chongz wrote: > dtapuska@ I've updated CL description as per our discussion, ...
4 years, 4 months ago (2016-08-16 14:50:44 UTC) #14
chongz
avi@ PTAL at this CL, thanks!
4 years, 4 months ago (2016-08-16 19:05:39 UTC) #16
Avi (use Gerrit)
lgtm This looks reasonable to me. Nick, can you give me a second set of ...
4 years, 4 months ago (2016-08-16 19:48:26 UTC) #18
ncarter (slow)
i have no objections https://codereview.chromium.org/2240983003/diff/1/ui/events/blink/web_input_event_traits.cc File ui/events/blink/web_input_event_traits.cc (right): https://codereview.chromium.org/2240983003/diff/1/ui/events/blink/web_input_event_traits.cc#newcode1 ui/events/blink/web_input_event_traits.cc:1: // Copyright 2013 The Chromium ...
4 years, 4 months ago (2016-08-16 21:09:04 UTC) #19
dtapuska
On 2016/08/16 21:09:04, ncarter (ooo) wrote: > i have no objections > > https://codereview.chromium.org/2240983003/diff/1/ui/events/blink/web_input_event_traits.cc > ...
4 years, 4 months ago (2016-08-17 14:50:36 UTC) #21
kenrb
ipc lgtm
4 years, 4 months ago (2016-08-17 15:20:45 UTC) #22
chongz
Synced with sahel@ about cl/2250233002, I will land first since I've already got LGTMs. https://codereview.chromium.org/2240983003/diff/1/ui/events/blink/web_input_event_traits.cc ...
4 years, 4 months ago (2016-08-17 16:34:19 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2240983003/20001
4 years, 4 months ago (2016-08-17 16:48:13 UTC) #26
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-17 17:50:04 UTC) #28
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 17:55:22 UTC) #30
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4a975194104af57c2c05f8dc0144e94a79dc2076
Cr-Commit-Position: refs/heads/master@{#412579}

Powered by Google App Engine
This is Rietveld 408576698