0
Commit Graph

264 Commits

Author SHA1 Message Date
sergeyu@chromium.org
d2e03f81b6 Add NetworkList/NetworkMonitor hooks and C++ wrappers.
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
2012-03-05 08:12:38 +00:00
sergeyu@chromium.org
d7a36f980f Revert 124797 - Add NetworkList/NetworkMonitor hooks and C++ wrappers.
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
2012-03-03 01:20:37 +00:00
sergeyu@chromium.org
79f629240e Add NetworkList/NetworkMonitor hooks and C++ wrappers.
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
2012-03-03 01:00:06 +00:00
jond@google.com
ca9bc12c35 Changed <code> to @code and </code> to @endcode (for formatting issues. 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
2012-03-03 00:38:02 +00:00
brettw@chromium.org
b83e93279d Remove assertion on instance destruction.
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
2012-02-29 05:12:08 +00:00
yzshen@chromium.org
8d148230c2 Make VideoCapture_Dev backward compatible.
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
2012-02-28 01:21:00 +00:00
brettw@chromium.org
f5e1efb53d Make the PPP wrappers take an Instance*.
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
2012-02-27 23:45:41 +00:00
brettw@chromium.org
09af0f7661 Convert resources to take an instance key instead of an Instance*.
Review URL: https://chromiumcodereview.appspot.com/9381010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123795 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-27 20:23:19 +00:00
raymes@chromium.org
fc148a7aed Modified the flash cipboard interface to add html clipboard support.
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
2012-02-24 23:15:00 +00:00
yzshen@chromium.org
669b2839b2 GetBoundAddress will return the address that Bind actually bound to. If 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
2012-02-21 23:37:12 +00:00
jam@chromium.org
1494f8f6c3 Fix typo in Flash::IsAvailable. I got a compiler error when building for 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
2012-02-21 01:57:06 +00:00
viettrungluu@chromium.org
ffadb717d9 Pepper: Add a function to PPB_Flash to check if a rect is topmost.
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
2012-02-18 08:16:22 +00:00
nfullagar@google.com
c59ed589fd Work on improving PpbAudioConfig:RecommendSampleFrameCount
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
2012-02-18 01:10:19 +00:00
jond@google.com
6af7e30d2b Documentation for C++ version of ppb_view.
Review URL: http://codereview.chromium.org/9355003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122637 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-18 00:02:32 +00:00
jond@google.com
9db847b43c C++ documentation for VarArrayBuffer
Review URL: http://codereview.chromium.org/9395039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122636 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-18 00:02:23 +00:00
brettw@chromium.org
7a26d92ecb Rename PPB_Font to PPB_BrowserFont_Trusted.
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
2012-02-17 20:15:25 +00:00
jond@google.com
f1a0afd004 Minor changes as per Christians most-recent review of the docs.
Review URL: http://codereview.chromium.org/9288006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122337 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-16 19:33:07 +00:00
yzshen@chromium.org
7be69ab453 Change PPB_NetAddress_Private.GetFamily to return a PP_AddressFamily_Private 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
2012-02-16 03:09:45 +00:00
yzshen@chromium.org
cc7c244894 Implement device enumeration for PPB_VideoCapture_Dev.
- 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
2012-02-15 22:58:15 +00:00
yzshen@chromium.org
5481eb7bc8 Remove TODO in PPAPI input event interface files.
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
2012-02-14 19:11:26 +00:00
alokp@chromium.org
af9388e713 Added idl file for Pepper 3D.
Review URL: http://codereview.chromium.org/9340003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121419 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-10 09:39:55 +00:00
yzshen@chromium.org
ee9bdfce0a PPB_NetAddress_Private: add getter methods for sockaddr.
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
2012-02-09 00:04:09 +00:00
wez@chromium.org
c33a932396 Fix a tiny typo in the comment on pp::Instance::Init().
Review URL: http://codereview.chromium.org/9310068

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120481 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-04 16:49:00 +00:00
yzshen@chromium.org
cd2af395e8 Introduce PPB_Flash_MessageLoop interface for Pepper Flash.
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
2012-01-31 09:19:17 +00:00
toyoshim@chromium.org
5350822e0c WebSocket Pepper API: make the API out of dev
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
2012-01-27 09:42:41 +00:00
toyoshim@chromium.org
dc909a9e56 WebSocket Pepper API: Remove binary type handling interfaces
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
2012-01-27 06:07:25 +00:00
dmichael@chromium.org
9c6e0de10e PPAPI: Move PPB_ArrayBuffer out of Dev.
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
2012-01-27 04:55:55 +00:00
dmichael@chromium.org
47ef6148e8 Tweaks to PPB_VarArrayBuffer in preperation for taking out of Dev.
* 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
2012-01-26 21:04:10 +00:00
jond@google.com
8fdc61556d New header and footer (removed old ones) for devsite. New doxyfile pointing 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
2012-01-25 18:31:24 +00:00
yzshen@chromium.org
dca65e16a1 Implement PPB_DeviceRef_Dev.
This is part of the work to suppport enumeration of multiple audio/video capture devices.

Relevant changes:
The thread that discussed interface design - http://codereview.chromium.org/8981009/
PPB_ResourceArray_Dev (committed) - http://codereview.chromium.org/9111008/

BUG=None
TEST=None


Review URL: http://codereview.chromium.org/9192019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118611 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-21 07:54:17 +00:00
brettw@chromium.org
231a96b779 Add API definition and error values for running message loops.
Review URL: https://chromiumcodereview.appspot.com/8965082

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118408 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-20 04:17:40 +00:00
toyoshim@chromium.org
8778b63e6a WebSocket Pepper API: WebArrayBuffer support
- 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
2012-01-19 06:22:51 +00:00
viettrungluu@chromium.org
cf0f7d9ed9 Pepper/Flapper: Add C++ wrappers for PPB_Flash_Clipboard.
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
2012-01-14 01:24:54 +00:00
jond@google.com
acbb8b1db5 Fixed capitalization of error codes as per bug here:
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
2012-01-13 18:52:22 +00:00
jond@google.com
86a9d44cd8 Fixed a couple warnings that came up during doxygen generation. Changed <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
2012-01-13 18:12:29 +00:00
jond@google.com
13c01653bb Needed to add an @file introduction and a class introduction.
Review URL: http://codereview.chromium.org/9124014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117651 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-13 17:52:47 +00:00
viettrungluu@chromium.org
ffdfdaf7ff PPAPI: Implement operator= for FileChooser_Trusted.
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
2012-01-13 02:45:22 +00:00
fischman@chromium.org
c80a0baf8b Remove VideoDecodeAccelerator::Client::NotifyEndOfStream / 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
2012-01-13 00:02:29 +00:00
jond@google.com
b47fc32c30 Fixed lint errors
Review URL: http://codereview.chromium.org/9111026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117315 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-11 22:57:10 +00:00
yzshen@chromium.org
6117b82da9 Introduce PPB_ResourceArray_Dev.
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
2012-01-07 00:51:01 +00:00
brettw@chromium.org
ae5ff9ae37 Move paint aggregator and the completion callback factory.
[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
2012-01-06 22:50:33 +00:00
wez@chromium.org
24845d70f3 Check for the specific interface versions required in pp::Var.
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
2012-01-05 20:40:30 +00:00
jond@google.com
10a67c12d7 New CPP docs for mouse lock and fullscreen. The docs are identical to those found in the C IDL with the exception of class descriptions and a CPP-specific types
Review URL: http://codereview.chromium.org/9018032

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116358 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-04 19:41:10 +00:00
wez@chromium.org
ccc5fabaf0 Switch a number of code and header files from DOS to Unix line-endings.
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
2012-01-04 13:48:29 +00:00
brettw@chromium.org
6ac20de010 Revert 116281 - Move paint aggregator and the completion callback factory.
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

TBR=brettw@chromium.org
Review URL: http://codereview.chromium.org/9086003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116284 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-04 04:47:25 +00:00
brettw@chromium.org
83c6346803 Move paint aggregator and the completion callback factory.
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
2012-01-04 04:27:31 +00:00
brettw@chromium.org
e8f07ac77c Change the DidChangeView update to take a new ViewChanged resource.
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
2012-01-03 17:43:36 +00:00
dmichael@chromium.org
a732cec70e Add GetLiveVars to PPB_Testing_Dev. Fix leaks it uncovered.
BUG=108308,108314
TEST=


Review URL: http://codereview.chromium.org/8982006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115503 0039d316-1c4b-4281-b951-d872f2087c98
2011-12-22 08:35:52 +00:00
dpapad@chromium.org
0298caf89f Coverity: Fixing pass by value bugs
CID= 101435, 101591, 101592, 101512, 100534

BUG=NONE
TEST=NONE

Review URL: http://codereview.chromium.org/8965046

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115215 0039d316-1c4b-4281-b951-d872f2087c98
2011-12-20 23:15:46 +00:00
toyoshim@chromium.org
1364c9ce07 Revert 115093 because of memory test failures - WebSocket Pepper API: C++ helper class implementation.
This class privide JS binding like API to Pepper C++ developers.

BUG=87310
TEST=ui_tests --gtest_filter='PPAPITest.Websocket_Helper*'

Review URL: http://codereview.chromium.org/8956008

TBR=toyoshim@chromium.org
Review URL: http://codereview.chromium.org/8956021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115099 0039d316-1c4b-4281-b951-d872f2087c98
2011-12-20 08:57:36 +00:00