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

Issue 9549020: Improve switch between gestures and touch mode when kEnableTouchEvents (Closed)

Created:
8 years, 9 months ago by scottmg
Modified:
8 years, 9 months ago
Reviewers:
cpu_(ooo_6.6-7.5), jam
CC:
chromium-reviews, yusukes+watch_chromium.org, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Improve switch between gestures and touch mode when kEnableTouchEvents Mostly works, the only problem is that the first touch or gesture on switching "modes" gets lost because Windows doesn't start a touch of the "other" type when TouchRegisterWindow is called while there's a touch in progress. TBR=cpu Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124813 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124871

Patch Set 1 #

Total comments: 1

Patch Set 2 : int -> WebKit::WebInputEvent::Type #

Total comments: 4

Patch Set 3 : line for OVERRIDE and fix test #

Patch Set 4 : start in gesture mode #

Patch Set 5 : simplify a bit #

Total comments: 4

Patch Set 6 : only send fake touch on GID_BEGIN #

Patch Set 7 : fix xp #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -36 lines) Patch
M content/browser/renderer_host/render_widget_host.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.h View 1 2 3 4 3 chunks +15 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 6 7 4 chunks +76 lines, -23 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/port/browser/render_widget_host_view_port.h View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
scottmg
Seem reasonable? (Most of the files are just plumbing the event type through, only real ...
8 years, 9 months ago (2012-03-01 01:16:11 UTC) #1
scottmg
+jam for OWNERS
8 years, 9 months ago (2012-03-01 19:20:15 UTC) #2
jam
http://codereview.chromium.org/9549020/diff/1/content/browser/renderer_host/render_widget_host.h File content/browser/renderer_host/render_widget_host.h (right): http://codereview.chromium.org/9549020/diff/1/content/browser/renderer_host/render_widget_host.h#newcode755 content/browser/renderer_host/render_widget_host.h:755: void ProcessTouchAck(int type, bool processed); the ints in the ...
8 years, 9 months ago (2012-03-02 00:15:14 UTC) #3
scottmg
On 2012/03/02 00:15:14, John Abd-El-Malek wrote: > http://codereview.chromium.org/9549020/diff/1/content/browser/renderer_host/render_widget_host.h > File content/browser/renderer_host/render_widget_host.h (right): > > http://codereview.chromium.org/9549020/diff/1/content/browser/renderer_host/render_widget_host.h#newcode755 ...
8 years, 9 months ago (2012-03-02 00:20:40 UTC) #4
jam
On 2012/03/02 00:20:40, scottmg wrote: > On 2012/03/02 00:15:14, John Abd-El-Malek wrote: > > > ...
8 years, 9 months ago (2012-03-02 00:37:55 UTC) #5
scottmg
On 2012/03/02 00:37:55, John Abd-El-Malek wrote: > On 2012/03/02 00:20:40, scottmg wrote: > > On ...
8 years, 9 months ago (2012-03-02 01:15:45 UTC) #6
jam
lgtm from owners, i defer to cpu for the touch part http://codereview.chromium.org/9549020/diff/6001/content/browser/renderer_host/render_widget_host_view_aura.h File content/browser/renderer_host/render_widget_host_view_aura.h (right): ...
8 years, 9 months ago (2012-03-02 01:25:13 UTC) #7
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/9549020/diff/16001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/9549020/diff/16001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode940 content/browser/renderer_host/render_widget_host_view_win.cc:940: bool touch_mode = !!RegisterTouchWindow(m_hWnd, TWF_WANTPALM); we're not fans of ...
8 years, 9 months ago (2012-03-02 21:26:36 UTC) #8
scottmg
https://chromiumcodereview.appspot.com/9549020/diff/16001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://chromiumcodereview.appspot.com/9549020/diff/16001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode940 content/browser/renderer_host/render_widget_host_view_win.cc:940: bool touch_mode = !!RegisterTouchWindow(m_hWnd, TWF_WANTPALM); On 2012/03/02 21:26:36, cpu ...
8 years, 9 months ago (2012-03-02 22:27:28 UTC) #9
cpu_(ooo_6.6-7.5)
lgtm
8 years, 9 months ago (2012-03-02 23:23:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/9549020/18001
8 years, 9 months ago (2012-03-02 23:24:26 UTC) #11
commit-bot: I haz the power
Change committed as 124813
8 years, 9 months ago (2012-03-03 01:36:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/9549020/21001
8 years, 9 months ago (2012-03-03 16:57:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/9549020/27002
8 years, 9 months ago (2012-03-03 17:21:09 UTC) #14
commit-bot: I haz the power
8 years, 9 months ago (2012-03-03 18:54:10 UTC) #15
Change committed as 124871

Powered by Google App Engine
This is Rietveld 408576698