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

Issue 696713002: Pointer/hover media query support: platform-dependent changes (Closed)

Created:
6 years, 1 month ago by mustaq
Modified:
6 years ago
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Pointer/hover media query support: platform-dependent changes This CL includes complete android-specific changes, and stubs for non-Android platforms. BUG=136119 Committed: https://crrev.com/43306bb1b3f9af4cde375bb837d9e9790ae7fd39 Cr-Commit-Position: refs/heads/master@{#306832}

Patch Set 1 #

Patch Set 2 : Incremental, android-only changes #

Total comments: 10

Patch Set 3 : Added a gyp rule to generate java enums #

Patch Set 4 : Fixed build dependencies #

Total comments: 6

Patch Set 5 : Rebased, cleaned up TouchDevice.java #

Total comments: 8

Patch Set 6 : Rebased #

Patch Set 7 : Completed the Android API, added stubs for other platforms. #

Total comments: 8

Patch Set 8 : #

Total comments: 7

Patch Set 9 : Fixed BUILD.gn, rebased #

Patch Set 10 : Added android_webview/java_library_common.mk for generated files #

Total comments: 7

Patch Set 11 : Fixed Java styles. #

Total comments: 4

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -7 lines) Patch
M android_webview/java_library_common.mk View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/libwebviewchromium.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M ui/android/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/TouchDevice.java View 1 2 3 4 5 6 7 8 9 10 3 chunks +67 lines, -7 lines 0 comments Download
M ui/android/ui_android.gyp View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M ui/base/touch/touch_device.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +11 lines, -0 lines 0 comments Download
M ui/base/touch/touch_device.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download
M ui/base/touch/touch_device_android.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +37 lines, -0 lines 0 comments Download
M ui/base/touch/touch_device_aurax11.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download
M ui/base/touch/touch_device_ozone.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download
M ui/base/touch/touch_device_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (12 generated)
jdduke (slow)
https://codereview.chromium.org/696713002/diff/20001/ui/base/touch/touch_device.h File ui/base/touch/touch_device.h (right): https://codereview.chromium.org/696713002/diff/20001/ui/base/touch/touch_device.h#newcode33 ui/base/touch/touch_device.h:33: PointerTypeNone = 1, Why start with 1 for None? ...
6 years, 1 month ago (2014-10-31 15:51:44 UTC) #2
mustaq
Currently trying build rule mods for generated_java_enums. https://codereview.chromium.org/696713002/diff/20001/ui/base/touch/touch_device.h File ui/base/touch/touch_device.h (right): https://codereview.chromium.org/696713002/diff/20001/ui/base/touch/touch_device.h#newcode33 ui/base/touch/touch_device.h:33: PointerTypeNone = ...
6 years, 1 month ago (2014-10-31 16:58:20 UTC) #4
bokan
https://codereview.chromium.org/696713002/diff/20001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/696713002/diff/20001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode18 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:18: public class TouchDevice { Can we change the name ...
6 years, 1 month ago (2014-11-03 14:28:11 UTC) #5
mustaq
https://codereview.chromium.org/696713002/diff/20001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/696713002/diff/20001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode18 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:18: public class TouchDevice { On 2014/11/03 14:28:11, bokan wrote: ...
6 years, 1 month ago (2014-11-03 17:11:38 UTC) #6
jdduke (slow)
https://codereview.chromium.org/696713002/diff/60001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/696713002/diff/60001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode13 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:13: import org.chromium.ui.base.PointerType; // to test compilation only You shouldn't ...
6 years, 1 month ago (2014-11-07 22:28:56 UTC) #7
mustaq
https://codereview.chromium.org/696713002/diff/60001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/696713002/diff/60001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode13 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:13: import org.chromium.ui.base.PointerType; // to test compilation only On 2014/11/07 ...
6 years, 1 month ago (2014-11-10 18:29:19 UTC) #8
mkosiba (inactive)
https://codereview.chromium.org/696713002/diff/80001/ui/base/touch/touch_device.h File ui/base/touch/touch_device.h (right): https://codereview.chromium.org/696713002/diff/80001/ui/base/touch/touch_device.h#newcode34 ui/base/touch/touch_device.h:34: PointerTypeNone = 1, nit: Though the Google C++ Style ...
6 years, 1 month ago (2014-11-10 22:00:14 UTC) #9
mkosiba (inactive)
https://codereview.chromium.org/696713002/diff/80001/ui/base/BUILD.gn File ui/base/BUILD.gn (right): https://codereview.chromium.org/696713002/diff/80001/ui/base/BUILD.gn#newcode705 ui/base/BUILD.gn:705: java_cpp_enum("ui_base_touch_device_java_enums") { in gn you can have all of ...
6 years, 1 month ago (2014-11-10 22:06:04 UTC) #11
mkosiba (inactive)
https://codereview.chromium.org/696713002/diff/80001/ui/base/ui_base.gyp File ui/base/ui_base.gyp (right): https://codereview.chromium.org/696713002/diff/80001/ui/base/ui_base.gyp#newcode767 ui/base/ui_base.gyp:767: 'includes': [ '../../build/jni_generator.gypi' ], This is your problem. You're ...
6 years, 1 month ago (2014-11-10 22:16:54 UTC) #12
jdduke (slow)
On 2014/11/10 22:16:54, mkosiba wrote: > https://codereview.chromium.org/696713002/diff/80001/ui/base/ui_base.gyp > File ui/base/ui_base.gyp (right): > > https://codereview.chromium.org/696713002/diff/80001/ui/base/ui_base.gyp#newcode767 > ...
6 years, 1 month ago (2014-11-10 22:27:03 UTC) #13
mustaq
ptal, the Android side should be complete now. For now I have added stubs for ...
6 years ago (2014-11-26 16:28:45 UTC) #14
jdduke (slow)
https://codereview.chromium.org/696713002/diff/120001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/696713002/diff/120001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode17 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:17: * FIXME: This does more than just touches. Rename ...
6 years ago (2014-11-26 16:57:04 UTC) #15
mustaq
https://codereview.chromium.org/696713002/diff/120001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/696713002/diff/120001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode17 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:17: * FIXME: This does more than just touches. Rename ...
6 years ago (2014-11-26 18:41:44 UTC) #16
bokan
https://codereview.chromium.org/696713002/diff/120001/ui/base/touch/touch_device_android.cc File ui/base/touch/touch_device_android.cc (right): https://codereview.chromium.org/696713002/diff/120001/ui/base/touch/touch_device_android.cc#newcode33 ui/base/touch/touch_device_android.cc:33: if (available_pointer_types & POINTER_TYPE_COARSE) On 2014/11/26 18:41:44, mustaq wrote: ...
6 years ago (2014-11-26 19:24:32 UTC) #17
jdduke (slow)
https://codereview.chromium.org/696713002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/696713002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc#newcode1351 content/browser/renderer_host/render_view_host_impl.cc:1351: void RenderViewHostImpl::UpdateWebkitPreferences(const WebPreferences& prefs) { Any idea how frequently ...
6 years ago (2014-11-26 19:29:29 UTC) #18
mustaq
https://codereview.chromium.org/696713002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/696713002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc#newcode1351 content/browser/renderer_host/render_view_host_impl.cc:1351: void RenderViewHostImpl::UpdateWebkitPreferences(const WebPreferences& prefs) { On 2014/11/26 19:29:28, jdduke ...
6 years ago (2014-11-26 19:51:51 UTC) #20
jdduke (slow)
https://codereview.chromium.org/696713002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/696713002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc#newcode1351 content/browser/renderer_host/render_view_host_impl.cc:1351: void RenderViewHostImpl::UpdateWebkitPreferences(const WebPreferences& prefs) { On 2014/11/26 19:51:50, mustaq ...
6 years ago (2014-11-26 20:05:38 UTC) #21
Rick Byers
On 2014/11/26 20:05:38, jdduke wrote: > https://codereview.chromium.org/696713002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc > File content/browser/renderer_host/render_view_host_impl.cc (right): > > https://codereview.chromium.org/696713002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc#newcode1351 > ...
6 years ago (2014-11-26 20:09:41 UTC) #22
jdduke (slow)
https://codereview.chromium.org/696713002/diff/140001/ui/android/BUILD.gn File ui/android/BUILD.gn (right): https://codereview.chromium.org/696713002/diff/140001/ui/android/BUILD.gn#newcode15 ui/android/BUILD.gn:15: "org/chromium/ui/base/PageTransition.java", You need to add an appropriate |TouchDevice.java| output ...
6 years ago (2014-12-01 18:53:06 UTC) #25
mustaq
PTAL: - All Android tests are passing now. Wondering if we should commit the Android ...
6 years ago (2014-12-02 16:28:19 UTC) #27
jdduke (slow)
Hmm, the latest patchset looks a bit bare?
6 years ago (2014-12-02 16:37:12 UTC) #29
mustaq
On 2014/12/02 16:37:12, jdduke wrote: > Hmm, the latest patchset looks a bit bare? Sorry ...
6 years ago (2014-12-02 16:42:44 UTC) #30
jdduke (slow)
On 2014/12/02 16:42:44, mustaq wrote: > On 2014/12/02 16:37:12, jdduke wrote: > > Hmm, the ...
6 years ago (2014-12-02 20:00:20 UTC) #32
mustaq
> > Sorry for not being clear: I deliberately removed non-windows diffs (because I > ...
6 years ago (2014-12-02 21:49:44 UTC) #33
mustaq
https://codereview.chromium.org/696713002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/696713002/diff/140001/content/browser/renderer_host/render_view_host_impl.cc#newcode1351 content/browser/renderer_host/render_view_host_impl.cc:1351: void RenderViewHostImpl::UpdateWebkitPreferences(const WebPreferences& prefs) { On 2014/12/02 16:28:19, mustaq ...
6 years ago (2014-12-02 21:50:02 UTC) #34
mustaq
I have removed the incremental patch#11 (touch_device_win.cc) to avoid confusion. Will create a separate CL ...
6 years ago (2014-12-03 20:23:49 UTC) #37
Ted C
androidy bits lgtm with some little nits https://codereview.chromium.org/696713002/diff/240001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/696713002/diff/240001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode53 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:53: * @return ...
6 years ago (2014-12-03 20:31:31 UTC) #38
mustaq
https://codereview.chromium.org/696713002/diff/240001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/696713002/diff/240001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode53 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:53: * @return Returns the pointer-types supported by the device, ...
6 years ago (2014-12-03 20:52:56 UTC) #39
sadrul
A couple of nits. Otherwise, LGTM https://codereview.chromium.org/696713002/diff/300001/ui/base/touch/touch_device.h File ui/base/touch/touch_device.h (right): https://codereview.chromium.org/696713002/diff/300001/ui/base/touch/touch_device.h#newcode15 ui/base/touch/touch_device.h:15: // the same ...
6 years ago (2014-12-03 21:45:02 UTC) #40
mustaq
https://codereview.chromium.org/696713002/diff/300001/ui/base/touch/touch_device.h File ui/base/touch/touch_device.h (right): https://codereview.chromium.org/696713002/diff/300001/ui/base/touch/touch_device.h#newcode15 ui/base/touch/touch_device.h:15: // the same for most of the files in ...
6 years ago (2014-12-04 14:57:52 UTC) #41
mkosiba (inactive)
lgtm
6 years ago (2014-12-04 15:00:30 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/696713002/320001
6 years ago (2014-12-04 15:04:37 UTC) #44
commit-bot: I haz the power
Committed patchset #12 (id:320001)
6 years ago (2014-12-04 16:28:09 UTC) #45
commit-bot: I haz the power
6 years ago (2014-12-04 16:28:47 UTC) #46
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/43306bb1b3f9af4cde375bb837d9e9790ae7fd39
Cr-Commit-Position: refs/heads/master@{#306832}

Powered by Google App Engine
This is Rietveld 408576698