Descriptionlinux plugins: eliminate GtkWidget* from plugin process
[retry with mac hopefully fixed this time]
GtkWidget* (and its wrapper, gfx::NativeView) only work within a
single process. Plugins already work with a lower-level type that
works across processes -- an X Window id. The parent of a plugin
is an HWND on windows, but it's an X Window id on X. So we
introduce a new typedef wrapping that and push it through all the
places in the code that needs it.
Since we no longer have a GtkSocket in the WebPluginDelegateImpl,
we need to do a bit more work in the WebViewDelegate (aka the
browser process in the multiproc world).
We also need the plugin host (the browser) to track the
GtkSockets that are hosting the plugin, as well as destroy them
when necessary. To do this we require the plugin owner to
grab the plug-removed signal rather than putting its handler in
GtkPluginContainer; this is the way it worked before I'd refactored
into GtkPluginContainer so it shouldn't be so bad.
This change still only works in test_shell, but the refactoring
should translate to the multiprocess case pretty easily.
Patch Set 1 #Patch Set 2 : wip #Patch Set 3 : cleaner #
Total comments: 1
Patch Set 4 : now works, conceptually #Patch Set 5 : fleshed out, crashes in GDK_DISPLAY (?) #Patch Set 6 : hacks #Patch Set 7 : one more hack #Patch Set 8 : works, almost! #Patch Set 9 : add note so i don't forget piman comment #Patch Set 10 : clean up diff #Patch Set 11 : clean #Patch Set 12 : flash doesn't crash anymore #
Total comments: 9
Patch Set 13 : ok #
Total comments: 3
Patch Set 14 : renamed #Patch Set 15 : shutdown works #Patch Set 16 : retry #Messages
Total messages: 14 (0 generated)
|