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

Issue 10790066: Enable gesture events handling on Android. (Closed)

Created:
8 years, 5 months ago by Yusuf
Modified:
8 years, 4 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, aelias_OOO_until_Jul13, Ted C, qinmin, Yaron, bulach
Visibility:
Public.

Description

Enable gesture events handling on Android. This add gesture related functionality to the java side to ContentViewCore and also adds some missing calls on the routing path of the gesture events to webkit. The WebKit side for related parts of the WebCompositorInputHandler has already been upstreamed. BUG=136680 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148861

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added remaining flags and removed unnecessary comments #

Total comments: 15

Patch Set 3 : Syling fixes and also removed 3 Java files which will be submitted seperately. #

Patch Set 4 : Added ContentViewGestureHandler and Test #

Total comments: 6

Patch Set 5 : Nit fixes and removed interstitial page case from rwhv related call #

Patch Set 6 : Added comments to avoid confusion when merging downstream #

Total comments: 1

Patch Set 7 : Nit fix to render_widget_host_view_android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1370 lines, -60 lines) Patch
M content/browser/android/content_startup_flags.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 6 chunks +50 lines, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 5 chunks +129 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentView.java View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 13 chunks +184 lines, -43 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java View 1 2 3 1 chunk +739 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/TouchPoint.java View 3 1 chunk +4 lines, -4 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ZoomManager.java View 2 chunks +4 lines, -4 lines 0 comments Download
A content/public/android/javatests/src/org/chromium/content/browser/ContentViewGestureHandlerTest.java View 1 2 3 1 chunk +213 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Yusuf
This completes the path for gestures from android framework to renderer, sending gesture events to ...
8 years, 5 months ago (2012-07-19 00:47:53 UTC) #1
aelias_OOO_until_Jul13
http://codereview.chromium.org/10790066/diff/1/content/browser/android/content_startup_flags.cc File content/browser/android/content_startup_flags.cc (right): http://codereview.chromium.org/10790066/diff/1/content/browser/android/content_startup_flags.cc#newcode72 content/browser/android/content_startup_flags.cc:72: #if !defined(ANDROID_UPSTREAM_BRINGUP) Let's not leave this around certain flags, ...
8 years, 5 months ago (2012-07-19 03:43:51 UTC) #2
Yusuf
http://codereview.chromium.org/10790066/diff/1/content/browser/android/content_startup_flags.cc File content/browser/android/content_startup_flags.cc (right): http://codereview.chromium.org/10790066/diff/1/content/browser/android/content_startup_flags.cc#newcode72 content/browser/android/content_startup_flags.cc:72: #if !defined(ANDROID_UPSTREAM_BRINGUP) On 2012/07/19 03:43:51, aelias wrote: > Let's ...
8 years, 5 months ago (2012-07-19 05:01:52 UTC) #3
jochen (gone - plz use gerrit)
drive-by content/ comments (except for the .java files) https://chromiumcodereview.appspot.com/10790066/diff/10001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://chromiumcodereview.appspot.com/10790066/diff/10001/content/browser/android/content_view_core_impl.cc#newcode22 content/browser/android/content_view_core_impl.cc:22: #include ...
8 years, 5 months ago (2012-07-19 14:50:06 UTC) #4
yusufo
https://chromiumcodereview.appspot.com/10790066/diff/10001/content/public/common/content_switches.h File content/public/common/content_switches.h (right): https://chromiumcodereview.appspot.com/10790066/diff/10001/content/public/common/content_switches.h#newcode206 content/public/common/content_switches.h:206: extern const char kGraphicsModeValueBasic[]; No, AFAIK they are used ...
8 years, 5 months ago (2012-07-19 19:01:08 UTC) #5
yusufo
After discussing this with @bulach, I am removing 2 java files which contain most of ...
8 years, 5 months ago (2012-07-19 20:36:03 UTC) #6
Yusuf
OK, so the CL that this depends on is about to go in, so please ...
8 years, 4 months ago (2012-07-26 21:46:04 UTC) #7
Yusuf
To clarify further, LongPressDetector.java and its test file has landed separately, but I added ContentViewGestureHandler.java ...
8 years, 4 months ago (2012-07-27 01:03:19 UTC) #8
Ted C
Java looks good aside from the nits. I'll let Alex look through the native portions. ...
8 years, 4 months ago (2012-07-27 01:31:53 UTC) #9
aelias_OOO_until_Jul13
http://codereview.chromium.org/10790066/diff/14001/content/browser/android/content_startup_flags.cc File content/browser/android/content_startup_flags.cc (left): http://codereview.chromium.org/10790066/diff/14001/content/browser/android/content_startup_flags.cc#oldcode76 content/browser/android/content_startup_flags.cc:76: SetCommandLineSwitch(switches::kEnablePerTilePainting); Please remove the #if and make this exactly ...
8 years, 4 months ago (2012-07-27 01:35:03 UTC) #10
jam
lgtm for content/public/common. i'll defer to android folks for render_widget_host_view_android* http://codereview.chromium.org/10790066/diff/14004/content/browser/renderer_host/render_widget_host_view_android.h File content/browser/renderer_host/render_widget_host_view_android.h (right): http://codereview.chromium.org/10790066/diff/14004/content/browser/renderer_host/render_widget_host_view_android.h#newcode108 ...
8 years, 4 months ago (2012-07-27 21:02:13 UTC) #11
aelias_OOO_until_Jul13
LGTM for render_widget_host_view_android*
8 years, 4 months ago (2012-07-27 21:34:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusufo@chromium.org/10790066/24001
8 years, 4 months ago (2012-07-27 21:36:24 UTC) #13
commit-bot: I haz the power
8 years, 4 months ago (2012-07-28 01:20:31 UTC) #14
Change committed as 148861

Powered by Google App Engine
This is Rietveld 408576698