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

Issue 7285010: Implement an input event resource. (Closed)

Created:
9 years, 5 months ago by brettw
Modified:
9 years, 5 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Visibility:
Public.

Description

Add interfaces for requesting and receiving input event resources. This converts the input event from a C struct to a resource to give us more ability to change over time. This patch includes a proxy and a C++ wrapper for this resource. You now have to register for classes of input events. No events are sent by default. This also allows us to specify whether the events support bubbling or not, which allows us to better-optimize IPC. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91711

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 37

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 8

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2360 lines, -150 lines) Patch
M ppapi/c/pp_errors.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/c/pp_input_event.h View 1 2 3 4 5 6 7 1 chunk +1 line, -73 lines 0 comments Download
M ppapi/c/pp_point.h View 1 2 3 4 5 6 7 3 chunks +18 lines, -1 line 0 comments Download
A ppapi/c/ppb_input_event.h View 1 2 3 4 5 6 1 chunk +485 lines, -0 lines 0 comments Download
A ppapi/c/ppp_input_event.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A ppapi/cpp/input_event.h View 1 2 3 4 1 chunk +180 lines, -0 lines 0 comments Download
A ppapi/cpp/input_event.cc View 1 2 3 4 1 chunk +172 lines, -0 lines 0 comments Download
M ppapi/cpp/instance.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
M ppapi/cpp/instance.cc View 1 2 3 4 5 6 7 4 chunks +31 lines, -0 lines 0 comments Download
M ppapi/cpp/module.cc View 1 2 3 4 5 6 7 3 chunks +24 lines, -2 lines 0 comments Download
M ppapi/cpp/point.h View 1 2 3 4 5 6 7 3 chunks +156 lines, -15 lines 0 comments Download
M ppapi/example/example.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -4 lines 0 comments Download
M ppapi/ppapi_cpp.gypi View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/proxy/dispatcher.cc View 1 2 3 4 5 6 7 4 chunks +4 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_id.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 4 chunks +40 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_input_event_proxy.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_input_event_proxy.cc View 1 2 1 chunk +102 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 3 4 5 6 7 4 chunks +13 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 7 3 chunks +52 lines, -0 lines 0 comments Download
A ppapi/proxy/ppp_input_event_proxy.h View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A ppapi/proxy/ppp_input_event_proxy.cc View 1 2 1 chunk +115 lines, -0 lines 0 comments Download
A ppapi/shared_impl/input_event_impl.h View 1 2 3 4 1 chunk +75 lines, -0 lines 0 comments Download
A ppapi/shared_impl/input_event_impl.cc View 1 2 3 4 1 chunk +79 lines, -0 lines 0 comments Download
A ppapi/shared_impl/instance_impl.h View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A ppapi/shared_impl/instance_impl.cc View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
M ppapi/shared_impl/resource_object_base.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/all_c_includes.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_input_event_api.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_input_event_thunk.cc View 1 2 3 4 1 chunk +210 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M ppapi/thunk/thunk.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/event_conversion.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/event_conversion.cc View 1 2 3 4 5 6 7 8 chunks +122 lines, -48 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 4 chunks +10 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 5 6 7 7 chunks +21 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 7 chunks +78 lines, -3 lines 0 comments Download
A webkit/plugins/ppapi/ppb_input_event_impl.h View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_input_event_impl.cc View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
brettw
9 years, 5 months ago (2011-07-01 17:33:51 UTC) #1
darin (slow to review)
http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h File ppapi/c/ppb_input_event.h (right): http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h#newcode280 ppapi/c/ppb_input_event.h:280: * the input event, rather than sending the input ...
9 years, 5 months ago (2011-07-01 17:57:37 UTC) #2
brettw
http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h File ppapi/c/ppb_input_event.h (right): http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h#newcode440 ppapi/c/ppb_input_event.h:440: PP_Var (*GetCharacterText)(PP_Resource character_event); What do you imagine the C++ ...
9 years, 5 months ago (2011-07-01 17:59:36 UTC) #3
darin (slow to review)
http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h File ppapi/c/ppb_input_event.h (right): http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h#newcode440 ppapi/c/ppb_input_event.h:440: PP_Var (*GetCharacterText)(PP_Resource character_event); On 2011/07/01 17:59:36, brettw wrote: > ...
9 years, 5 months ago (2011-07-01 18:06:24 UTC) #4
dmichael (off chromium)
On 2011/07/01 18:06:24, darin wrote: > http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h > File ppapi/c/ppb_input_event.h (right): > > http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h#newcode440 > ...
9 years, 5 months ago (2011-07-01 20:02:36 UTC) #5
dmichael (off chromium)
I like the new interfaces. The no-filtering use case is really compelling, I think. I ...
9 years, 5 months ago (2011-07-01 20:04:19 UTC) #6
dmichael (off chromium)
http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h File ppapi/c/ppb_input_event.h (right): http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h#newcode368 ppapi/c/ppb_input_event.h:368: PP_Point (*GetMousePosition)(PP_Resource mouse_event); On 2011/07/01 20:04:19, dmichael1 wrote: > ...
9 years, 5 months ago (2011-07-01 20:05:38 UTC) #7
brettw
I decided Darin was right about the interfaces so I separated it out. Fortunately with ...
9 years, 5 months ago (2011-07-01 20:23:45 UTC) #8
darin (slow to review)
http://codereview.chromium.org/7285010/diff/8007/ppapi/c/ppb_input_event.h File ppapi/c/ppb_input_event.h (right): http://codereview.chromium.org/7285010/diff/8007/ppapi/c/ppb_input_event.h#newcode290 ppapi/c/ppb_input_event.h:290: * the input event, rather than sending the input ...
9 years, 5 months ago (2011-07-01 20:51:15 UTC) #9
brettw
New snap up. http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h File ppapi/c/ppb_input_event.h (right): http://codereview.chromium.org/7285010/diff/8001/ppapi/c/ppb_input_event.h#newcode368 ppapi/c/ppb_input_event.h:368: PP_Point (*GetMousePosition)(PP_Resource mouse_event); Yeah. We get ...
9 years, 5 months ago (2011-07-01 21:14:52 UTC) #10
dmichael (off chromium)
LGTM
9 years, 5 months ago (2011-07-01 21:35:18 UTC) #11
brettw
I forgot to add ppb_input_event_impl.* to the CL, so I just added that. It's trivial ...
9 years, 5 months ago (2011-07-01 22:08:44 UTC) #12
kochi
http://codereview.chromium.org/7285010/diff/15020/ppapi/c/ppb_input_event.h File ppapi/c/ppb_input_event.h (right): http://codereview.chromium.org/7285010/diff/15020/ppapi/c/ppb_input_event.h#newcode231 ppapi/c/ppb_input_event.h:231: * for this class of input. I'm still not ...
9 years, 5 months ago (2011-07-04 13:39:56 UTC) #13
brettw
http://codereview.chromium.org/7285010/diff/15020/ppapi/c/ppb_input_event.h File ppapi/c/ppb_input_event.h (right): http://codereview.chromium.org/7285010/diff/15020/ppapi/c/ppb_input_event.h#newcode231 ppapi/c/ppb_input_event.h:231: * for this class of input. The reason I ...
9 years, 5 months ago (2011-07-04 16:21:23 UTC) #14
dmichael (off chromium)
Your try runs look unhappy; I think you have extra semicolons in ppapi_messages.h It would ...
9 years, 5 months ago (2011-07-05 15:37:22 UTC) #15
brettw
New snap up. http://codereview.chromium.org/7285010/diff/15020/ppapi/c/ppb_input_event.h File ppapi/c/ppb_input_event.h (right): http://codereview.chromium.org/7285010/diff/15020/ppapi/c/ppb_input_event.h#newcode231 ppapi/c/ppb_input_event.h:231: * for this class of input. ...
9 years, 5 months ago (2011-07-06 16:31:43 UTC) #16
dmichael (off chromium)
LGTM Suggestion for a future CL: Maybe we should add a function on PPB_Testing to ...
9 years, 5 months ago (2011-07-06 17:41:00 UTC) #17
darin (slow to review)
9 years, 5 months ago (2011-07-06 18:05:41 UTC) #18
+1

The WebKit layout test system has this, and it is really helpful.

-Darin

On Wed, Jul 6, 2011 at 10:41 AM, <dmichael@chromium.org> wrote:

> LGTM
>
> Suggestion for a future CL: Maybe we should add a function on PPB_Testing
> to
> inject input events so that we can easily test the rest of the machinery.
>
>
>
http://codereview.chromium.**org/7285010/<http://codereview.chromium.org/7285...
>

Powered by Google App Engine
This is Rietveld 408576698