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
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
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
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
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
- 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
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
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
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
* 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
- 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
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
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 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
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
This is mainly relevant for the IDL-generated PPAPI headers, whose line-endings reflect the convention for the platform on which they were most recently re-generated, leading to bogus whole-file diffs.
Note that this CL specifically does not update the Copyright years on the affected files, since the changes are whitespace-only.
BUG=109116
TEST=diff --ignore-space-at-eol should give no output for this patch.
TBR=dmichael
Review URL: http://codereview.chromium.org/9087006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116311 0039d316-1c4b-4281-b951-d872f2087c98
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
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116281 0039d316-1c4b-4281-b951-d872f2087c98
This will allow us to be more flexible about adding data to view changed updates in the future. For now, I've incorporated fullscreen and tab foreground state into the view state.
BUG=
TEST=
Review URL: http://codereview.chromium.org/8951014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116142 0039d316-1c4b-4281-b951-d872f2087c98