summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* Coverity: Initialize member variables.jhawkins@chromium.org2011-09-123-3/+8
| | | | | | | | | | | | | CID_COUNT=23 CID=100941,100986,100987,101015,101016,101017,101227,101229,101230,101332,101333,101334,101335,101336,101337,101355,101356,101359,101362,101363,101381,101389,101417 BUG=none TEST=none R=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7780013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100774 0039d316-1c4b-4281-b951-d872f2087c98
* More comments for PPB_Flash_TCPSocket.SSLHandshake.yzshen@chromium.org2011-09-121-0/+4
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/7780015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100758 0039d316-1c4b-4281-b951-d872f2087c98
* Update Native Client Authors to be Chromium Authors for the code moved from thebrettw@chromium.org2011-09-12242-248/+245
| | | | | | | | | | | native client repo to the Chrome one. The Native Client Authors are currently a subset of the Chromium Authors. TEST=none BUG=none Review URL: http://codereview.chromium.org/7778046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100755 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 100748 - This patch tries to remove most of the manual registration ↵dmazzoni@chromium.org2011-09-12139-1537/+2236
| | | | | | | | | | | | | | | | | | | | | | | | | for Pepper interfaces, and replaces it with a list of macros. When files want to know which Pepper interface names and structs there are, they define what they want to do with the macros, and then include the relevant files for the classes of interfaces they want (stable, private, dev). This does not convert all the dev interfaces. I just did a few to keep the patch smaller. So there is still a lot of manual registration. This fixes the previous design problem where we assumed one *_Proxy object == one interface. We have been hacking around this lately with duplicate GetInfo calls, but this doesn't work for PPP interfaces. Now, a _Proxy object is just there to help keep things organized. One proxy can handle zero, one, or many interfaces, and this mapping is controlled by just one line in the interfaces file. So for example, to add a new function to a new version of an interface with backward compatibility, you would add that function to the _api.h file, and write a thunk for the new interface. Then you only need to add one line to the interfaces_ppb_public_stable.h file and that will be hooked up with the proxy and the implementation. This removes some _proxy objects/files that were used only to declare that the interfaces existed, since they're no longer necessary. I folded Console into the Instance API which removed a bunch of code. I removed FileChooser 0.4. I think everybody has converted to the new one, and I think parts of it weren't even hooked up properly anymore. Review URL: http://codereview.chromium.org/7740038 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/7844018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100754 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 100751 - Fix Windows build by renaming interface to iface.dmazzoni@chromium.org2011-09-122-9/+9
| | | | | | | | | | TEST=it compiles Review URL: http://codereview.chromium.org/7871005 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/7872007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100752 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Windows build by renaming interface to iface.brettw@chromium.org2011-09-122-9/+9
| | | | | | | TEST=it compiles Review URL: http://codereview.chromium.org/7871005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100751 0039d316-1c4b-4281-b951-d872f2087c98
* This patch tries to remove most of the manual registration for Pepper ↵brettw@chromium.org2011-09-12139-2236/+1537
| | | | | | | | | | | | | | | | | | | | | | interfaces, and replaces it with a list of macros. When files want to know which Pepper interface names and structs there are, they define what they want to do with the macros, and then include the relevant files for the classes of interfaces they want (stable, private, dev). This does not convert all the dev interfaces. I just did a few to keep the patch smaller. So there is still a lot of manual registration. This fixes the previous design problem where we assumed one *_Proxy object == one interface. We have been hacking around this lately with duplicate GetInfo calls, but this doesn't work for PPP interfaces. Now, a _Proxy object is just there to help keep things organized. One proxy can handle zero, one, or many interfaces, and this mapping is controlled by just one line in the interfaces file. So for example, to add a new function to a new version of an interface with backward compatibility, you would add that function to the _api.h file, and write a thunk for the new interface. Then you only need to add one line to the interfaces_ppb_public_stable.h file and that will be hooked up with the proxy and the implementation. This removes some _proxy objects/files that were used only to declare that the interfaces existed, since they're no longer necessary. I folded Console into the Instance API which removed a bunch of code. I removed FileChooser 0.4. I think everybody has converted to the new one, and I think parts of it weren't even hooked up properly anymore. Review URL: http://codereview.chromium.org/7740038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100748 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Native Client build that uses stricter warnings-as-errorsnfullagar@google.com2011-09-101-1/+2
| | | | | | | | | BUG= none TEST= none Review URL: http://codereview.chromium.org/7863013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100560 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leak if user of IPC::SyncMessage never calls GetReplyDeserializer().dmichael@chromium.org2011-09-091-1/+0
| | | | | | | | | | | | | | | This isn't a problem for most real code, because SyncChannel and SyncMessageFilter do it for you. It shows up in ppapi_unittests (and presumably any other tests that rely on IPC::TestSink). Also removed some code that worked around the problem. Bonus: Allow running ppapi_unittests in tools/valgrind/chrome_tests.py. BUG=90240 TEST=valgrind trybots Review URL: http://codereview.chromium.org/7831060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100496 0039d316-1c4b-4281-b951-d872f2087c98
* Disable NaCl's ppb_var test.ncbray@google.com2011-09-091-1/+3
| | | | | | | | | BUG= http://code.google.com/p/nativeclient/issues/detail?id=2124 TEST= none Review URL: http://codereview.chromium.org/7864004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100480 0039d316-1c4b-4281-b951-d872f2087c98
* Make NaCl PPAPI proxy honor the Disable3DApis policy.mnissler@chromium.org2011-09-088-30/+83
| | | | | | | | | BUG=chromium:90037 TEST=manual Review URL: http://codereview.chromium.org/7808001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100192 0039d316-1c4b-4281-b951-d872f2087c98
* Remove executable permission.yzshen@chromium.org2011-09-0817-0/+0
| | | | | | | | | | | TBR=estade TEST=pass check_perms buildbot. BUG=None Review URL: http://codereview.chromium.org/7846021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100180 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce a new Pepper interface: PPB/PPP_MouseLock.yzshen@chromium.org2011-09-0849-3/+1082
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/7828019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100166 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl Proxy Test: remove debugging printf's that got accidentally committed.polina@google.com2011-09-081-8/+0
| | | | | | | | | | TBR=sehr@google.com BUG=none TEST=this is Review URL: http://codereview.chromium.org/7850010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100092 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl Proxy Test: respond to post-commit comments topolina@google.com2011-09-082-8/+40
| | | | | | | | | | ppapi_ppb_fullscreen_borwser_test CL: http://codereview.chromium.org/7756021/. BUG= http://code.google.com/p/nativeclient/issues/detail?id=908 TEST=this is Review URL: http://codereview.chromium.org/7838006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100069 0039d316-1c4b-4281-b951-d872f2087c98
* Proxy FlushSyncFast, switch nacl's command buffer to use it.nfullagar@google.com2011-09-088-5/+88
| | | | | | | | TEST= try bots, manual BUG= http://code.google.com/p/chromium/issues/detail?id=93170 Review URL: http://codereview.chromium.org/7845003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100064 0039d316-1c4b-4281-b951-d872f2087c98
* Add a timestamp to the log messages of NaCl's plugin.ncbray@google.com2011-09-082-11/+27
| | | | | | | | | BUG= http://code.google.com/p/nativeclient/issues/detail?id=2213 TEST= run NaCl with PPAPI_BROWSER_DEBUG=1 Review URL: http://codereview.chromium.org/7740059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100058 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl Proxy Test: enable ppapi_ppb_fullscreen_browser_test except for Mac.polina@google.com2011-09-072-4/+8
| | | | | | | | | | | Disable on Mac because chrome dies on "not implemented" check for fullscreen in renderer. BUG= http://code.google.com/p/nativeclient/issues/detail?id=908 TEST=this is Review URL: http://codereview.chromium.org/7828045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100023 0039d316-1c4b-4281-b951-d872f2087c98
* reconstitute moving 3d out of dev CL. (previous attempt was reverted)nfullagar@google.com2011-09-0756-308/+390
| | | | | | | | | previous CL: http://codereview.chromium.org/7737013/ BUG= http://code.google.com/p/chromium/issues/detail?id=94320 TEST= try bots, manual testing Review URL: http://codereview.chromium.org/7837018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99968 0039d316-1c4b-4281-b951-d872f2087c98
* Use precompiled headers for most large projects where the .gyp filejoi@chromium.org2011-09-076-12/+15
| | | | | | | | | | | | | | is not a third party file. On my machine, this speeds up a full recompile of the 'chrome' target in Debug mode by about 18%. BUG=none TEST=it builds, existing tests pass Review URL: http://codereview.chromium.org/7706011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99949 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 99855 - Move PPAPI graphics3d and opengles interfaces out of Dev.nfullagar@google.com2011-09-0656-389/+308
| | | | | | | | | | | BUG= http://code.google.com/p/chromium/issues/detail?id=94320 TEST= various nacl exmaples, try bots Review URL: http://codereview.chromium.org/7737013 TBR=nfullagar@google.com Review URL: http://codereview.chromium.org/7782020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99861 0039d316-1c4b-4281-b951-d872f2087c98
* Move PPAPI graphics3d and opengles interfaces out of Dev.nfullagar@google.com2011-09-0656-308/+389
| | | | | | | | BUG= http://code.google.com/p/chromium/issues/detail?id=94320 TEST= various nacl exmaples, try bots Review URL: http://codereview.chromium.org/7737013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99855 0039d316-1c4b-4281-b951-d872f2087c98
* Fix out of sync pp_errors.idl and ppb_input_event.idlnoelallen@google.com2011-09-062-5/+70
| | | | | | | | | | | Trivial fix of out of sync IDL files. TEST= none BUG= none TBR= yzshen@chromium.org Review URL: http://codereview.chromium.org/7789014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99841 0039d316-1c4b-4281-b951-d872f2087c98
* Convert c/dev ppp_zoom_dev and ppp_widget_dev to IDLnoelallen@google.com2011-09-064-14/+113
| | | | | | | | TEST= ./generator.py & try BUG= http://code.google.com/p/chromium/issues/detail?id=89968 Review URL: http://codereview.chromium.org/7833031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99823 0039d316-1c4b-4281-b951-d872f2087c98
* Change pnacl llvm triple to use nacl instead of linux (inside plugin).jvoung@google.com2011-09-061-4/+4
| | | | | | | | | | | Inside driver change: http://codereview.chromium.org/7737032/ BUG= http://code.google.com/p/nativeclient/issues/detail?id=1554 TEST= build chrome, host files for "run_pnacl_example_browser_test" and "run_pnacl_bad_browser_test" from a nacl repo (since there is no pnacl toolchain downloaded in chrome repo) and load the test. Review URL: http://codereview.chromium.org/7828088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99820 0039d316-1c4b-4281-b951-d872f2087c98
* Add comment to PPB_MouseInputEvent version 1.1 that GetMovement hasn't been ↵yzshen@chromium.org2011-09-062-0/+8
| | | | | | | | | | | supported. BUG=None TEST=None Review URL: http://codereview.chromium.org/7834007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99792 0039d316-1c4b-4281-b951-d872f2087c98
* Reland http://codereview.chromium.org/7821001/dmichael@chromium.org2011-09-062-49/+111
| | | | | | | | | | | | Add test for calling PostMessage during Init. Deflakify TestPostMessage. BUG=93260,91768 TEST=This test TBR=dmichael Review URL: http://codereview.chromium.org/7834049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99785 0039d316-1c4b-4281-b951-d872f2087c98
* Add TCP configuration parameters for Transport API.sergeyu@chromium.org2011-09-062-1/+18
| | | | | | | | | BUG=91439 TEST=None Review URL: http://codereview.chromium.org/7820008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99776 0039d316-1c4b-4281-b951-d872f2087c98
* Fix scons compile in Native Client on Windows.halyavin@google.com2011-09-061-2/+2
| | | | | | | | BUG= 95475 Review URL: http://codereview.chromium.org/7800035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99744 0039d316-1c4b-4281-b951-d872f2087c98
* Convert zoom and widget to IDLnoelallen@google.com2011-09-064-30/+161
| | | | | | | | | | | | NOTE: In converting widget I noticed that GetLocation returns bool, implying it can fail. I assume this is when the PP_Resource is not actually a widget. Shouldn't SetLocation match this? TEST= ./generator.py & try BUG= http://code.google.com/p/chromium/issues/detail?id=89968 Review URL: http://codereview.chromium.org/7767007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99682 0039d316-1c4b-4281-b951-d872f2087c98
* Fix compilation phase on glibc buildbots in Native Client.halyavin@google.com2011-09-051-1/+0
| | | | | | | | | | BUG= 95424 BUG= http://code.google.com/p/nativeclient/issues/detail?id=2231 TEST= ./scons -j16 --mode=nacl,dbg-host platform=x86-64 --nacl_glibc Review URL: http://codereview.chromium.org/7737025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99665 0039d316-1c4b-4281-b951-d872f2087c98
* Update graphics3d proxynfullagar@google.com2011-09-0315-26/+203
| | | | | | | | BUG= none TEST= ppb_graphics3d Review URL: http://codereview.chromium.org/7828054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99577 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper 3D API changes:alokp@chromium.org2011-09-038-25/+111
| | | | | | | | | | 1. Added GetAttribMaxValue() and GetError() 2. Fixed the documentation for SwapBuffers() 3. Replaced PP_GRAPHICS3DERROR_CONTEXT_LOST with PP_ERROR_CONTEXT_LOST Review URL: http://codereview.chromium.org/7824040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99532 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 99442 - Add test for calling PostMessage during Init. Deflakify ↵dmichael@chromium.org2011-09-022-111/+49
| | | | | | | | | | | | | | TestPostMessage. BUG=93260,91768 TEST=This test Review URL: http://codereview.chromium.org/7821001 TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/7737004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99466 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land r98511 which was reverted in r98531.brettw@chromium.org2011-09-022-3/+7
| | | | | | | | | | Don't send DidChangeView to the plugin unless the parameters have actually changed. Apparently WebKit sends the update for every layout, even if nothing has changed. Review URL: http://codereview.chromium.org/7761005 Review URL: http://codereview.chromium.org/7828026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99456 0039d316-1c4b-4281-b951-d872f2087c98
* Add test for calling PostMessage during Init. Deflakify TestPostMessage.dmichael@chromium.org2011-09-022-49/+111
| | | | | | | | | BUG=93260,91768 TEST=This test Review URL: http://codereview.chromium.org/7821001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99442 0039d316-1c4b-4281-b951-d872f2087c98
* One more time, remove unused varnfullagar@google.com2011-09-021-1/+0
| | | | | | | | BUG= none TEST= try Review URL: http://codereview.chromium.org/7826035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99425 0039d316-1c4b-4281-b951-d872f2087c98
* Enable browser tests with glibc, part 2.halyavin@google.com2011-09-0230-69/+144
| | | | | | | | | | | Full CL is here: http://codereview.chromium.org/7745047/ This is a copy of http://codereview.chromium.org/7794022/ which has wrong base URL. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2210 Review URL: http://codereview.chromium.org/7827043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99389 0039d316-1c4b-4281-b951-d872f2087c98
* Added a simple smoke test for Graphics3D. It attempts to exercise the entire ↵alokp@chromium.org2011-09-023-7/+73
| | | | | | | | | | graphics-3d pipeline modulo compositor. BUG=93809 Review URL: http://codereview.chromium.org/7818004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99387 0039d316-1c4b-4281-b951-d872f2087c98
* Hookup Gpu blacklist with NaCl Pepper3D access.zmo@google.com2011-09-024-3/+36
| | | | | | | | | | If WebGL is blacklisted, we should not allow NaCl to have Pepper 3D access. However, we still want trusted Apps like Flash or Netflix player to go through. BUG=93899 TEST=no NaCl Pepper 3D access if the driver/card is blacklisted for WebGL Review URL: http://codereview.chromium.org/7790016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99383 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl Proxy: add support and testing for PPB_Fullscreen_Dev.polina@google.com2011-09-0222-22/+726
| | | | | | | | BUG= http://code.google.com/p/nativeclient/issues/detail?id=908 TEST=scons run_ppapi_ppb_fullscreen_browser_test Review URL: http://codereview.chromium.org/7756021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99359 0039d316-1c4b-4281-b951-d872f2087c98
* Modify the Native Client plugin to report progress events. This CL modifiesbbudge@chromium.org2011-09-024-28/+75
| | | | | | | | | | | | the FileDownloader::Open method to accept an optional 'progress_callback' parameter which is passed to the URL loader using the trusted interface. The Plugin defines a static 'UpdateNexeDownloadProgress' method which it passes to the file downloader when loading nexes. A 5% progress change threshold is used to avoid spamming the Javascript side with progress updates. Review URL: http://codereview.chromium.org/7792018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99303 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ppapi_simple_tests.yzshen@chromium.org2011-09-022-16/+18
| | | | | | | | | | | | This is a patch from robertm: http://codereview.chromium.org/7828029/ BUG=None TEST=The test itself passes. Review URL: http://codereview.chromium.org/7831027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99276 0039d316-1c4b-4281-b951-d872f2087c98
* Make autoscroll/panning resources available for PDF plugin.gene@chromium.org2011-09-011-1/+2
| | | | | | | | BUG=48017 TEST=none Review URL: http://codereview.chromium.org/7831023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99267 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ResizeBuffers for NaCl graphics3d proxynfullagar@google.com2011-09-017-94/+14
| | | | | | | | BUG= http://code.google.com/p/nativeclient/issues/detail?id=2215 TEST= manual test Review URL: http://codereview.chromium.org/7756018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99255 0039d316-1c4b-4281-b951-d872f2087c98
* Turning off tests for persistent file system. Since the use of the ↵sanga@chromium.org2011-09-019-138/+55
| | | | | | | | | persistent file system requires user interaction with the infobar, I am turning it off for now since it won't run in an automated test. BUG= http://code.google.com/p/chromium/issues/detail?id=92675 Review URL: http://codereview.chromium.org/7793010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99252 0039d316-1c4b-4281-b951-d872f2087c98
* Made a fix so TestOpen does not release the file system right after calling ↵sanga@chromium.org2011-09-011-11/+21
| | | | | | | | | | Open, instead passing the resource as user data to the open callback to be released. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2025 TEST= ppapi_ppb_file_system Review URL: http://codereview.chromium.org/7795005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99251 0039d316-1c4b-4281-b951-d872f2087c98
* Resolve manifest file resource URL relative to the manifest file's URL.sehr@google.com2011-09-011-24/+18
| | | | | | | | BUG= http://code.google.com/p/nativeclient/issues/detail?id=2225 TEST=chrome_browser_tests Review URL: http://codereview.chromium.org/7792063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99230 0039d316-1c4b-4281-b951-d872f2087c98
* Static initializers: Remove <iostream> include from GPU logging system.erg@google.com2011-09-011-0/+2
| | | | | | | | | | | | | | | | | GPU can't rely on base because of nacl so it has its own logger. The logger includes <iostream> in the header, so most gles2 and command buffer files have std::__ioinit static initializers. Create a common logging.cc which has a simple method that just returns std::cerr so all the __ioinits collapse down to one. BUG=94794 TEST=compiles R=apatrick TBR=noelallen Review URL: http://codereview.chromium.org/7821004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99229 0039d316-1c4b-4281-b951-d872f2087c98
* Fix directory name for native_client's plugin/ppapi.def.sehr@google.com2011-09-011-1/+1
| | | | | | | | | (Copy of http://codereview.chromium.org/7828011/) for mcgrathr@google.com BUG=none TEST=trybots Review URL: http://codereview.chromium.org/7826013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99226 0039d316-1c4b-4281-b951-d872f2087c98