summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
Commit message (Collapse)AuthorAgeFilesLines
* Pepper/Flapper: First pass at context menu implementation.viettrungluu@chromium.org2011-01-312-0/+84
| | | | | | | | | | | | 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
* Remove dev/audio, dev/audio_config, and dev/audio_trustednfullagar@google.com2011-01-204-187/+0
| | | | | | | | | 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-1512-17/+48
| | | | | | | | | | | | | | | | | | | | | | 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
* Move ppapi audio interface out of dev, butnfullagar@google.com2011-01-155-1/+189
| | | | | | | | | | | | 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 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
* 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-0711-16/+39
| | | | | | | | | | | | | | | | 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
* Private Pepper extension for Flapper to allow TCP connections to be madeviettrungluu@chromium.org2011-01-072-0/+106
| | | | | | | | | | | | | | (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
* 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
* 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
* Added ppapi::Surface3D. This CL completes the new Pepper3D interface. The ↵alokp@chromium.org2010-12-286-20/+100
| | | | | | | | 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
* Added ppapi::Context3D interface. The API has already been reviewed. I am ↵alokp@chromium.org2010-12-236-108/+131
| | | | | | | | 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
* Moved the logic of maintaining the current context to gles2 helper library.alokp@chromium.org2010-12-212-37/+6
| | | | | | Review URL: http://codereview.chromium.org/5927002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69838 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
* Revert 69511 - Make Graphics3D::SwapBuffers take a completion callbackpiman@google.com2010-12-172-5/+3
| | | | | | | | | | | | 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-172-3/+5
| | | | | | | | | 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
* Start deinlining non-empty virtual methods. (This will be automatically checkederg@google.com2010-12-092-1/+5
| | | | | | | | | | | for in the future.) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5574006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68746 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug in pp:Var (var.cc) where DebugString could throw an exception on ↵bbudge@google.com2010-12-071-11/+20
| | | | | | | | | | Windows; replace _snprintf_s, which doesn't have the same signature as snprintf, with sprintf_s, which has the same function signature. Check length of string vars and truncate values (adding ellipsis at end) if the won't fit in our fixed size buffer. TEST=manual BUG=none (found during testing in Chrome) Review URL: http://codereview.chromium.org/5559009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68540 0039d316-1c4b-4281-b951-d872f2087c98
* Move more code from headers to implementation.erg@google.com2010-12-072-2/+11
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5624002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68534 0039d316-1c4b-4281-b951-d872f2087c98
* Remove trusted interface wrappers from the FileIO C++ wrapper. The wrapperbrettw@chromium.org2010-12-032-37/+1
| | | | | | | | | | | | should not expose functions that aren't accessible to normal plugins. The proxy can just use the trusted interface directly without having a public C++ wrapper. TEST=it compiles BUG=53889 Review URL: http://codereview.chromium.org/5532001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68109 0039d316-1c4b-4281-b951-d872f2087c98
* Remove all the swap() stuff in the PPAPI C++ wrappers.brettw@google.com2010-12-0220-109/+26
| | | | | | | | | | Basically all of them are trivial and you can use the std::swap just as efficiently. Since this is unnecessary, we can reduce the complexity a bit. TEST=none BUG=54441 Review URL: http://codereview.chromium.org/5539001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68028 0039d316-1c4b-4281-b951-d872f2087c98
* Change trusted shared memory interface to match audio.nfullagar@google.com2010-12-022-4/+4
| | | | | | | | | | | | | - shm handle uint64_t -> int - more unification of shm size from int32_t -> uint32_t - GetNativeMemoryHandle() -> GetSharedMemory() BUG=none TEST=src/ppapi/examples/ Review URL: http://codereview.chromium.org/5410001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67910 0039d316-1c4b-4281-b951-d872f2087c98
* Remove pp::Var(int) garianov@google.com2010-11-192-7/+0
| | | | | | Review URL: http://codereview.chromium.org/5215002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66774 0039d316-1c4b-4281-b951-d872f2087c98
* Run Pepper unit tests in Native Clientgarianov@google.com2010-11-162-0/+7
| | | | | | | | | copy of http://codereview.chromium.org/4991006/ had to do it again in 'commitable' version of chrome tree Review URL: http://codereview.chromium.org/4979006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66321 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some bugs in paint manager. Some of the class members were not gettingbrettw@chromium.org2010-11-141-3/+7
| | | | | | | | | | | | | initialized in the constructor. Also, when a manual callback was executed, if a regular fluch happened to come in the intervening time, we would cause an assertion failure because it would always try to paint. Now when we get the callback, we can ignore it if there is already a flush pending. Original review=http://codereview.chromium.org/4886004/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66082 0039d316-1c4b-4281-b951-d872f2087c98
* Make the Graphics2D flush call an asynchronous operation. This tracks thebrettw@chromium.org2010-11-121-1/+2
| | | | | | | | | | | | | | | | | | | | callback in the plugin and adds a new message when a flush is complete in the renderer. I adapted the callback factory so it could be used for tracking the flush callbacks in the proxy in the renderer, and also changed the URL loader stuff (which had some custom management) around so that it also uses the factory. This also fixes a bug in font proxying where we would assert if there was a font creation error because the dispatcher wasn't set on the SerializedVar in the font decription. TEST=none BUG=none Review URL: http://codereview.chromium.org/4876003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65995 0039d316-1c4b-4281-b951-d872f2087c98
* Move URLLoader, URLRequestInfo, and URLResponseInfo out of the dev directorybrettw@chromium.org2010-11-1010-160/+112
| | | | | | | | | | | | and rename accordingly. Rename URLResponseInfo.GetBody to GetBodyAsFileRef. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/4747001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65705 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r65152 with mac and linux fix.apatrick@chromium.org2010-11-062-0/+12
| | | | | | | | | | | Original review URL: http://codereview.chromium.org/3531008 TEST=try, ui_tests BUG=none Review URL: http://codereview.chromium.org/4545003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65283 0039d316-1c4b-4281-b951-d872f2087c98
* Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on ↵dmichael@google.com2010-11-0522-107/+197
| | | | | | | | | | | | | | Windows). This includes changing bool to PP_Bool and adding a PP_INLINE macro. TEST=tests/test_c_includes.c BUG=59791,53451 The first patch set is a straight copy of http://codereview.chromium.org/4019010/show which got LGTMed when PPAPI was in its own repo, but had to be rolled back in order to include chrome changes. IMPORTANT: This change will break plugin implementations that use the C interface, and might break others as well. Review URL: http://codereview.chromium.org/4310002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65200 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 65152 - Integrated Pepper3D v2 with the accelerated compositor.apatrick@chromium.org2010-11-052-11/+0
| | | | | | | | | | | | | | | | | | | - It now uses GGL instead of a child window. - Fixed a bug where GLES2 decoder set texture state without updating TextureInfo. - Fixed Pepper3D demos and added awesome 3D CSS programmer art. - Removed ggl::GetCurrentContext to prevent further abuse. Fixed said abuse :) - GGL exposes GLES2Implementation to allow issue of GL calls on a particular context without making that context globally current. - Removed redundant "this context" argument from GGL SwapBuffers completion callback. - Temporarily removed context lost notification. I need to figure out the best semantics. TEST=Run Pepper3D and WebGL demos and YouTube videos on Windows and Mac. BUG=none Review URL: http://codereview.chromium.org/3531008 TBR=apatrick@chromium.org Review URL: http://codereview.chromium.org/4561001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65169 0039d316-1c4b-4281-b951-d872f2087c98
* Integrated Pepper3D v2 with the accelerated compositor.apatrick@chromium.org2010-11-052-0/+11
| | | | | | | | | | | | | | | | - It now uses GGL instead of a child window. - Fixed a bug where GLES2 decoder set texture state without updating TextureInfo. - Fixed Pepper3D demos and added awesome 3D CSS programmer art. - Removed ggl::GetCurrentContext to prevent further abuse. Fixed said abuse :) - GGL exposes GLES2Implementation to allow issue of GL calls on a particular context without making that context globally current. - Removed redundant "this context" argument from GGL SwapBuffers completion callback. - Temporarily removed context lost notification. I need to figure out the best semantics. TEST=Run Pepper3D and WebGL demos and YouTube videos on Windows and Mac. BUG=none Review URL: http://codereview.chromium.org/3531008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65152 0039d316-1c4b-4281-b951-d872f2087c98
* Move PPAPI into the Chrome repo. The old repo wasbrettw@chromium.org2010-11-0182-0/+7073
http://ppapi.googlecode.com/ TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64613 0039d316-1c4b-4281-b951-d872f2087c98