summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Pull NaCl deps, remove temporary hack to keep the build compiling in PPAPI.brettw@chromium.org2011-01-071-7/+0
| | | | | | | | TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6122002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70724 0039d316-1c4b-4281-b951-d872f2087c98
* Add an instance parameter to var objects, audio, and the 2D API. This ↵brettw@chromium.org2011-01-0720-75/+118
| | | | | | | | | | | | | | | | replaces the module in most cases. This will be used in the proxy to multiplex one plugin across multiple renderer processes. We need the instance in the proxy to know which process to send it to. I added a deprecated var object creation function for native client, which depends on the module and this is very difficult to change. Because it doesn't have the multiplexing requirements, this is fine for now. TEST=ppapi ui tests BUG=none Review URL: http://codereview.chromium.org/6085009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70721 0039d316-1c4b-4281-b951-d872f2087c98
* Expose Map/UnmapTexSubImage2DCHROMIUM to pepper pluginspiman@google.com2011-01-071-0/+41
| | | | | | | | | | | This is done as a separate interface, but similar to PPB_OpenGLES2_Dev BUG=none TEST=With Flash Review URL: http://codereview.chromium.org/6080012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70706 0039d316-1c4b-4281-b951-d872f2087c98
* Private Pepper extension for Flapper to allow TCP connections to be madeviettrungluu@chromium.org2011-01-073-1/+145
| | | | | | | | | | | | | | (from inside the renderer sandbox). (Only enabled on ChromeOS, since it opens a hole in the renderer. This should be revisited, with controls tightened, once Flapper runs out of process.) BUG=none TEST=none Review URL: http://codereview.chromium.org/5098002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70687 0039d316-1c4b-4281-b951-d872f2087c98
* Move ppb_flash.h to ppapi/c/private ...viettrungluu@chromium.org2011-01-065-5/+122
| | | | | | | | | | ... from webkit/plugins/ppapi. BUG=none TEST=builds Review URL: http://codereview.chromium.org/6141001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70668 0039d316-1c4b-4281-b951-d872f2087c98
* Make Graphics3D::SwapBuffers take a completion callbackpiman@google.com2011-01-052-4/+4
| | | | | | | | | BUG=none TEST=with demo_simple_vertex_shader, rate control works Review URL: http://codereview.chromium.org/5944001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70474 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bug introduced when moving image_data to its own file.brettw@chromium.org2011-01-031-1/+0
| | | | | | | | TEST=manual (paints on Linux) BUG=none Review URL: http://codereview.chromium.org/6073006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70394 0039d316-1c4b-4281-b951-d872f2087c98
* Move some functions out of win_util and into hwnd_util, and into a new ↵brettw@google.com2010-12-309-42/+10
| | | | | | | | | | | | win/shell file. This also moves two functions that were only called once from win_util and inwo window_win and download_util, respectively. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6035011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70321 0039d316-1c4b-4281-b951-d872f2087c98
* Move some misc thread-related stuff from base to base/thread and into the basebrettw@chromium.org2010-12-302-2/+2
| | | | | | | | | | namespace. This does not move the "hard" thread stuff (thread.h). TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6079009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70315 0039d316-1c4b-4281-b951-d872f2087c98
* Added ppapi::Surface3D. This CL completes the new Pepper3D interface. The ↵alokp@chromium.org2010-12-2811-25/+218
| | | | | | | | implementation is still incomplete but all gpu demos still work! Review URL: http://codereview.chromium.org/6047008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70229 0039d316-1c4b-4281-b951-d872f2087c98
* Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ↵jam@chromium.org2010-12-2445-55/+122
| | | | | | | | | whether a message was processed or not. TBR=brettw Review URL: http://codereview.chromium.org/5978003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70139 0039d316-1c4b-4281-b951-d872f2087c98
* Added ppapi::Context3D interface. The API has already been reviewed. I am ↵alokp@chromium.org2010-12-2312-179/+519
| | | | | | | | adding the new API incrementally so as not to break the demos. Review URL: http://codereview.chromium.org/6062003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70037 0039d316-1c4b-4281-b951-d872f2087c98
* Implement operator= for FontDev (it currently gives errors if you try to usebrettw@chromium.org2010-12-222-1/+8
| | | | | | | | | | it). De-inline the constructor. TEST=none BUG=none Review URL: http://codereview.chromium.org/5962005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69975 0039d316-1c4b-4281-b951-d872f2087c98
* Fix comment on trusted File IO method to indicate that HANDLE is returned on ↵bbudge@google.com2010-12-221-4/+5
| | | | | | | | | | Windows TEST=none BUG=http://code.google.com/p/nativeclient/issues/detail?id=938 Review URL: http://codereview.chromium.org/6079001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69966 0039d316-1c4b-4281-b951-d872f2087c98
* Improve documentation for the tools for generating size checks, based on ↵dmichael@google.com2010-12-223-89/+220
| | | | | | | | | | | | | | | comments on: http://codereview.chromium.org/5730003/ Also automated handling of long and unsigned long as suggested in review comments for that CL. BUG=None TEST=Reran generate_ppapi_size_checks.py; produced the same output. Review URL: http://codereview.chromium.org/6014007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69950 0039d316-1c4b-4281-b951-d872f2087c98
* Moved the logic of maintaining the current context to gles2 helper library.alokp@chromium.org2010-12-2110-1114/+555
| | | | | | Review URL: http://codereview.chromium.org/5927002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69838 0039d316-1c4b-4281-b951-d872f2087c98
* Properly cancel PPAPI callbacks.viettrungluu@chromium.org2010-12-214-47/+217
| | | | | | | | | | | This sets up infrastructure to properly cancel PPAPI callbacks (which have particular semantics), and converts a couple things to use them. BUG= TEST=test_shell_tests and PPAPI tests Review URL: http://codereview.chromium.org/5562008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69773 0039d316-1c4b-4281-b951-d872f2087c98
* Remove static initializers.neb@chromium.org2010-12-2034-531/+546
| | | | | | | | | BUG=52915 TEST=no new functionality, passes ppapi_tests Review URL: http://codereview.chromium.org/5797006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69732 0039d316-1c4b-4281-b951-d872f2087c98
* Change ppapi C++ comment style into C.neb@chromium.org2010-12-2066-353/+421
| | | | | | | | | | | This allows graphics 2d example to compile. BUG=none TEST=Compiling examples/2d/graphics_2d.c with NaCl works. Review URL: http://codereview.chromium.org/5997003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69725 0039d316-1c4b-4281-b951-d872f2087c98
* Integrate NaCl Head - Revert 69309 to restore 64b handles in PPAPInoelallen@google.com2010-12-1848-58/+65
| | | | | | | | | BUG= http://code.google.com/p/nativeclient/issues/detail?id=933 TEST=It compiles can run the nacl ppapi srpc test Review URL: http://codereview.chromium.org/6041001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69602 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed PPB_NaClUtil to PPB_NaCl as requested by brettw.abarth@chromium.org2010-12-172-4/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69580 0039d316-1c4b-4281-b951-d872f2087c98
* Add LaunchSelLdr and UrandomFD to PPAPIabarth@chromium.org2010-12-171-1/+13
| | | | | | | | | LaunchSelLdr just calls through to the webkit_glue backend, which calls through a bunch more layers of abstraction for us. UrandomFD returns the file descriptor of /dev/urandom (on Posix), which NaCl uses for some purpose by can't get directly because of the sandbox. Review URL: http://codereview.chromium.org/6023003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69578 0039d316-1c4b-4281-b951-d872f2087c98
* Add stub PPAPI for launching NaCl's sel_ldr process.abarth@chromium.org2010-12-172-0/+20
| | | | | | | | | | | | | | | | | | | | | | | In ArcticSea, we're going to load the NaCl plugin in the render process. The NaCl plugin needs to create a sel_ldr process to host the NEXE, but when the plugin lives inside the render process, the plugin is sandboxed, so it can't create a process. This API instructs the browser to launch a sel_ldr process and wire up a bunch of IMC channels between the plugin and the new process. In reality, the sel_ldr process is just chrome.exe run with a command line flag that causes it to call NaClMain instead of BrowserMain or RendererMain. Previously, NaCl accomplished this task by smuggling a function pointer (cast as an int) from render_process_impl to the NPAPI NaCl plugin. Rather than use the same approach again, we're creating a legit way for the PPAPI plugin to ask the browser to spawn the sel_ldr process. In BalticSea, we'll likely run the NaCl plugin out-of-process (e.g., in a PPAPI process). In that case, the plugin can just host the NEXE internally, and we'll be able to remove this interface. Review URL: http://codereview.chromium.org/5897004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69568 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 69511 - Make Graphics3D::SwapBuffers take a completion callbackpiman@google.com2010-12-173-13/+6
| | | | | | | | | | | | BUG=none TEST=with pepper flash, rate control works Review URL: http://codereview.chromium.org/5944001 TBR=piman@google.com Review URL: http://codereview.chromium.org/5835007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69512 0039d316-1c4b-4281-b951-d872f2087c98
* Make Graphics3D::SwapBuffers take a completion callbackpiman@google.com2010-12-173-6/+13
| | | | | | | | | BUG=none TEST=with pepper flash, rate control works Review URL: http://codereview.chromium.org/5944001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69511 0039d316-1c4b-4281-b951-d872f2087c98