summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove PPB_Flash_NetConnector and ENABLE_FLAPPER_HACKS.viettrungluu@chromium.org2012-03-282-100/+0
| | | | | | | | | | | | PPB_Flash_NetConnector has been superseded by less hacky and more general interfaces. ENABLE_FLAPPER_HACKS only enabled PPB_Flash_NetConnector. TEST=builds (and still passes PPAPI tests) TBR=darin@chromium.org Review URL: http://codereview.chromium.org/9836131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129444 0039d316-1c4b-4281-b951-d872f2087c98
* Cleaned up documentation (standard documentation rewrite).jond@google.com2012-03-271-57/+82
| | | | | | Review URL: http://codereview.chromium.org/9813011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129236 0039d316-1c4b-4281-b951-d872f2087c98
* New file chooser interface that uses the new PP_ArrayOutput feature. This ↵brettw@chromium.org2012-03-267-45/+151
| | | | | | | | | | | | also changes PP_ArrayOutput to be pass-by-value. This keeps backwards compat for the old interface. It fixes some bugs in the callback system that I found when working on the patch and adds some new machinery for doing array output in the proxy. It also re-enables the file chooser feature which was recently broken. BUG=118857 Review URL: https://chromiumcodereview.appspot.com/9728001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129022 0039d316-1c4b-4281-b951-d872f2087c98
* Add CreateFromIPv[46]Address() in PPB_NetAddress_Private.sergeyu@chromium.org2012-03-222-7/+91
| | | | | | Review URL: http://codereview.chromium.org/9722008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128322 0039d316-1c4b-4281-b951-d872f2087c98
* Check for specific PPB interface versions in the C++ wrappers for ↵wez@chromium.org2012-03-229-141/+142
| | | | | | | | | | Graphics2D, *InputEvent, Instance, ImageData, Module, Rect, URLLoader, URLRequestInfo and URLResponseInfo. BUG=107398 Review URL: https://chromiumcodereview.appspot.com/9700088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128125 0039d316-1c4b-4281-b951-d872f2087c98
* Check for specific PPB versions in pp::Fullscreen, pp::Audio and ↵wez@chromium.org2012-03-213-34/+32
| | | | | | | | | | | pp::Graphics3D implementations. BUG=107398 Review URL: http://codereview.chromium.org/9682003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128047 0039d316-1c4b-4281-b951-d872f2087c98
* Add NetworkListObserver utility class.sergeyu@chromium.org2012-03-212-14/+18
| | | | | | | | BUG=114808 Review URL: https://chromiumcodereview.appspot.com/9696051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128015 0039d316-1c4b-4281-b951-d872f2087c98
* Added C++ wrappers for PPB_HostResolver_Private interface.ygorshenin@chromium.org2012-03-212-0/+117
| | | | | | | | | | BUG=114225 TEST=*HostResolverPrivate Review URL: http://codereview.chromium.org/9701024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127929 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Remove out-dated or unnecessary TODOs from public files.dmichael@chromium.org2012-03-211-5/+0
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/9731003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127918 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 127797 - Add NetworkListObserver utility class.sergeyu@chromium.org2012-03-202-18/+14
| | | | | | | | | | | | BUG=114808 Review URL: http://codereview.chromium.org/9696051 TBR=sergeyu@chromium.org Review URL: https://chromiumcodereview.appspot.com/9801004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127837 0039d316-1c4b-4281-b951-d872f2087c98
* Add NetworkListObserver utility class.sergeyu@chromium.org2012-03-202-14/+18
| | | | | | | | | BUG=114808 Review URL: http://codereview.chromium.org/9696051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127797 0039d316-1c4b-4281-b951-d872f2087c98
* Check explicitly for PPB_WebSocket v1.0 in pp::WebSocket wrapper.wez@chromium.org2012-03-171-28/+28
| | | | | | | | | BUG=107398 Review URL: http://codereview.chromium.org/9702107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127357 0039d316-1c4b-4281-b951-d872f2087c98
* Check explicitly for PPB_MouseLock v1.0 in pp::MouseLock.wez@chromium.org2012-03-171-7/+7
| | | | | | | | | BUG=107398 Review URL: http://codereview.chromium.org/9699106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127356 0039d316-1c4b-4281-b951-d872f2087c98
* Check explicitly for PPB_VarArrayBuffer v1.0 in C++ wrapper.wez@chromium.org2012-03-161-10/+10
| | | | | | | | | BUG=107398 Review URL: http://codereview.chromium.org/9701090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127223 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper IME API for surrounding text retrieval.kinaba@chromium.org2012-03-152-21/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IME benefits from knowing what portion of text is selected inside a text editing plugin. This change is to implement a Pepper API for doing it. It consists of three API functions: 1. Browser asks plugins by PPP_TextInput_Dev::RequestSurroundingText() to send such info. 2. Plugin must reply the query by PPB_TextInput_Dev::UpdateSurroundingText(). 3. Additionally, plugin notifies the browser by PPB_TextInput_Dev::SelectionChanged() that the selection is changed. Typically triggers the steps 1->2. Intention of the API design is (1) to avoid synchronous IPC, and (2) to keep the room to implement it in an optimal and right way, that is, expensive send of selection text happens only when needed (= "IME requiring the info is on" + "selection indeed changed in the plugin"), though the current impl in the patch is not necessary like that (for sake of simplicity). The changes in the API is in: * ppapi/c/dev/ppb_text_input_dev.h * ppapi/c/dev/ppp_text_input_dev.h The browser side implementation mostly resides in: * content/renderer/render_view_impl.cc * content/renderer/pepper/pepper_plugin_delegate_impl.{h,cc} * webkit/plugins/ppapi/ppapi_plugin_instance.{h,cc} The other files are for wiring necessary cables. BUG=101101 TEST=Manual: make ppapi_example_ime and run ./your/chrome --register-pepper-plugins=\ "/path/to/ppapi_example_ime.plugin;application/x-ppapi-example-ime" \ --ppapi-out-of-process \ file:///path/to/ppapi/examples/ime/ime.html Try some IME that supports reconversion (e.g., Google Japanese Input on Windows). Review URL: http://codereview.chromium.org/8769003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126862 0039d316-1c4b-4281-b951-d872f2087c98
* Add C++ wrappers for output parameters.brettw@chromium.org2012-03-144-1/+621
| | | | | | | | | | | | | | Define helper routines for doing array output using the new PP_OutputArray struct. Define routines in the completion callback factory for doing output parameters as parameters to the callback function. BUG= TEST= Review URL: http://codereview.chromium.org/9651002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126781 0039d316-1c4b-4281-b951-d872f2087c98
* Added CPP wrapper for PPB_TCPServerSocket_Private.ygorshenin@chromium.org2012-03-134-2/+106
| | | | | | | | | | BUG= TEST=PPAPI(NaCl?)Test.TestTCPServerSocketPrivate Review URL: http://codereview.chromium.org/9568007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126367 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Make C++ wrappers for PPB_NetAddress_Private backwards compatible.viettrungluu@chromium.org2012-03-071-40/+73
| | | | | | | | | | | | (The compatibility is needed for Pepper Flash to use the wrappers.) Also fix the IDL file to correctly specify that version 1.0 is only available starting with M19. (The generated header itself didn't change, since we're currently generating for M19.) Review URL: https://chromiumcodereview.appspot.com/9618014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125422 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed some TODO comments so they wouldn't show up in the docs.jond@google.com2012-03-071-6/+5
| | | | | | Review URL: http://codereview.chromium.org/9600025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125420 0039d316-1c4b-4281-b951-d872f2087c98
* PPB_AudioInput_Dev: support multiple audio input devices - Part 1.yzshen@chromium.org2012-03-072-13/+265
| | | | | | | | | | | | | - This CL implements PPB_AudioInput_Dev v0.2 and extends examples/audio_input. - This CL doesn't actually open devices other than the default one. That will be in a separate CL. BUG=None TEST=examples/audio_input Review URL: http://codereview.chromium.org/9557007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125362 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Make C++ wrappers for PPB_AudioConfig backwards compatible.viettrungluu@chromium.org2012-03-071-15/+29
| | | | | | | | | | | | | | This makes the wrappers work transparently with both versions 1.1 and 1.0 of the interface. (The compatibility is needed for Pepper Flash to use the wrappers; Pepper Flash needs to work with M18 until M19 ships, at which point we can remove the 1.0-compatibility.) Review URL: http://codereview.chromium.org/9617018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125310 0039d316-1c4b-4281-b951-d872f2087c98
* Add NetworkList/NetworkMonitor hooks and C++ wrappers.sergeyu@chromium.org2012-03-054-0/+226
| | | | | | | | | | | BUG=114808 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124797 Review URL: http://codereview.chromium.org/9545010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124927 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 124797 - Add NetworkList/NetworkMonitor hooks and C++ wrappers.sergeyu@chromium.org2012-03-034-226/+0
| | | | | | | | | | | | BUG=114808 Review URL: http://codereview.chromium.org/9545010 TBR=sergeyu@chromium.org Review URL: https://chromiumcodereview.appspot.com/9585033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124809 0039d316-1c4b-4281-b951-d872f2087c98
* Add NetworkList/NetworkMonitor hooks and C++ wrappers.sergeyu@chromium.org2012-03-034-0/+226
| | | | | | | | | BUG=114808 Review URL: http://codereview.chromium.org/9545010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124797 0039d316-1c4b-4281-b951-d872f2087c98
* Changed <code> to @code and </code> to @endcode (for formatting issues. ↵jond@google.com2012-03-031-4/+5
| | | | | | | | Removed .html (extensions not needed for DevSite) as per Andy. Review URL: http://codereview.chromium.org/9421037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124788 0039d316-1c4b-4281-b951-d872f2087c98
* Remove assertion on instance destruction.brettw@chromium.org2012-02-291-7/+0
| | | | | | | | The way that we do the wrappers now with InstanceHandles means there's no danger of dangling pointers, and actually that you can't unregister yourself during instance shutdown since the PP_Instance->pp::Instance mapping has been torn down by the time the instance destructor is called. Review URL: https://chromiumcodereview.appspot.com/9519001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124119 0039d316-1c4b-4281-b951-d872f2087c98
* Make VideoCapture_Dev backward compatible.yzshen@chromium.org2012-02-282-29/+83
| | | | | | | | | BUG=None TEST=ppapi/examples/video_capture works. Review URL: https://chromiumcodereview.appspot.com/9372122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123848 0039d316-1c4b-4281-b951-d872f2087c98
* Make the PPP wrappers take an Instance*.brettw@chromium.org2012-02-2720-49/+41
| | | | | | | | | | | | | | | | | I changed these to take InstanceHandles but this doesn't actually work. If you use them the recommended way, the module->instance mapping isn't set up by the time the constructors are called, so doing AddPerInstanceObject fails. Since these objects are all called on the main thread, there is no race condition with pp::Instance destruction and the implementation using a pointer is safe. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9481015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123828 0039d316-1c4b-4281-b951-d872f2087c98
* Convert resources to take an instance key instead of an Instance*.brettw@chromium.org2012-02-27109-496/+642
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9381010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123795 0039d316-1c4b-4281-b951-d872f2087c98
* Modified the flash cipboard interface to add html clipboard support.raymes@chromium.org2012-02-242-29/+84
| | | | | | | | | | | | This changes the way the interface works. To write data, the user now passes an array of data items, one for each format they want to write to the clipboard. When reading data, they specify the format they want to read. BUG=110796 TEST=./ui_tests --gtest_filter=*PPAPITest.*Clipboard* passes Review URL: http://codereview.chromium.org/9212066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123581 0039d316-1c4b-4281-b951-d872f2087c98
* GetBoundAddress will return the address that Bind actually bound to. If ↵yzshen@chromium.org2012-02-212-2/+17
| | | | | | | | | | | | there has not been a successful call to Bind, this method will return an error. BUG=no bug TEST=udp tests Review URL: https://chromiumcodereview.appspot.com/9212047 Patch from Mike Tilburg <mtilburg@adobe.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122910 0039d316-1c4b-4281-b951-d872f2087c98
* Fix typo in Flash::IsAvailable. I got a compiler error when building for ↵jam@chromium.org2012-02-211-1/+1
| | | | | | | | heapcheck. No idea why this isn't caught by compilers. Review URL: https://chromiumcodereview.appspot.com/9421027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122782 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Add a function to PPB_Flash to check if a rect is topmost.viettrungluu@chromium.org2012-02-182-3/+75
| | | | | | | | | | | | | This is needed for "Flash dialogs". This is dependent on https://bugs.webkit.org/show_bug.cgi?id=78166 . TEST=check the example plugin (under flash_topmost) Review URL: http://codereview.chromium.org/9369003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122686 0039d316-1c4b-4281-b951-d872f2087c98
* Work on improving PpbAudioConfig:RecommendSampleFrameCountnfullagar@google.com2012-02-182-4/+23
| | | | | | | | | | | | Add version 1.1 which will query the audio back end for the best available sample frame count. Also add RecommendSampleRate. Switch pepper plugin delegate to use AUDIO_PCM_LOW_LATENCY if client request is compatible. TEST=included BUG=http://code.google.com/p/chromium/issues/detail?id=107572 Review URL: https://chromiumcodereview.appspot.com/9129007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122653 0039d316-1c4b-4281-b951-d872f2087c98
* Documentation for C++ version of ppb_view.jond@google.com2012-02-181-51/+56
| | | | | | Review URL: http://codereview.chromium.org/9355003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122637 0039d316-1c4b-4281-b951-d872f2087c98
* C++ documentation for VarArrayBufferjond@google.com2012-02-181-31/+41
| | | | | | Review URL: http://codereview.chromium.org/9395039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122636 0039d316-1c4b-4281-b951-d872f2087c98
* Rename PPB_Font to PPB_BrowserFont_Trusted.brettw@chromium.org2012-02-172-0/+423
| | | | | | | | | | | | | | | | | | | PPB_Font can never be exported to NaCl since it relies on in-process WebKit. So I'm renaming this to BrowserFont_Trusted to imply that this is the way that the browser would render fonts in the content area (if we export a font API to NaCl in the future, it will likely be a simpler native font API). The new API is binary compatible with the old font API, so I map PPB_Font to PPB_BrowserFont_Trusted for now to avoid breaking Flash (which uses this). When we update Flash and push it out, we can remove the mapping and PPB_Font. This does a lot of cleanup of the font implementation. It had complexity from the fact that it used to run on a different thread. I was able to remove a lot of code. Review URL: https://chromiumcodereview.appspot.com/9360045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122564 0039d316-1c4b-4281-b951-d872f2087c98
* Minor changes as per Christians most-recent review of the docs.jond@google.com2012-02-164-8/+8
| | | | | | Review URL: http://codereview.chromium.org/9288006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122337 0039d316-1c4b-4281-b951-d872f2087c98
* Change PPB_NetAddress_Private.GetFamily to return a PP_AddressFamily_Private ↵yzshen@chromium.org2012-02-162-6/+6
| | | | | | | | | | | | value instead of uint16_t. BUG=None TEST=None Review URL: http://codereview.chromium.org/9398003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122228 0039d316-1c4b-4281-b951-d872f2087c98
* Implement device enumeration for PPB_VideoCapture_Dev.yzshen@chromium.org2012-02-152-15/+151
| | | | | | | | | | | | | - Implement PPB_VideoCapture_Dev v0.2. - Use a ref-counted PlatformVideoCapture to manage lifespan of media::VideoCapture::EventHandler, instead of manipulating the ref count of PPB_VideoCapture_Impl. - Extend examples/video_capture. BUG=None TEST=examples/video_capture Review URL: https://chromiumcodereview.appspot.com/9234064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122176 0039d316-1c4b-4281-b951-d872f2087c98
* Remove TODO in PPAPI input event interface files.yzshen@chromium.org2012-02-141-5/+1
| | | | | | | | | | | This issue has been fixed. (https://bugs.webkit.org/show_bug.cgi?id=78014) BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/9348095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121910 0039d316-1c4b-4281-b951-d872f2087c98
* Added idl file for Pepper 3D.alokp@chromium.org2012-02-102-10/+10
| | | | | | Review URL: http://codereview.chromium.org/9340003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121419 0039d316-1c4b-4281-b951-d872f2087c98
* PPB_NetAddress_Private: add getter methods for sockaddr.yzshen@chromium.org2012-02-092-4/+35
| | | | | | | | | | | | | | | | This CL is mostly contributed by Vinay(vinaya@adobe.com): http://codereview.chromium.org/9235035 Comparing with 9235035, this change: - fixes the NaCl Proxy. - adds untrusted tests. - does other small fixes. BUG=None TEST=test_net_address_private and test_net_address_private_untrusted Review URL: https://chromiumcodereview.appspot.com/9307115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121106 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a tiny typo in the comment on pp::Instance::Init().wez@chromium.org2012-02-041-2/+2
| | | | | | Review URL: http://codereview.chromium.org/9310068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120481 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_Flash_MessageLoop interface for Pepper Flash.yzshen@chromium.org2012-01-312-0/+82
| | | | | | | | | | | | Comparing with PPB_Flash.RunMessageLoop/QuitMessageLoop, this new interface avoids leaking nested message loops. If Quit() is not called to balance the call to Run(), the outermost message loop will be quitted when the resource is destroyed. BUG=109340 TEST=test_flash_message_loop.{h,cc} Review URL: http://codereview.chromium.org/9188045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119873 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket Pepper API: make the API out of devtoyoshim@chromium.org2012-01-272-15/+163
| | | | | | | | | | BUG=87310 TEST=ui_test Review URL: http://codereview.chromium.org/9192009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119425 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket Pepper API: Remove binary type handling interfacestoyoshim@chromium.org2012-01-272-42/+4
| | | | | | | | | | | | | In an API discussion, we decide to remove binary type handling interfaces from the first release. This change just fix the interface. The change to make the interface out of dev will follow this change. BUG=87310 TEST=ui_test --gtest_filter='*WebSocket*' Review URL: https://chromiumcodereview.appspot.com/9296001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119382 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Move PPB_ArrayBuffer out of Dev.dmichael@chromium.org2012-01-273-98/+97
| | | | | | | | | | BUG=103435 TEST=N/A Review URL: http://codereview.chromium.org/9107046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119374 0039d316-1c4b-4281-b951-d872f2087c98
* Tweaks to PPB_VarArrayBuffer in preperation for taking out of Dev.dmichael@chromium.org2012-01-263-39/+78
| | | | | | | | | | | | | | * Add Unmap. * Make ByteLength more consistent with the rest of PPAPI. * Make C++ wrapper not cache the buffer. BUG= TEST= Review URL: http://codereview.chromium.org/9169052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119286 0039d316-1c4b-4281-b951-d872f2087c98
* New header and footer (removed old ones) for devsite. New doxyfile pointing ↵jond@google.com2012-01-255-26/+167
| | | | | | | | to these headers and footers. New removefiles script for removing unneeded files for devsite and new python script for cleaning up resulting doxygen output for devsite. Review URL: https://chromiumcodereview.appspot.com/9126002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119091 0039d316-1c4b-4281-b951-d872f2087c98