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

Issue 10543159: ppapi: Add support for touch events. (Closed)

Created:
8 years, 6 months ago by sadrul
Modified:
8 years, 6 months ago
Reviewers:
brettw
CC:
chromium-reviews, rjkroege, Rick Byers
Visibility:
Public.

Description

ppapi: Add support for touch events. The corresponding webkit side patch is at https://bugs.webkit.org/show_bug.cgi?id=89089 BUG=128236 TEST=manually, using the browser-plugin Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143486

Patch Set 1 : . #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 10

Patch Set 4 : idl-goodness #

Total comments: 6

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+968 lines, -15 lines) Patch
A ppapi/api/pp_touch_point.idl View 1 2 3 4 1 chunk +73 lines, -0 lines 0 comments Download
M ppapi/api/ppb_input_event.idl View 1 2 3 4 2 chunks +151 lines, -1 line 0 comments Download
A ppapi/c/pp_touch_point.h View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
M ppapi/c/ppb_input_event.h View 1 2 3 4 5 chunks +160 lines, -2 lines 0 comments Download
M ppapi/cpp/input_event.h View 1 2 3 2 chunks +45 lines, -0 lines 0 comments Download
M ppapi/cpp/input_event.cc View 1 2 3 2 chunks +47 lines, -0 lines 0 comments Download
A ppapi/cpp/touch_point.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_input_event.cc View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_input_event_shared.h View 1 2 3 3 chunks +12 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_input_event_shared.cc View 1 2 3 2 chunks +80 lines, -1 line 0 comments Download
M ppapi/tests/all_c_includes.h View 1 2 3 4 3 chunks +2 lines, -1 line 0 comments Download
M ppapi/tests/all_cpp_includes.h View 1 2 3 4 1 chunk +7 lines, -6 lines 0 comments Download
M ppapi/thunk/ppb_input_event_api.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_input_event_thunk.cc View 1 2 3 4 3 chunks +71 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/event_conversion.cc View 1 2 3 4 8 chunks +152 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sadrul
Hi! This is a first iteration of the CL to add touch-event support for pepper ...
8 years, 6 months ago (2012-06-14 10:17:44 UTC) #1
brettw
I'd like to see what your PPB_InputEvent_Touch API would be to retrieve the stuff from ...
8 years, 6 months ago (2012-06-15 21:34:26 UTC) #2
sadrul
Hi! On 2012/06/15 21:34:26, brettw wrote: > I'd like to see what your PPB_InputEvent_Touch API ...
8 years, 6 months ago (2012-06-18 18:51:40 UTC) #3
brettw
Why are we modeling our API off of an X11 touch API that nobody programs ...
8 years, 6 months ago (2012-06-18 21:27:12 UTC) #4
sadrul
On 2012/06/18 21:27:12, brettw wrote: > Why are we modeling our API off of an ...
8 years, 6 months ago (2012-06-18 21:42:25 UTC) #5
sadrul
Hi! > We get events from WebKit. Your API should basically mirror > WebKit::WebTouchEvent which ...
8 years, 6 months ago (2012-06-18 23:18:02 UTC) #6
brettw
Thanks, I think I like this overall approach better. http://codereview.chromium.org/10543159/diff/16001/ppapi/c/dev/ppb_touch_event_dev.h File ppapi/c/dev/ppb_touch_event_dev.h (right): http://codereview.chromium.org/10543159/diff/16001/ppapi/c/dev/ppb_touch_event_dev.h#newcode5 ppapi/c/dev/ppb_touch_event_dev.h:5: ...
8 years, 6 months ago (2012-06-19 21:20:52 UTC) #7
sadrul
I have addressed all the comments. http://codereview.chromium.org/10543159/diff/16001/ppapi/c/dev/ppb_touch_event_dev.h File ppapi/c/dev/ppb_touch_event_dev.h (right): http://codereview.chromium.org/10543159/diff/16001/ppapi/c/dev/ppb_touch_event_dev.h#newcode5 ppapi/c/dev/ppb_touch_event_dev.h:5: #ifndef PPAPI_C_DEV_PPB_TOUCH_EVENT_DEV_H_ On ...
8 years, 6 months ago (2012-06-20 20:19:03 UTC) #8
sadrul
ping!
8 years, 6 months ago (2012-06-21 20:49:27 UTC) #9
brettw
lgtm http://codereview.chromium.org/10543159/diff/22002/ppapi/api/ppb_touch_point.idl File ppapi/api/ppb_touch_point.idl (right): http://codereview.chromium.org/10543159/diff/22002/ppapi/api/ppb_touch_point.idl#newcode8 ppapi/api/ppb_touch_point.idl:8: * This file defines the API to create ...
8 years, 6 months ago (2012-06-21 21:09:32 UTC) #10
sadrul
8 years, 6 months ago (2012-06-21 21:25:12 UTC) #11
Thanks!

http://codereview.chromium.org/10543159/diff/22002/ppapi/api/ppb_touch_point.idl
File ppapi/api/ppb_touch_point.idl (right):

http://codereview.chromium.org/10543159/diff/22002/ppapi/api/ppb_touch_point....
ppapi/api/ppb_touch_point.idl:8: * This file defines the API to create a
touch-point.
On 2012/06/21 21:09:32, brettw wrote:
> This file should be called pp_touch_point.idl instead (ppb is for interfaces,
> and this is just a struct definition).

Done.

http://codereview.chromium.org/10543159/diff/22002/ppapi/c/ppb_input_event.h
File ppapi/c/ppb_input_event.h (right):

http://codereview.chromium.org/10543159/diff/22002/ppapi/c/ppb_input_event.h#...
ppapi/c/ppb_input_event.h:778: * for internal use. The type must be one of the
touch event types.
On 2012/06/21 21:09:32, brettw wrote:
> Can you note that you should call AddTouchPoint to the returned resource to
> modify it?

Done.

http://codereview.chromium.org/10543159/diff/22002/ppapi/c/ppb_input_event.h#...
ppapi/c/ppb_input_event.h:798: * Adds a touch point to the touch event in the
specified toucyh-list.
On 2012/06/21 21:09:32, brettw wrote:
> toucyh -> touch

Done.

Powered by Google App Engine
This is Rietveld 408576698