summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* Share PPAPI out-of-process plugins between renderer processes.brettw@chromium.org2011-02-136-61/+89
| | | | | | | | | | | | | This provides the hook-up for plugin sharing but not shutdown or cleanup from errors. There is still a lot of work to do cleaning up in the plugin and the browser when a renderer dies, or cleaning up in the renderer and browser when a plugin dies. Currently, even the normal exit case crashes in the browser. But fixing it in this patch would be too complicated to write or review, so I'm going to do shutdown & error handling in a followup. Review URL: http://codereview.chromium.org/6486034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74766 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper GLES fixes to support 3D in NaCl.neb@chromium.org2011-02-111-3/+4
| | | | | | | | | BUG=none TEST=NaCl:910 Review URL: http://codereview.chromium.org/6505002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74674 0039d316-1c4b-4281-b951-d872f2087c98
* Revert the accidentially changed auto-generated files.jochen@chromium.org2011-02-102-2/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6490005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74460 0039d316-1c4b-4281-b951-d872f2087c98
* Minor changes to layout to remove variables section. Doxyfile changed to ↵jond@google.com2011-02-102-3/+3
| | | | | | | | find and exclude pp_macros.h Review URL: http://codereview.chromium.org/6458032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74455 0039d316-1c4b-4281-b951-d872f2087c98
* Only invoke WebKit methods in browsing data helpers on the WEBKIT thread.jochen@chromium.org2011-02-102-2/+2
| | | | | | | | | BUG=71786 TEST=browser & unit tests Review URL: http://codereview.chromium.org/6246105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74433 0039d316-1c4b-4281-b951-d872f2087c98
* Update the checked-in GLES2 bindings and implementation to match the ↵bryner@chromium.org2011-02-081-1/+1
| | | | | | | | | | | | | auto-generated files. This allows you to build all targets without ending up with spurious comment changes in your client. BUG=none TEST=none Review URL: http://codereview.chromium.org/6441001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74177 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 73222 - Make target running GLES2 autogen script.gavinp@chromium.org2011-02-081-25/+0
| | | | | | | | | | | | | | | | | | | | Also lays groundwork for rebuilding Pepper OpenGL ES bindings as part of the build. BUG=none TEST=run "make ppapi_gles_bindings" or "make ppapi_gles_implementation". Review URL: http://codereview.chromium.org/5212006 TBR=neb@chromium.org This change was causing just building to create merge conflicts in clean repos. Either these targets shouldn't be part of standard build targets like "chrome" or "unit_tests", or we shouldn't have build targets which generate output into the working tree... Review URL: http://codereview.chromium.org/6461001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74161 0039d316-1c4b-4281-b951-d872f2087c98
* Rent syncemove all uses of the global Dispatcher Get function.brettw@chromium.org2011-02-0868-629/+1245
| | | | | | | | | | | | | | | | | | | This reqired reworking how plugin->host GetInterface works. Previously, interface requests were symmetric where each side would first do a SupportsInterface to see if the remote side supports the interface, then create the proxy. Since the plugin may talk to multiple renderers, we don't know where to send these requests. The solution is to make the assumption that the renderer always supports all PPB interfaces (which is possible since the proxy is compiled with the executable). This also adds some better lookup for interfaces to avoid having multiple lists of interfaces. We now have a list of interfaces and factory functions in dispatcher.cc. Add some additional testing infrastructure for the dispatchers with simple tests. Review URL: http://codereview.chromium.org/6286070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74121 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Make PPB_FileChooser_Dev::Show "return" PP_ERROR_USERCANCEL if no ↵viettrungluu@chromium.org2011-02-071-3/+5
| | | | | | | | | | | file is selected. BUG=none TEST=none Review URL: http://codereview.chromium.org/6286128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73995 0039d316-1c4b-4281-b951-d872f2087c98
* Review URL: http://codereview.chromium.org/6312098jond@google.com2011-02-038-52/+124
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73683 0039d316-1c4b-4281-b951-d872f2087c98
* Fix FileIO and FileRef PPAPI tests to match changes inadamk@chromium.org2011-02-032-25/+26
| | | | | | | | | http://src.chromium.org/viewvc/chrome?view=rev&revision=71544, and try re-enabling them in the UI tests. Review URL: http://codereview.chromium.org/6410064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73677 0039d316-1c4b-4281-b951-d872f2087c98
* Review URL: http://codereview.chromium.org/6286018jond@google.com2011-02-032-19/+73
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73635 0039d316-1c4b-4281-b951-d872f2087c98
* This Doxyfile has the TYPEDEF_HIDES_STRUCT = NO setting to fix the PP_Var jond@google.com2011-02-021-718/+719
| | | | | | | issue whereby PP_Var docs weren't showing up in the right place. Review URL: http://codereview.chromium.org/6312099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73506 0039d316-1c4b-4281-b951-d872f2087c98
* Fix reentrancy in HandleEvent by posting a taskpiman@google.com2011-02-021-3/+9
| | | | | | | | | BUG=none TEST=pepper flash, run it and move the mouse everywhere. Review URL: http://codereview.chromium.org/6260057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73475 0039d316-1c4b-4281-b951-d872f2087c98
* Implement proxy for 3d-related interfacespiman@google.com2011-02-0218-5/+2330
| | | | | | | | | BUG=none TEST=Pepper Flash Review URL: http://codereview.chromium.org/6400007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73472 0039d316-1c4b-4281-b951-d872f2087c98
* Make target running GLES2 autogen script.neb@chromium.org2011-01-311-0/+25
| | | | | | | | | | | Also lays groundwork for rebuilding Pepper OpenGL ES bindings as part of the build. BUG=none TEST=run "make ppapi_gles_bindings" or "make ppapi_gles_implementation". Review URL: http://codereview.chromium.org/5212006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73222 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper/Flapper: First pass at context menu implementation.viettrungluu@chromium.org2011-01-316-3/+158
| | | | | | | | | | | | This meets the needs of Flapper. We may want to generalize/restrict/modify the API for inclusion into PPAPI, but hopefully this lays a foundation. BUG=none TEST=Flapper context menus work (with the right version of Flapper) Review URL: http://codereview.chromium.org/6253017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73193 0039d316-1c4b-4281-b951-d872f2087c98
* Include what you use in ppb_context_3d_trusted_devneb@chromium.org2011-01-291-0/+2
| | | | | | | | | BUG=none TEST=ppb_context_3d_trusted_dev.h compiles standalone Review URL: http://codereview.chromium.org/6304027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73060 0039d316-1c4b-4281-b951-d872f2087c98
* Some minor tweaks to doxygen code. Namely adding @file sections to the start jond@google.com2011-01-2823-12/+3188
| | | | | | | of many files. Review URL: http://codereview.chromium.org/6261031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73030 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some bugs with incorrect ! (both missing and extra) in the proxy error ↵brettw@chromium.org2011-01-287-60/+25
| | | | | | | | | | | | | | handling. Go back to using the old code for the audio created notification. There was a bug deserializing one of the handles, and the new code I wrote didn't turn out to be necessary anyway. TEST=audio plays in out-of-process proxy (manual) BUG=none Review URL: http://codereview.chromium.org/6341015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73003 0039d316-1c4b-4281-b951-d872f2087c98
* Implements PPB_Context3DTrusted_Dev. Also add CreateRaw/Initialize for proxypiman@google.com2011-01-281-1/+14
| | | | | | | | | | | This is the follow up to http://codereview.chromium.org/6293023/ BUG=none TEST=Pepper Flash Review URL: http://codereview.chromium.org/6314025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73000 0039d316-1c4b-4281-b951-d872f2087c98
* Removed Doxygen groupings by ppb_, pp_, and ppp_. Added grouping by ↵jond@google.com2011-01-2826-93/+399
| | | | | | | | construct (enums, interfaces, and so on). Review URL: http://codereview.chromium.org/6297018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72960 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor PPAPI proxy resource handling to maintain which host they came from,brettw@chromium.org2011-01-2764-831/+1670
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and to map back to that host when calling functions on them. Adds a mapping between resources generated by the hosts to a new list inside the plugin so there can't be overlaps. This means there are now two meanings for a PP_Resource, one in the plugin process and one in the host process. This is potentially very confusing. I introduced a new object called a HostResource that always represents a "host" PP_Resource to try to prevent errors. In the plugin side of the proxy, it only deals with PP_Resources valid in the plugin, and SerializedResources valid in the host. It also encapsulates the associated instance, which simplifies some code. Each PluginResource object maintains its SerializedResource which the proxy uses to send to the host for requests. This requires getting the PluginResource object in more proxy calls. This fixes a bug in var sending introduced in my previous patch. The var releasing from EndSendPassRef used the host var rather than the plugin var. I had to add more plumbing to get the dispatcher at this location and convert to a plugin var. I removed the separate file for ImageData and put it in ppb_image_data_proxy like for the other resource types. TEST=some unit tests included BUG=none Review URL: http://codereview.chromium.org/6334016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72879 0039d316-1c4b-4281-b951-d872f2087c98
* Include what you use in ppb_surface_3d_dev.h.neb@chromium.org2011-01-261-0/+1
| | | | | | | | | BUG=none TEST=compiles standalone Review URL: http://codereview.chromium.org/6355013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72651 0039d316-1c4b-4281-b951-d872f2087c98
* PPB_Context3D_Trusted interface.neb@chromium.org2011-01-262-0/+79
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6322010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72615 0039d316-1c4b-4281-b951-d872f2087c98
* Break ppapi.gyp into several gypi's to reduce contention and allow projects ↵noelallen@google.com2011-01-225-644/+723
| | | | | | | | | | | | | | | to pick which portion of ppapi to use. This revents ppapi from inducing dependencies on other libraries such as base, or large code bases such as mesa in the cases where the ppapi user doesn't need them. BUG=nacl1339 TEST=None Review URL: http://codereview.chromium.org/6265022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72248 0039d316-1c4b-4281-b951-d872f2087c98
* Fix comment.darin@chromium.org2011-01-221-4/+4
| | | | | | | | TBR=brettw Review URL: http://codereview.chromium.org/6278014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72242 0039d316-1c4b-4281-b951-d872f2087c98
* When we detect a PDF with an unsupported feature, ask the user if they want ↵jam@chromium.org2011-01-221-0/+3
| | | | | | | | | to view it with Adobe Reader if it's installed. If it's not, ask them if they want to launch the url to install it. If it's installed and out of date, show an interstitial. BUG=65339 Review URL: http://codereview.chromium.org/6259008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72240 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Add context menu events.viettrungluu@chromium.org2011-01-211-13/+13
| | | | | | | | | BUG=50984 TEST=none Review URL: http://codereview.chromium.org/6257011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72189 0039d316-1c4b-4281-b951-d872f2087c98
* Add a target for the proxy unittests. Write tests for the var tracker.brettw@chromium.org2011-01-214-0/+206
| | | | | | | | TEST=this is it BUG=none Review URL: http://codereview.chromium.org/6250024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72158 0039d316-1c4b-4281-b951-d872f2087c98
* Only close the sync socket if it is non-NULL. This fixesnfullagar@google.com2011-01-211-1/+2
| | | | | | | | | | a NaCl page reload / surf-away regression. BUG=NaCl ppapi audio proxy TEST=native_client/tests/ppapi_example_audio Review URL: http://codereview.chromium.org/6300011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72099 0039d316-1c4b-4281-b951-d872f2087c98
* ppapi_egl target is currently unused as verified by using:noelallen@google.com2011-01-212-40/+55
| | | | | | | | | | | | grep --include="*.gyp*" -nr -F "ppapi_egl" . However this library causes NaCl to require third_party/mesa which relative to NaCl is large. This CL moves the definition of this static library from ppapi to the lib/gl directory under ppapi so that PPAPI users are not forced to DEPS in mesa. Review URL: http://codereview.chromium.org/6342012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72090 0039d316-1c4b-4281-b951-d872f2087c98
* First pass at making the proxy handle multiple renderers. This associates thebrettw@chromium.org2011-01-2151-466/+1070
| | | | | | | | | | | | | | | | | | | | instance with resources and has most callers retrieve the dispatcher according to the appropriate instance. This isn't hooked up to anything yet. This changes some PPB_Flash interface methods to use PP_Bool. The most challenging part of the change is in the plugin_var_tracker which now needs to track which dispatcher each var object came from, and remap var IDs since each renderer will be generating var IDs in its own space, which will likely overlap. A similar system will need to be done for resources which is not implemented yet. I added some null checks in audio_impl because audio_ can be NULL in some cases when using the trusted API. I discovered this when testing NaCl for this patch. Review URL: http://codereview.chromium.org/6282007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72053 0039d316-1c4b-4281-b951-d872f2087c98
* Remove dev/audio, dev/audio_config, and dev/audio_trustednfullagar@google.com2011-01-2010-419/+5
| | | | | | | | | Also, bump NaCl in deps to pull in new version of NaCl, which has now migrated to non-dev audio. Review URL: http://codereview.chromium.org/6281007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71897 0039d316-1c4b-4281-b951-d872f2087c98
* Make PP_Resources associated with the Instance rather than the module. Thisbrettw@chromium.org2011-01-1546-195/+255
| | | | | | | | | | | | | | | | | | | | | | adds PP_Instance to the necessary places in the API to make this possible. String and Object vars used to be PP_Resources. But it is not practical to assocaited strings with an instance since then we can't have implicit var constructors and have to litter every string with an instance. So this changes vars to use their own tracking system associated with the module (i.e. keeping the current semantics) and making it no longer a resource. I made the internal Var IDs 32 bits since Neb is about to land his 64->32 change. Now it force-deletes resources associated with an instance when that instance goes away. I added some additional code and tracking in ResourceTracker to do this. I could then remove the Instance::Observer class since the resource can use the (now renamed) StoppedTracking to know that it's being deleted in response to the instance being destroyed. TEST=ppapi ui tests BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71544 0039d316-1c4b-4281-b951-d872f2087c98
* melt the non-dev audio interface to 0.5nfullagar@google.com2011-01-153-3/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6361004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71539 0039d316-1c4b-4281-b951-d872f2087c98
* Move ppapi audio interface out of dev, butnfullagar@google.com2011-01-1517-45/+470
| | | | | | | | | | | | for this CL, also keep the old dev interface around temporarily, to avoid tree breakage. Add sample_rate to RecommendSampleFrameCount() to the non-dev audio interface. Currently ignored, but useful information to use when we need to refine RecommendSampleFrameCount() Review URL: http://codereview.chromium.org/6279003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71527 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Pepper URL Loader callbacks.viettrungluu@chromium.org2011-01-143-7/+74
| | | | | | | | | | | | | | (Previously committed r71334, reverted r71400. Added null check pointed out by jam.) Add some tests (for aborting calls). BUG=none TEST=ppapi_tests Review URL: http://codereview.chromium.org/6280005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71463 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of revert 69309 - switch handles to 32 bit in PPAPI.neb@chromium.org2011-01-1444-61/+54
| | | | | | | | | | | | | David Sehr helped me get the NaCl side working so I'll try to land this again. Previous CL at http://codereview.chromium.org/5837001 BUG=69474 TEST=compiles Review URL: http://codereview.chromium.org/6231003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71419 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 71334 - Fix Pepper URL Loader callbacks.viettrungluu@chromium.org2011-01-143-74/+7
| | | | | | | | | | | | | | | | | [Not applying the "obvious" fix, since it might lead to callbacks being called incorrectly.] Add some tests (for aborting calls). BUG=none TEST=ppapi_tests Review URL: http://codereview.chromium.org/6220006 TBR=viettrungluu@chromium.org,jam@chromium.org,brettw@chromium.org Review URL: http://codereview.chromium.org/6254003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71400 0039d316-1c4b-4281-b951-d872f2087c98
* Added plugin size to error logging and a logging statement when the plugin ↵ddorwin@chromium.org2011-01-131-2/+8
| | | | | | | | | | | | | size changes. I found these changes useful while debugging issues when modifying the plugin. BUG=none TEST=none Review URL: http://codereview.chromium.org/6214007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71366 0039d316-1c4b-4281-b951-d872f2087c98
* Add ability to toggle the size of the plugin.ddorwin@chromium.org2011-01-131-3/+25
| | | | | | | | | | Useful for exercising DidChangeView() and needed (along with .cc changes) to test bug 64847. BUG=none TEST=none Review URL: http://codereview.chromium.org/6156004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71362 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Pepper URL Loader callbacks.viettrungluu@chromium.org2011-01-133-7/+74
| | | | | | | | | | | Add some tests (for aborting calls). BUG=none TEST=ppapi_tests Review URL: http://codereview.chromium.org/6220006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71334 0039d316-1c4b-4281-b951-d872f2087c98
* Move webkit/plugins/ppapi/ppb_pdf.h to ppapi/c/private.viettrungluu@chromium.org2011-01-135-8/+139
| | | | | | | | BUG=none TEST=builds Review URL: http://codereview.chromium.org/6255001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71328 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ppapi_example_2d.neb@chromium.org2011-01-121-5/+2
| | | | | | | | | | | Module->Instance CL missed this file. BUG= code.google.com/p/nativeclient/issues/detail?id=901 TEST=this one Review URL: http://codereview.chromium.org/6222003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71231 0039d316-1c4b-4281-b951-d872f2087c98
* Fix self-assignment in pp::Resourcepiman@google.com2011-01-121-2/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6212003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71123 0039d316-1c4b-4281-b951-d872f2087c98
* Make audio example up-to-datenfullagar@google.com2011-01-111-18/+31
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6135007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71095 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Pepper File IO callbacks.viettrungluu@chromium.org2011-01-112-2/+206
| | | | | | | | | | | | Add some tests (for aborting calls). Also fix Flash NetConnector callback running. BUG=none TEST=ppapi_tests Review URL: http://codereview.chromium.org/6228004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71092 0039d316-1c4b-4281-b951-d872f2087c98
* Use PASS() everywhere in ppapi/tests.neb@chromium.org2011-01-0712-67/+67
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/4182010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70779 0039d316-1c4b-4281-b951-d872f2087c98
* PPB_Class simple test.neb@chromium.org2011-01-073-0/+84
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6072003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70778 0039d316-1c4b-4281-b951-d872f2087c98