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

Issue 2896993002: Route OnDragEvent through ViewAndroid tree (Closed)

Created:
3 years, 7 months ago by Jinsuk Kim
Modified:
3 years, 6 months ago
CC:
agrieve+watch_chromium.org, android-webview-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Route OnDragEvent through ViewAndroid tree Moves another event handling flow from CVC to ViewAndroid: - Introduced a new native class for drag event (DragEventAndroid) - Updated ViewAndroid to handle both drag/motion events in its hit testing logic. - Clarify that layout in VA is in CSS unit, which was not clear and prone to error. Tested manually with target sdk set to 25. BUG=622847 Review-Url: https://codereview.chromium.org/2896993002 Cr-Commit-Position: refs/heads/master@{#474947} Committed: https://chromium.googlesource.com/chromium/src/+/da11b4dc274864786ae57bb4c006b9adfdbefb4e

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 18

Patch Set 3 : comment #

Total comments: 4

Patch Set 4 : comment 2 #

Total comments: 2

Patch Set 5 : +ui/base #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -201 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 chunk +0 lines, -13 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 3 chunks +0 lines, -73 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.h View 2 chunks +7 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 1 2 3 2 chunks +50 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentView.java View 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 4 chunks +0 lines, -55 lines 0 comments Download
M ui/android/DEPS View 1 2 3 4 1 chunk +2 lines, -5 lines 0 comments Download
M ui/android/event_forwarder.h View 1 chunk +10 lines, -0 lines 0 comments Download
M ui/android/event_forwarder.cc View 1 2 3 chunks +27 lines, -3 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/EventForwarder.java View 1 2 5 chunks +60 lines, -3 lines 0 comments Download
M ui/android/view_android.h View 1 2 3 chunks +21 lines, -9 lines 0 comments Download
M ui/android/view_android.cc View 1 2 3 chunks +43 lines, -18 lines 0 comments Download
M ui/android/view_client.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/android/view_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A ui/events/android/drag_event_android.h View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
A ui/events/android/drag_event_android.cc View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
M ui/events/android/motion_event_android.h View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M ui/events/android/motion_event_android.cc View 1 2 2 chunks +12 lines, -10 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
Jinsuk Kim
boliu@chromium.org: Please review changes in content/ ui/android aelias@chromium.org: Please review changes in ui/event/
3 years, 7 months ago (2017-05-24 09:06:37 UTC) #7
aelias_OOO_until_Jul13
https://codereview.chromium.org/2896993002/diff/100001/ui/events/android/drag_event_android.cc File ui/events/android/drag_event_android.cc (right): https://codereview.chromium.org/2896993002/diff/100001/ui/events/android/drag_event_android.cc#newcode31 ui/events/android/drag_event_android.cc:31: new_location + (root_location_f() - location_f()); Terminology and calculation seems ...
3 years, 7 months ago (2017-05-24 22:25:41 UTC) #8
boliu
I didn't find any existing drag-drop tests. Did you make sure to manually test this ...
3 years, 7 months ago (2017-05-24 22:54:02 UTC) #9
Jinsuk Kim
> I didn't find any existing drag-drop tests. Did you make > sure to manually ...
3 years, 7 months ago (2017-05-25 03:18:19 UTC) #11
boliu
lgtm % comments https://codereview.chromium.org/2896993002/diff/120001/ui/events/android/drag_event_android.h File ui/events/android/drag_event_android.h (right): https://codereview.chromium.org/2896993002/diff/120001/ui/events/android/drag_event_android.h#newcode36 ui/events/android/drag_event_android.h:36: const gfx::Point location() const { return ...
3 years, 7 months ago (2017-05-25 03:49:34 UTC) #12
aelias_OOO_until_Jul13
lgtm
3 years, 6 months ago (2017-05-25 18:16:43 UTC) #13
Jinsuk Kim
sky@chromium.org: Please review changes in ui/android/DEPS ** Presubmit ERRORS ** You need LGTM from owners ...
3 years, 6 months ago (2017-05-25 23:12:15 UTC) #15
sky
https://codereview.chromium.org/2896993002/diff/140001/ui/android/DEPS File ui/android/DEPS (right): https://codereview.chromium.org/2896993002/diff/140001/ui/android/DEPS#newcode16 ui/android/DEPS:16: "+ui/base/ui_base_switches_util.h", Why not +ui/base? This target depends upon ui/base, ...
3 years, 6 months ago (2017-05-25 23:57:59 UTC) #16
Jinsuk Kim
https://codereview.chromium.org/2896993002/diff/140001/ui/android/DEPS File ui/android/DEPS (right): https://codereview.chromium.org/2896993002/diff/140001/ui/android/DEPS#newcode16 ui/android/DEPS:16: "+ui/base/ui_base_switches_util.h", On 2017/05/25 23:57:59, sky wrote: > Why not ...
3 years, 6 months ago (2017-05-26 00:16:48 UTC) #17
sky
LGTM
3 years, 6 months ago (2017-05-26 03:01:34 UTC) #18
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/2896993002/160001
3 years, 6 months ago (2017-05-26 05:15:33 UTC) #21
commit-bot: I haz the power
3 years, 6 months ago (2017-05-26 06:45:04 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/da11b4dc274864786ae57bb4c006...

Powered by Google App Engine
This is Rietveld 408576698