summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* WebSocket Pepper API: SRPC proxy implementationtoyoshim@chromium.org2012-01-1924-14/+1711
| | | | | | | | | | | | | | | | | Implement PPB_WebSocket _Dev SRPC proxy - support PP_Var write back in plugin/browser callback bridge - resource leak fix in browser_callback Enable all WebSocket related ppapi tests in NaCl - support TEST_PPAPI_NACL_VIA_HTTP_WITH_WS macro in ppapi_uitest - fix a test which expects synchronous completion BUG=87310 TEST=ui_tests --gtest_filter='PPAPINaClTest.WebSocket_*' Review URL: https://chromiumcodereview.appspot.com/9227008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118268 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r118525 / Re-land r118240 - the build failure was a flake.dpranke@chromium.org2012-01-191-1/+2
| | | | | | | | | | | | This change re-enables building gles2_c_lib as a component. TBR=gman@chromium.org BUG=107735 TEST=waterfall stays green Review URL: https://chromiumcodereview.appspot.com/9150022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118263 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket Pepper API: WebArrayBuffer supporttoyoshim@chromium.org2012-01-195-11/+57
| | | | | | | | | | | | | | | - support SetBinaryType() - support WebArrayBuffer and stop supporting WebData - use Var instead of PP_Var to hold received messages - Add C++ interfaces to handle binary types BUG=87310 TEST=ui_test --gtest_filter='PPAPITest.WebSocket_*' Review URL: http://codereview.chromium.org/9026007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118258 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper SRPC proxy style and type nitstoyoshim@chromium.org2012-01-1977-467/+412
| | | | | | | | | | | | | - use NACL_PRId32 for PP_Instance, PP_Resource, and PP_Module instead of NACL_PRIu32 in DebugPrintf - use PP_ToBool or PP_FromBool to cast between PP_Bool and bool BUG=none TEST=ui_test Review URL: http://codereview.chromium.org/9253011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118253 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r118240 - gles_2_c_lib as a component.dpranke@chromium.org2012-01-191-2/+1
| | | | | | | | | | | | Broke compile on windows. TBR=gman@chromium.org BUG=107735 TEST=waterfall greens up again Review URL: https://chromiumcodereview.appspot.com/9264003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118252 0039d316-1c4b-4281-b951-d872f2087c98
* Output generated headers using Python's "wb" mode, to prevent EOL-munging.wez@chromium.org2012-01-191-2/+2
| | | | | | | | | | | | This results in PPAPI headers always being generated with Unix line-endings. BUG=109116 TEST=Re-generate PPAPI headers on a Windows system, using a Windows-native version of Python, and verify that the generated headers have Unix line-endings. Review URL: http://codereview.chromium.org/9088010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118245 0039d316-1c4b-4281-b951-d872f2087c98
* This change makes gles2_c_lib work as a component. It introduces a ↵dpranke@chromium.org2012-01-191-1/+2
| | | | | | | | | | | | | gles2_c_lib_export.h file, and ensures that all of the GL shim symbols are exported properly. This also fixes a couple of prototype issues in glTexStorage2DEXT and glEnableFeatureCHROMIUM along the way. R=gman@chromium.org TEST=waterfall, specifically platform/chromium/compositing/accelerated-drawing tests don't crash Review URL: https://chromiumcodereview.appspot.com/8956051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118240 0039d316-1c4b-4281-b951-d872f2087c98
* Exposed PPB_NetAddress_Private.ygorshenin@chromium.org2012-01-1819-0/+892
| | | | | | | | | | | Necessary for working with PP_NetAddress_Private structure in NaCl module (for instance, for changing port after TCP connection). BUG=108265 TEST=UI test NetAddressPrivateUntrusted Review URL: https://chromiumcodereview.appspot.com/9007009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118089 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket Pepper API: fix wrong return code on thunktoyoshim@chromium.org2012-01-181-2/+2
| | | | | | | | | | | | | Some thunk functions returned PP_ERROR_BADRESOURCE for EnterResource failure though returning value is not int32_t error code. BUG=87310 TEST=ui_tests --gtest_filter='PPAPI*.WebSocket_*' Review URL: http://codereview.chromium.org/9097008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118050 0039d316-1c4b-4281-b951-d872f2087c98
* Added bounds checks to the URLLoader prefetch buffer threshhold.raymes@chromium.org2012-01-172-2/+36
| | | | | | | | | | BUG=89842 TEST=./ui_tests --gtest_filter=PPAPITest.URLLoader*PrefetchBufferThreshold Review URL: http://codereview.chromium.org/9139076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117970 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper/Flapper: Add C++ wrappers for PPB_Flash_Clipboard.viettrungluu@chromium.org2012-01-143-0/+120
| | | | | | | | | | This makes the interface a bit easier to use and, more importantly, easier to update the interface while maintaining suitable compatibility. Review URL: http://codereview.chromium.org/9207012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117750 0039d316-1c4b-4281-b951-d872f2087c98
* Adding functionality to print PDF embedded in the html page.gene@chromium.org2012-01-131-0/+3
| | | | | | | | | | Additional changes needed in PDF plugin to use this functionality. BUG=89241 TEST=Test printing using PDF toolbar on the embedded and normal PDFs. Please do so AFTER PDF changes will be submitted (they have to be submitted separately). Review URL: http://codereview.chromium.org/9139024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117699 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed capitalization of error codes as per bug here:jond@google.com2012-01-136-16/+16
| | | | | | | | http://code.google.com/p/nativeclient-sdk/issues/detail?id=125 Review URL: http://codereview.chromium.org/9190069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117662 0039d316-1c4b-4281-b951-d872f2087c98
* Add NaCl proxy for pepper gamepadscottmg@chromium.org2012-01-1316-2/+196
| | | | | | | | | | | BUG=79098 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117561 Review URL: http://codereview.chromium.org/9148044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117657 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed a couple warnings that came up during doxygen generation. Changed ↵jond@google.com2012-01-132-4/+4
| | | | | | | | <codee> to <code> and <script> to <code>. Review URL: http://codereview.chromium.org/9132003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117654 0039d316-1c4b-4281-b951-d872f2087c98
* Needed to add an @file introduction and a class introduction.jond@google.com2012-01-131-1/+7
| | | | | | Review URL: http://codereview.chromium.org/9124014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117651 0039d316-1c4b-4281-b951-d872f2087c98
* Lift the 64K message size limit for postMessage to/from NativeClient.sehr@google.com2012-01-1315-57/+51
| | | | | | | | BUG= http://code.google.com/p/chromium/issues/detail?id=106266 TEST=ppapi/tests/test_post_message.cc Review URL: http://codereview.chromium.org/9187071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117643 0039d316-1c4b-4281-b951-d872f2087c98
* Initialized rv to 0 to fix -Wmaybe-uninitialized warning.asharif@chromium.org2012-01-131-2/+2
| | | | | | | | | | BUG=none TEST=try bots. Review URL: http://codereview.chromium.org/9148054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117634 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Implement operator= for FileChooser_Trusted.viettrungluu@chromium.org2012-01-132-4/+14
| | | | | | | | TBR=dmichael Review URL: http://codereview.chromium.org/9187070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117587 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 117561 - Add NaCl proxy for pepper gamepadscottmg@google.com2012-01-1315-195/+2
| | | | | | | | | | | | BUG=79098 Review URL: http://codereview.chromium.org/9148044 TBR=scottmg@chromium.org Review URL: http://codereview.chromium.org/9186060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117572 0039d316-1c4b-4281-b951-d872f2087c98
* Add NaCl proxy for pepper gamepadscottmg@chromium.org2012-01-1315-2/+195
| | | | | | | | | BUG=79098 Review URL: http://codereview.chromium.org/9148044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117561 0039d316-1c4b-4281-b951-d872f2087c98
* Fix incorrectly resolved conflict, and add error message for missing sources.noelallen@google.com2012-01-135-9/+17
| | | | | | | | | | | | | When running the generator with default arguments from a CWD other than the script's directory, the default arguments will be incorrect. This adds a check which will print an error message and fail. If any argument, including the default arguments are provided on the command-line, then this check is bypassed. BUG= 109177 Review URL: http://codereview.chromium.org/9168014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117547 0039d316-1c4b-4281-b951-d872f2087c98
* Remove VideoDecodeAccelerator::Client::NotifyEndOfStream / ↵fischman@chromium.org2012-01-1310-63/+32
| | | | | | | | | | | | | | | PPP_VideoDecoder_Dev::EndOfStream Nobody's ever called it and it doesn't make sense given the API: EOS is signalled when no more bits are available to Decode(), via Flush(). BUG=109819 TEST=trybots Review URL: http://codereview.chromium.org/9186022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117545 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 9034035: Make it possible to have 1 PpapiGlobals per thread.dmichael@chromium.org2012-01-1225-219/+325
| | | | | | | | | | | | | | | | Original CL: r117399, http://codereview.chromium.org/9034035/ Reverted in r117414, http://codereview.chromium.org/9139054/ due to a static initializer. This is the same as r117399 except using a LazyInstance to eliminate the static initializer. BUG= TEST= TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/9187055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117475 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket Pepper API: add a unit test for the bufferedAmount propertytoyoshim@chromium.org2012-01-122-5/+68
| | | | | | | | | | | | Add a unit test for the bufferedAmount property to verify its behaviors around connection close. BUG=87310 TEST=ui_test --gtest_filter='PPAPITest.WebSocket_BufferedAmount' Review URL: http://codereview.chromium.org/8989047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117415 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 117399 - Make it possible to have 1 PpapiGlobals per thread. Update ↵tommi@chromium.org2012-01-1225-320/+219
| | | | | | | | | | | | | | | | | | | unit tests. Reason for rever: Broke the sizes check on the mac clobber bot. This allows us to distinguish trackers in the unit tests, instead of all vars/resources going in 1 tracker. This should also allow us to unit-test PPB proxies. BUG= TEST= Review URL: http://codereview.chromium.org/9034035 TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/9139054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117414 0039d316-1c4b-4281-b951-d872f2087c98
* Make it possible to have 1 PpapiGlobals per thread. Update unit tests.dmichael@chromium.org2012-01-1225-219/+320
| | | | | | | | | | | | This allows us to distinguish trackers in the unit tests, instead of all vars/resources going in 1 tracker. This should also allow us to unit-test PPB proxies. BUG= TEST= Review URL: http://codereview.chromium.org/9034035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117399 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket Pepper API: add interfaces to handle binaryType attributetoyoshim@chromium.org2012-01-126-31/+180
| | | | | | | | | | | | | | Add interfaces to handle binaryType attribute for various binary types supporting in API version 0.9. Keeps the old interface as 0.1 for compatibility, and add simple unit test just to instansiate the old interface. Adding new interfaces are based on the WebSocket API. BUG=87310 TEST=ui_test --gtest_filter='PPAPITest.WebSocket_*' Review URL: http://codereview.chromium.org/8989046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117391 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed lint errorsjond@google.com2012-01-111-2/+2
| | | | | | Review URL: http://codereview.chromium.org/9111026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117315 0039d316-1c4b-4281-b951-d872f2087c98
* Remove srpcgen-diff test from sconsmcgrathr@chromium.org2012-01-111-14/+0
| | | | | | | | | | | | | This test is obsolete since it's now done by a presubmit check. BUG= none TEST= none R=noelallen@google.com,sehr@google.com Review URL: http://codereview.chromium.org/9178001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117122 0039d316-1c4b-4281-b951-d872f2087c98
* ppapi: Add presubmit check for .srpc file changesmcgrathr@chromium.org2012-01-101-7/+23
| | | | | | | | | | | | | | If someone changes a .srpc file, they must include the regenerated files from srpcgen in the same commit. BUG= none TEST= none R=noelallen@google.com,noelallen@chromium.org Review URL: http://codereview.chromium.org/9152017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117103 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 117055 - Lift the 64K limit on SRPCs done in the proxy.sehr@google.com2012-01-1015-49/+55
| | | | | | | | | | | | | This CL makes all in-arguments unlimited in size, while retaining the 64K limit on out-arguments for now. BUG= http://code.google.com/p/chromium/issues/detail?id=106266 TEST=none Review URL: http://codereview.chromium.org/9141001 TBR=sehr@google.com Review URL: http://codereview.chromium.org/9147043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117085 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper gamepad supportscottmg@chromium.org2012-01-1013-3/+425
| | | | | | | | | BUG=79098 Review URL: http://codereview.chromium.org/9085027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117077 0039d316-1c4b-4281-b951-d872f2087c98
* Lift the 64K limit on SRPCs done in the proxy.sehr@google.com2012-01-1015-55/+49
| | | | | | | | | | This CL makes all in-arguments unlimited in size, while retaining the 64K limit on out-arguments for now. BUG= http://code.google.com/p/chromium/issues/detail?id=106266 TEST=none Review URL: http://codereview.chromium.org/9141001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117055 0039d316-1c4b-4281-b951-d872f2087c98
* Fix single release generationnoelallen@google.com2012-01-104-16/+71
| | | | | | | | | | | Fix several cases where generating a single release will fail because the object was defined at a previous release, and the UniqueRelease check was returning an empty set. BUG= 109679 Review URL: http://codereview.chromium.org/9151022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117048 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python scripts in src/ppapi/maruel@chromium.org2012-01-1020-113/+84
| | | | | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. Minor python style fixes. TBR=noelallen BUG=105108 TEST= Review URL: http://codereview.chromium.org/8653004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117045 0039d316-1c4b-4281-b951-d872f2087c98
* srpcgen: Open output files as binarymcgrathr@chromium.org2012-01-091-2/+4
| | | | | | | | | | | | | | Opening the output files in binary mode ensures that they are always written with LF line-endings, never with CRLF on Windows. BUG= none TEST= none R=noelallen@google.com,noelallen@chromium.org,bradnelson@google.com Review URL: http://codereview.chromium.org/9161001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116936 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl: Remove getpid() calls from the PPAPI proxymseaborn@chromium.org2012-01-099-32/+10
| | | | | | | | | | | | | The process ID values have not been used since the support for scriptable objects was removed from the proxy. BUG=http://code.google.com/p/nativeclient/issues/detail?id=1511 TEST=nacl_integration Review URL: http://codereview.chromium.org/9015040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116934 0039d316-1c4b-4281-b951-d872f2087c98
* Make PPB_Flash_NetConnector interface name macro usage consistent with others.wez@chromium.org2012-01-092-2/+3
| | | | | | | | | BUG=107398 TEST=ChromeOS builds are not broken. Review URL: http://codereview.chromium.org/9127003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116881 0039d316-1c4b-4281-b951-d872f2087c98
* Change IDL shim/wrapper generator to use version numbers in struct names.jvoung@google.com2012-01-082-6/+5
| | | | | | | | | | | | | This is to match recent changes in the PPAPI generated headers in the following change: http://codereview.chromium.org/8989006/ R=noelallen@chromium.org,mcgrathr@chromium.org BUG= none TEST= compile the pnacl irt shim and use it in a test. Review URL: http://codereview.chromium.org/9110045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116836 0039d316-1c4b-4281-b951-d872f2087c98
* chmod -x ppapi/api/dev/ppb_resource_array_dev.idlmsw@chromium.org2012-01-071-0/+0
| | | | | | | | | | | | mode change 100755 => 100644 ppapi/api/dev/ppb_resource_array_dev.idl BUG=none TEST=none TBR=yzshen Review URL: http://codereview.chromium.org/9125020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116799 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_ResourceArray_Dev.yzshen@chromium.org2012-01-0719-7/+636
| | | | | | | | | | TEST=test_resource_array.{h,cc} BUG=None Review URL: http://codereview.chromium.org/9111008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116789 0039d316-1c4b-4281-b951-d872f2087c98
* Move paint aggregator and the completion callback factory.brettw@chromium.org2012-01-0641-597/+638
| | | | | | | | | | | [Reland of 116281] Move paint aggregator and the completion callback factory to the ppapi/helpers directory since they're not strictly wrappers. Review URL: http://codereview.chromium.org/9030001 Review URL: http://codereview.chromium.org/9122012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116759 0039d316-1c4b-4281-b951-d872f2087c98
* Remove task.h and finish base::Bind() migration.ajwong@chromium.org2012-01-065-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Over 341 CLs, in ~3 months, touching 3251 unique files! Top 5 most CLs: (121) jhawkins ( 45) dcheng ( 24) achuith ( 23) csilv ( 12) tfarina ( 12) groby ~1000 files touched: (918) jhawkins 100+ files touched: (486) ajwong (385) willchan (372) dcheng (126) csilv (123) fischman (112) sergeyu 49+ files touched: (65) tfarina (57) acolwell (52) adamk (49) tzik BUG=35223 TEST=existing Review URL: http://codereview.chromium.org/9114020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116748 0039d316-1c4b-4281-b951-d872f2087c98
* - Malloc the rng_desc in PnaclCoordinator to match the free from NaClDescUnref.jvoung@google.com2012-01-063-24/+47
| | | | | | | | | | | | | | | | | | - Release the translated nexe desc wrapper from one scoped ptr so that it can sit in another scoped ptr without getting deleted twice. - If an error is hit and reported via running translate_notify_callback_, do not allow later async callbacks from helper classes's factories to run and tries to report another error (that would try to run translate_notify_callback_, which has already been consumed and freed). Misc: also change error reports to not have newlines (since they will already get newlines when printed on the console). BUG= http://code.google.com/p/nativeclient/issues/detail?id=2149 R=sehr@google.com TEST= run_pnacl_bad_browser_test and hit refresh once. Review URL: http://codereview.chromium.org/9088023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116678 0039d316-1c4b-4281-b951-d872f2087c98
* Proxy PPB_ArrayBuffer_Dev, make them work over Messagingdmichael@chromium.org2012-01-0612-76/+265
| | | | | | | | | | BUG=103435 TEST= Review URL: http://codereview.chromium.org/9022021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116594 0039d316-1c4b-4281-b951-d872f2087c98
* srpcgen: Use 'const char*' for string parametersmcgrathr@chromium.org2012-01-0517-47/+47
| | | | | | | | | | | | | | Mark string parameters as const. This avoids a compilation warning when passing a string constant as argument, and is generally good hygiene. BUG= none TEST= none R=sehr@google.com Review URL: http://codereview.chromium.org/9119001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116572 0039d316-1c4b-4281-b951-d872f2087c98
* Update fullscreen test to use PPBViewnfullagar@google.com2012-01-051-17/+21
| | | | | | | | | TEST=this is the test BUG=none Review URL: http://codereview.chromium.org/9097001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116571 0039d316-1c4b-4281-b951-d872f2087c98
* Line-ending fixmcgrathr@chromium.org2012-01-051-44/+44
| | | | | | | | | | | | | | | r116370 wrongly changed the line-endings from LF to CRLF in ppapi/native_client/src/shared/ppapi_proxy/trusted/srpcgen/upcall.h and the later fix-up to other similarly affected files missed this one. BUG= none TEST= none R=sehr@google.com,brettw@chromium.org Review URL: http://codereview.chromium.org/9110015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116552 0039d316-1c4b-4281-b951-d872f2087c98
* Check for the specific interface versions required in pp::Var.wez@chromium.org2012-01-051-5/+5
| | | | | | | | | | BUG=107398 TEST=Plugins built with Pepper 17 SDK should be able to use pp::Var::AsString() even when run under Pepper 15. Review URL: http://codereview.chromium.org/8936009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116540 0039d316-1c4b-4281-b951-d872f2087c98