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

Issue 115330: linux: Adding events to windowless plugins on Linux (Closed)

Created:
11 years, 7 months ago by Antoine Labour
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add events to windowless plugins on linux. This CL also refactors the event communication between WebPlugin and WebPluginDelegate, to use a cross-platform message based on WebInputEvent. BUG=8202 TEST=A lot of manual testing on Linux and Windows, with Flash plugins and a custom plugin that dumps events on Linux.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 37

Patch Set 4 : '' #

Total comments: 6

Patch Set 5 : '' #

Total comments: 3

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 9

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 17

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+698 lines, -281 lines) Patch
M chrome/common/plugin_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +25 lines, -71 lines 0 comments Download
M chrome/common/plugin_messages_internal.h View 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/webkit_param_traits.h View 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/plugin/webplugin_delegate_stub.h View 7 8 9 10 11 12 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/plugin/webplugin_delegate_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.h View 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.cc View 7 8 9 10 11 12 1 chunk +5 lines, -4 lines 0 comments Download
M third_party/npapi/bindings/npapi.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +16 lines, -10 lines 0 comments Download
A third_party/npapi/bindings/npapi_x11.h View 1 2 3 1 chunk +62 lines, -0 lines 0 comments Download
M webkit/api/public/WebInputEvent.h View 8 9 10 11 12 6 chunks +33 lines, -16 lines 0 comments Download
M webkit/api/src/gtk/WebInputEventFactory.cpp View 9 10 11 12 5 chunks +13 lines, -0 lines 0 comments Download
M webkit/api/src/mac/WebInputEventFactory.mm View 9 10 11 12 5 chunks +9 lines, -0 lines 0 comments Download
M webkit/api/src/win/WebInputEventFactory.cpp View 9 10 11 12 7 chunks +33 lines, -0 lines 0 comments Download
M webkit/glue/event_conversion.h View 9 10 11 12 2 chunks +19 lines, -1 line 0 comments Download
M webkit/glue/event_conversion.cc View 9 10 11 12 2 chunks +89 lines, -0 lines 0 comments Download
M webkit/glue/plugins/plugin_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -13 lines 0 comments Download
M webkit/glue/plugins/plugin_instance.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -8 lines 0 comments Download
M webkit/glue/plugins/plugin_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -6 lines 0 comments Download
M webkit/glue/plugins/test/plugin_javascript_open_popup.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -12 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.h View 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +121 lines, -10 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +208 lines, -27 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl_mac.mm View 7 8 9 10 11 12 3 chunks +8 lines, -2 lines 0 comments Download
M webkit/glue/webplugin_delegate.h View 7 8 9 10 11 12 2 chunks +6 lines, -1 line 0 comments Download
M webkit/glue/webplugin_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +16 lines, -86 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Antoine Labour
Several notes: - I ran into the issue of including intrusive X headers because of ...
11 years, 7 months ago (2009-05-13 23:13:59 UTC) #1
Evan Martin
(Sorry, this fell off my radar because you didn't send it to evan@chromium.org. Looking now.)
11 years, 7 months ago (2009-05-14 21:03:07 UTC) #2
Evan Martin
This looks pretty good to me. I'm CCing the plugin master and the Mac plugin ...
11 years, 7 months ago (2009-05-14 21:15:04 UTC) #3
jam
http://codereview.chromium.org/115330/diff/45/56 File chrome/common/plugin_messages.h (right): http://codereview.chromium.org/115330/diff/45/56#newcode269 Line 269: static void Write(Message* m, const param_type& p); On ...
11 years, 7 months ago (2009-05-14 22:15:17 UTC) #4
Antoine Labour
http://codereview.chromium.org/115330/diff/45/55 File chrome/common/plugin_messages.cc (right): http://codereview.chromium.org/115330/diff/45/55#newcode6 Line 6: #include "third_party/npapi/bindings/npapi_x11.h" On 2009/05/14 21:15:04, Evan Martin wrote: ...
11 years, 7 months ago (2009-05-14 22:18:26 UTC) #5
Amanda Walker
On 2009/05/13 23:13:59, Antoine Labour wrote: > - We send FocusIn events, but never FocusOut. ...
11 years, 7 months ago (2009-05-14 22:20:20 UTC) #6
Amanda Walker
http://codereview.chromium.org/115330/diff/66/1047 File webkit/glue/webplugin_impl.cc (right): http://codereview.chromium.org/115330/diff/66/1047#newcode964 Line 964: Can we push this into the delegate, instead ...
11 years, 7 months ago (2009-05-14 22:25:01 UTC) #7
jam
http://codereview.chromium.org/115330/diff/66/1047 File webkit/glue/webplugin_impl.cc (right): http://codereview.chromium.org/115330/diff/66/1047#newcode964 Line 964: On 2009/05/14 22:25:01, Amanda Walker wrote: > Can ...
11 years, 7 months ago (2009-05-14 22:48:35 UTC) #8
Antoine Labour
http://codereview.chromium.org/115330/diff/45/56 File chrome/common/plugin_messages.h (right): http://codereview.chromium.org/115330/diff/45/56#newcode269 Line 269: static void Write(Message* m, const param_type& p); On ...
11 years, 7 months ago (2009-05-14 22:59:56 UTC) #9
Amanda Walker
On 2009/05/14 22:48:35, John Abd-El-Malek wrote: > http://codereview.chromium.org/115330/diff/66/1047 > File webkit/glue/webplugin_impl.cc (right): > > http://codereview.chromium.org/115330/diff/66/1047#newcode964 ...
11 years, 7 months ago (2009-05-14 23:02:36 UTC) #10
Antoine Labour
http://codereview.chromium.org/115330/diff/66/1047 File webkit/glue/webplugin_impl.cc (right): http://codereview.chromium.org/115330/diff/66/1047#newcode964 Line 964: On 2009/05/14 22:48:35, John Abd-El-Malek wrote: > On ...
11 years, 7 months ago (2009-05-14 23:10:18 UTC) #11
Amanda Walker
http://codereview.chromium.org/115330/diff/66/1047 File webkit/glue/webplugin_impl.cc (right): http://codereview.chromium.org/115330/diff/66/1047#newcode964 Line 964: On 2009/05/14 23:10:18, Antoine Labour wrote: > I ...
11 years, 7 months ago (2009-05-14 23:22:37 UTC) #12
jam
http://codereview.chromium.org/115330/diff/66/1047 File webkit/glue/webplugin_impl.cc (right): http://codereview.chromium.org/115330/diff/66/1047#newcode964 Line 964: On 2009/05/14 23:10:18, Antoine Labour wrote: > On ...
11 years, 7 months ago (2009-05-14 23:24:58 UTC) #13
jam
http://codereview.chromium.org/115330/diff/116/138 File webkit/glue/webplugin_impl.h (right): http://codereview.chromium.org/115330/diff/116/138#newcode322 Line 322: bool MouseEventToWebMouseEvent(WebCore::MouseEvent* event, I think these two functions ...
11 years, 7 months ago (2009-05-19 05:50:25 UTC) #14
darin (slow to review)
http://codereview.chromium.org/115330/diff/116/127 File webkit/api/public/WebInputEvent.h (right): http://codereview.chromium.org/115330/diff/116/127#newcode50 Line 50: class WebInputEvent { it seems like there should ...
11 years, 7 months ago (2009-05-19 16:36:22 UTC) #15
jam
http://codereview.chromium.org/115330/diff/116/136 File webkit/glue/webplugin_delegate.h (right): http://codereview.chromium.org/115330/diff/116/136#newcode95 Line 95: virtual bool HandleKeyboardEvent(const WebKit::WebKeyboardEvent& event, On 2009/05/19 16:36:22, ...
11 years, 7 months ago (2009-05-19 16:45:21 UTC) #16
darin (slow to review)
In WebInputEventFactory, shouldn't you be setting the new mouse button modifiers? http://codereview.chromium.org/115330/diff/217/1184 File webkit/api/public/WebInputEvent.h (right): ...
11 years, 7 months ago (2009-05-20 16:22:05 UTC) #17
jam
lgtm with darin's nits http://codereview.chromium.org/115330/diff/217/1175 File chrome/common/plugin_messages.h (right): http://codereview.chromium.org/115330/diff/217/1175#newcode295 Line 295: // before validated. nit: ...
11 years, 7 months ago (2009-05-20 21:34:52 UTC) #18
Antoine Labour
http://codereview.chromium.org/115330/diff/217/1175 File chrome/common/plugin_messages.h (right): http://codereview.chromium.org/115330/diff/217/1175#newcode295 Line 295: // before validated. On 2009/05/20 21:34:52, John Abd-El-Malek ...
11 years, 7 months ago (2009-05-20 23:32:59 UTC) #19
darin (slow to review)
http://codereview.chromium.org/115330/diff/217/1184 File webkit/api/public/WebInputEvent.h (right): http://codereview.chromium.org/115330/diff/217/1184#newcode52 Line 52: WebInputEvent(unsigned int size_param) there isn't a shadowing problem ...
11 years, 7 months ago (2009-05-21 04:25:45 UTC) #20
Evan Martin
If y'all will LG, I will commit.
11 years, 7 months ago (2009-05-21 20:59:47 UTC) #21
Evan Martin
error: patch failed: webkit/api/src/win/WebInputEventFactory.cpp:130 error: webkit/api/src/win/WebInputEventFactory.cpp: patch does not apply Maybe you need to sync?
11 years, 7 months ago (2009-05-21 21:38:07 UTC) #22
Evan Martin
And now I think maybe you need to upload your new patch?
11 years, 7 months ago (2009-05-21 22:33:08 UTC) #23
Evan Martin
BTW, it'd probably be useful to check in your test plugin as well.
11 years, 7 months ago (2009-05-21 22:36:56 UTC) #24
Evan Martin
aargh i got so excited about the tree opening i forgot the credit again. :\
11 years, 7 months ago (2009-05-22 01:29:54 UTC) #25
darin (slow to review)
> aargh i got so excited about the tree opening i forgot the credit again. ...
11 years, 7 months ago (2009-05-22 15:08:47 UTC) #26
Evan Martin
r16708 (The commit message came from my follow-up review, which was this plus fixes to ...
11 years, 7 months ago (2009-05-22 15:17:11 UTC) #27
Evan Martin
11 years, 7 months ago (2009-05-22 15:17:48 UTC) #28
Whoops, wires crossed.  Commit message was correct, and this was r16692.

Powered by Google App Engine
This is Rietveld 408576698