summaryrefslogtreecommitdiffstats
path: root/ppapi/c
Commit message (Collapse)AuthorAgeFilesLines
* Switch to standard integer types in ppapi/.avi2015-12-233-0/+6
| | | | | | | | | | BUG=138542 TBR=bbudge@chromium.org NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1548813002 Cr-Commit-Position: refs/heads/master@{#366718}
* Cleanup: Correctly spell success(ful).thestig2015-11-231-2/+2
| | | | | | | | | TBR=brettw@chromium.org NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1469783002 Cr-Commit-Position: refs/heads/master@{#361166}
* Partial revert of r357449 to keep Flash 19.x working.thestig2015-11-051-0/+278
| | | | | | | | BUG=551093 Review URL: https://codereview.chromium.org/1416303007 Cr-Commit-Position: refs/heads/master@{#357968}
* Enable pp::flash::FontFile support on Windowsxzhang2015-11-021-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part 1: Added Windows implementation using Skia for PepperFlashFontFileHost. This patch adds a simple Windows implementation of PepperFlashFontFileHost using Skia to access the font data. By implementing this PepperFlash can remove some use cases of GDI to support Win32k lockdown. AUTHOR=forshaw@google.com Part 2: To support win32k lockdown, Pepper flash needs to switch Win GDI font calls to pp::flash::FontFile PPAPI. This API was only supported on Linux, and it is supported on Windows starting from M48. Considering backward compatibility, we still need to fallback to GDI calls for Chrome versions where Win32k lockdown is not available yet. We add a new version of PB_Flash_FontFile interface: PPB_FLASH_FONTFILE_INTERFACE_0_2 This new version does not change any API, its availability shows that pp::flash:FontFile is supported for Windows, and Pepper flash can use it to decide whether it should call pp::flash:FontFile API or fall back to Win GDI calls. AUTHOR=xzhang@adobe.com BUG=523278 R=bbudge@chromium.org, raymes@chromium.org, forshaw@google.com Review URL: https://codereview.chromium.org/1416643002 Cr-Commit-Position: refs/heads/master@{#357457}
* PPAPI: Remove PPB_Font_Dev.thestig2015-11-022-282/+0
| | | | | | | | TBR=brettw@chromium.org Review URL: https://codereview.chromium.org/1428653002 Cr-Commit-Position: refs/heads/master@{#357449}
* Promote PPB_VideoDecoder 1.1 to Stablelpique2015-10-221-6/+6
| | | | | | | | | | Works just fine in ARC. BUG=520323 Review URL: https://codereview.chromium.org/1369203003 Cr-Commit-Position: refs/heads/master@{#355667}
* ppapi: Support up to 32 subsamples in PP_EncryptedBlockInfo.xhwang2015-10-203-16/+21
| | | | | | | | | | | | | | | | | | | | | The previous value was 16 which worked for most cases. But recently we saw reports that there are cases that we could have 17 subsmples. Even thougt this is very rare, but it makes sense to update our implementation to support that case. Our current implementation [1-2] supports this new size without requiring any changes. [1] https://code.google.com/p/chromium/codesearch#chromium/src/media/cdm/ppapi/cdm_adapter.cc&rcl=1445081078&l=79 [2] https://code.google.com/p/chromium/codesearch#chromium/src/content/renderer/pepper/content_decryptor_delegate.cc&l=128 BUG=543478 Review URL: https://codereview.chromium.org/1412323002 Cr-Commit-Position: refs/heads/master@{#355157}
* Update MediaKeyStatus enum valuesjrummell2015-10-011-2/+3
| | | | | | | | | | | | Replace OutputNotAllowed with OutputRestricted and add Released. These values have been added to the spec, so allow them to be returned from the CDM. BUG=528347 Review URL: https://codereview.chromium.org/1354723003 Cr-Commit-Position: refs/heads/master@{#351878}
* ppapi: AudioEncode: drop Speex codeclionel.g.landwerlin2015-09-181-3/+2
| | | | | | | | | | | | Speex was removed from the chromium third party dependencies. Since Opus was designed as a replacement for Speex, let's just drop Speex from the pepper api. BUG=461222 Review URL: https://codereview.chromium.org/1351323002 Cr-Commit-Position: refs/heads/master@{#349658}
* PDF: Use chrome.resourcesPrivate instead of Pepper to display translated stringstsergeant2015-09-181-11/+0
| | | | | | | | | | This new API is significantly simpler, and easier to add new strings to. BUG=506035 Review URL: https://codereview.chromium.org/1329213002 Cr-Commit-Position: refs/heads/master@{#349611}
* ppapi: define PPB_AudioEncoder APIlionel.g.landwerlin2015-09-173-2/+274
| | | | | | | | BUG=461222 Review URL: https://codereview.chromium.org/1128023009 Cr-Commit-Position: refs/heads/master@{#349418}
* Introduce a client minimum picture pool sizelpique2015-08-202-6/+40
| | | | | | | | | | | | | | | | | | When using the video decoder PPAPI, the most recent version of the ARC extension requires there to be a certain minimum number of picture buffers in flight (allocated but not released). Without a larger pool, ARC video decoding will stall trying to allocate more decoded picture frames than are available by default. This patch creates a new DEV interface version for the VideoDecoder PPAPI. The new interface simply adds a single new argument to VideoDecoder::Initialize() so that a PPAPI client indicate the minimum number of pictures it needs to function. In order to implement this minium picture count, the meaning of the ProvidePictureBuffers() interface call used by the video decoder implementations has changed slightly. After making the call to ProvidePictureBuffers() with a given picture buffer size, the subsequent callback via AssignPictureBuffers() includes a std::vector of buffers that might be larger than requested. I've adjusted the various implementations to handle this change -- most of them previously assumed and asserted that the count was the same. In particular this meant moving some code around in the V4L2 implementations since they also do some internal allocations based on the number of picture buffers that actually end up being chosen. BUG=485775 Review URL: https://codereview.chromium.org/1207043002 Cr-Commit-Position: refs/heads/master@{#344391}
* Update MediaKeyStatus to replace OutputNotAllowed with OutputRestrictedjrummell2015-07-281-2/+2
| | | | | | | | | | | | | | Latest EME spec replaced OutputNotAllowed with OutputRestricted, so update the code to rename the status. We are not changing the CDM interface at this time, so CDMs will still return OutputNotAllowed but it will get passed to blink as OutputRestricted. BUG=507791 TEST=EME layout tests pass Review URL: https://codereview.chromium.org/1242753006 Cr-Commit-Position: refs/heads/master@{#340721}
* Remove ppapi input latency tracking codemiletus2015-07-271-78/+0
| | | | | | | | | | | | | | | | | | | | Originally added in https://codereview.chromium.org/252663002 The ppapi input latency tracking system was meant to be used to measure the performance of ARC project (running android apps on chrome). But it does not gain traction and the only user of this private API is a telemetry benchmark scheduler.tough_pepper_cases, which has already been removed due to flakiness. Lets remove this input latency tracking related code to simplify our code base. BUG=None. Review URL: https://codereview.chromium.org/1246843004 Cr-Commit-Position: refs/heads/master@{#340532}
* ppapi: Stabilize PPB_VideoEncoder 0.2lionel.g.landwerlin2015-07-151-3/+7
| | | | | | | | BUG=510432 Review URL: https://codereview.chromium.org/1235163009 Cr-Commit-Position: refs/heads/master@{#338857}
* Stabilize PPB_UDPSocket 1.2 APIeduardo.lima2015-06-251-6/+6
| | | | | | | | | | | | | This new version features multicast support. BUG=464452 R=bbudge@chromium.org Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com> Review URL: https://codereview.chromium.org/1156923002 Cr-Commit-Position: refs/heads/master@{#336144}
* Remove unused in-process pepper APIsraymes2015-05-297-445/+0
| | | | | | | | | | | | | | | | Several APIs are now unused after turning on OOP PDF. This removes: Selection_Dev Widget_Dev Scrollbar_Dev Zoom_Dev These APIs only work in-process so we can be sure they aren't used by existing plugins (except possibly the NaCl plugin but they aren't used by that either). BUG=303491 Review URL: https://codereview.chromium.org/1161563002 Cr-Commit-Position: refs/heads/master@{#331904}
* Removed unused functions in PPB_PDFraymes2015-05-291-69/+0
| | | | | | | | | | There are a bunch of PPB_PDF functions that are now unused. Delete them. BUG=303491 Review URL: https://codereview.chromium.org/1154313002 Cr-Commit-Position: refs/heads/master@{#331899}
* ppapi: report hardware support with PP_Bool in PP_VideoProfileDescriptionlionel.g.landwerlin2015-05-062-3/+66
| | | | | | | | | | | | | | | We previously reported hardware acceleration support using an enum. Make this simpler by reporting it with a boolean field. Now if a profile is supported both in hardware and software, it will be reported with 2 different PP_VideoProfileDescription. BUG=455409 TEST=compile a NaCl app with the 0.2 api and test it against chromium before and after this patch Review URL: https://codereview.chromium.org/1089223002 Cr-Commit-Position: refs/heads/master@{#328442}
* Initialize the CDM asynchronouslyjrummell2015-05-051-6/+10
| | | | | | | | | | | | | | Currently initialization happens asynchronously, but as Initialize() has no way to report success/failure, subsequent calls need to check that it succeeded. This change passes a promise to Initialize() so that the CDM can report success/failure properly. BUG=407435,469003 TEST=EME tests pass Review URL: https://codereview.chromium.org/1102363005 Cr-Commit-Position: refs/heads/master@{#328418}
* Plugin Power Saver: Make PPS work well with prerendered pages.tommycli2015-05-051-3/+11
| | | | | | | | | | | | | | | | This patch does two things: 1. Fixes PPS interaction with prerender. This is done by having ChromePluginPlaceholder create a PluginPreroller along with the throttler. 2. Adds a browsertest for the above process. a. This required adding a IsThrottled method to PPB_Testing_Private. b. This required modifying the PPS Test Plugin to paint some dummy 'interesting' frames. BUG=471427 Review URL: https://codereview.chromium.org/1114623002 Cr-Commit-Position: refs/heads/master@{#328381}
* ppapi: VideoEncoder: add more details about supported codecs/platformslionel.g.landwerlin2015-05-051-4/+3
| | | | | | | | BUG=455409 Review URL: https://codereview.chromium.org/1127653004 Cr-Commit-Position: refs/heads/master@{#328368}
* Plugin Power Saver: Add comprehensive browser tests.tommycli2015-04-241-0/+4
| | | | | | | | | | | These browser tests should end the need for constant manual testing. These have been a long time coming. BUG=475688 Review URL: https://codereview.chromium.org/1088763002 Cr-Commit-Position: refs/heads/master@{#326867}
* Remove GTalk Pepper interfaces and related code.jhorwich2015-04-151-159/+0
| | | | | | | | | | | | | | | Remove obsolete private Pepper interface private/ppb_talk_private.h, associated Pepper plumbing code, strings, and chrome::PepperTalkHost. These are no longer needed as support for Pepper GTalk has been dropped. BUG=392002 TEST=browser_tests Review URL: https://codereview.chromium.org/1088183003 Cr-Commit-Position: refs/heads/master@{#325310}
* media: Rename SessionError to LegacySessionError.xhwang2015-04-022-13/+13
| | | | | | | | | | | | | | | Generated using sed: OnSessionError -> OnLegacySessionError SessionErrorCB -> LegacySessionErrorCB session_error_cb -> legacy_session_error_cb TBR=dcheng@chromium.org,isherman@chromium.org BUG=448818 Review URL: https://codereview.chromium.org/1042273004 Cr-Commit-Position: refs/heads/master@{#323442}
* CreateSessionAndGenerateRequest() to use enum for |init_data_type|jrummell2015-04-022-5/+15
| | | | | | | | | BUG=469228 TEST=EME layout tests pass Review URL: https://codereview.chromium.org/1021403002 Cr-Commit-Position: refs/heads/master@{#323403}
* Remove deprecated PPB_Messaging_1_1dmichael2015-03-261-47/+0
| | | | | | | | | | | | | | | This API was never officially supported, but I left in ABI compatibility for a while for the Google Earth prototype. They're now on the stable 1.2 version, so this version of the API can go away. sky TBRed for trivial change to chrome/common/ppapi_utils binji TBRed for native_client_sdk BUG=414398 TBR=sky@chromium.org,binji@chromium.org NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1014723007 Cr-Commit-Position: refs/heads/master@{#322405}
* Add missing CdmKeyInformation enum valuesjrummell2015-03-171-2/+4
| | | | | | | | | | | | | | Latest EME spec has added new values to MediaKeyStatus (https://w3c.github.io/encrypted-media/#idl-def-MediaKeyStatus), so pass these though Pepper. Changes to the CDM interface will come later. BUG=465592 TEST=none, as the new values not currently used Review URL: https://codereview.chromium.org/1005213002 Cr-Commit-Position: refs/heads/master@{#320982}
* Plugin Power Saver: Replace all "plug-in" with "plugin" for consistency.tommycli2015-03-161-1/+1
| | | | | | | | | | | | | | | | Passed chrome-ui-review: https://groups.google.com/a/google.com/d/msg/chrome-ui-review/FwuQ2TWc5n8/H3PSuV4L_cAJ BUG=467165 TBR=tsepez (comment changes only in render_messages) NOPRESUBMIT=true (legacy LOG messages) Review URL: https://codereview.chromium.org/1007443004 Cr-Commit-Position: refs/heads/master@{#320782}
* Add support for multicast in PPB_UDPSocket APIeduardo.lima2015-03-131-5/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces two new values to be used with SetOption(), to set up the behavior of the multicast packets: - PP_UDPSOCKET_OPTION_MULTICAST_LOOP (Boolean) Whether packets sent from the host to the multicast group will be looped back to the host or not. - PP_UDPSOCKET_OPTION_MULTICAST_TTL (Integer) Sets time-to-live of multicast packets sent to the multicast group. It also introduces two new functions JoinGroup() and LeaveGroup(), both of them expecting the address of the multicast group as specified by the PPB_NetAddress API. These two functions should only be called after the socket is bound. This CL adds specific test cases to browser_tests in order to exercise the different versions of the SetOption function. For this reason, the PPAPI UDPSocket tests were split into multiple tests, instead of a single one that enclosed all of them. This way we get clearer information about the results of each test. BUG=430939 TEST=browser_tests NOPRESUBMIT=true Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com> Review URL: https://codereview.chromium.org/704133005 Cr-Commit-Position: refs/heads/master@{#320504}
* Printing: PDFs should only be fit to page if there is a size mismatch.thestig2015-03-111-1/+7
| | | | | | | | BUG=158752 Review URL: https://codereview.chromium.org/981843003 Cr-Commit-Position: refs/heads/master@{#320167}
* Block platform verification and file IO in the CDM adapter if the CDM ↵sandersd2015-03-102-9/+16
| | | | | | | | | | | | configuration disallows access to them. Based on the configured value of distinctiveIdentifier and persistentState, we compute permission bits and pass them through PPAPI to the CDM adapter. This enables us to enforce 'not-allowed' configs even when user permission has been granted. BUG=487452 Review URL: https://codereview.chromium.org/985113003 Cr-Commit-Position: refs/heads/master@{#319798}
* Print Preview: Support the duplex preset in PDFs.thestig2015-03-051-1/+13
| | | | | | | | | | | | The preset from the PDF document gets plumbed all the way to print preview, but the ShortEdge setting is ignored at the end because print preview does not support it yet. BUG=169120 Review URL: https://codereview.chromium.org/974183003 Cr-Commit-Position: refs/heads/master@{#319324}
* Pepper: Remove PPB_FileMappingdmichael2015-02-271-147/+0
| | | | | | | | | | | | | It's unused and will probably never go stable. Delete it; we can pull it from source control later if we change our minds. TBRing thestig for chrome/common/ppapi_utils, and binji for native_client_sd BUG=83774 TBR=thestig@chromium.org,binji@chromium.org Review URL: https://codereview.chromium.org/959333002 Cr-Commit-Position: refs/heads/master@{#318530}
* PPAPI: Rename PPB_ImageCapture_Private to PPB_CameraDevice_Privatejchuang2015-02-201-32/+32
| | | | | | | | | BUG=387547 TEST=Call the API from a trusted plugin. Review URL: https://codereview.chromium.org/929053003 Cr-Commit-Position: refs/heads/master@{#317271}
* PPAPI: Suppport GetSupportedVideoCaptureFormats for frame_ratejchuang2015-02-202-11/+60
| | | | | | | | | BUG=387547 TEST=Call the API from a trusted plugin and print all video capture formats. Review URL: https://codereview.chromium.org/911623002 Cr-Commit-Position: refs/heads/master@{#317230}
* PPAPI: implement GetSupportedPreviewSizesjchuang2015-02-172-47/+20
| | | | | | | | | | | | | 1. Support PPB_CameraCapabilities_Private.GetSupportedPreviewSizes() 2. Implement basic skeleton of image capture PPAPI BUG=387547 TEST=Call the API from a trusted plugin and print all preview sizes. Review URL: https://codereview.chromium.org/848863002 Cr-Commit-Position: refs/heads/master@{#316552}
* Split apart the PPAPI GN targetsbrettw2015-02-141-0/+10
| | | | | | | | | | | | This puts BUILD files in the corresponding directories without duplicate names. Adds a template for ppapi examples and writes the build for one example. I only did one at this point to test the infrastructure without making this patch too large. NOPRESUBMIT=true Review URL: https://codereview.chromium.org/921953002 Cr-Commit-Position: refs/heads/master@{#316352}
* NaCl cleanup: Move ppb_nacl_private.h into components/nacl/renderer/mseaborn2015-02-101-363/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since PPB_NaCl_Private is both implemented and consumed in components/nacl/renderer/, there's no need for the interface to be defined in ppapi/. The fact that this is a PPAPI interface at all is just a holdover from when the code for the NaCl trusted plugin lived outside the Chromium repo. We can drop the ppb_nacl_private.idl file. Benefits: * This reduces the friction for changing ppb_nacl_private.h. It's no longer necessary to change ppb_nacl_private.idl and re-run the generator. * This removes PPB_NaCl_Private from the PPAPI shims, reducing code size. * ppb_nacl_private.h no longer has to follow the PPAPI C header style. For example, it would no longer need to define its own "struct PP_NaClFileInfo" type -- it could share a definition that's marshallable over Chrome IPC. Changes to ppb_nacl_private.h: * Add comment to explain the status of this interface. * Remove unused "*_1_0" variants of #define and typedef. BUG=239656 BUG=251460 TEST=trybots Review URL: https://codereview.chromium.org/911463003 Cr-Commit-Position: refs/heads/master@{#315641}
* NaCl cleanup: Remove references to native_client/src/public/nacl_file_info.hmseaborn2015-02-091-4/+2
| | | | | | | | | | | | | | | | | | It's no longer necessary for the NaCl side to define and refer to the NaClFileToken struct. So we can change the Chromium side to define NaClFileToken, instead of using the definition from nacl_file_info.h. This will let us remove nacl_file_info.h from the NaCl side. We copy the comment from nacl_file_info.h. BUG=https://code.google.com/p/nativeclient/issues/detail?id=4073 TEST=build Review URL: https://codereview.chromium.org/903333002 Cr-Commit-Position: refs/heads/master@{#315317}
* Pepper: PPB_VideoEncoder should be 'Dev' only for now.bbudge2015-02-051-8/+4
| | | | | | | | | | Also changes copyright notices to the new style. BUG=455409 Review URL: https://codereview.chromium.org/885803003 Cr-Commit-Position: refs/heads/master@{#314893}
* Image Capture PPAPI: remove unused APIsjchuang2015-02-052-286/+6
| | | | | | | | | | | | | 1. Remove ppb_image_capture_config_private. 2. Remove PPB_ImageCapture_Private.{Set|Get}Config 3. Remove PPB_ImageCapture_Private.CaptureStillImage BUG=387547 TEST=None Review URL: https://codereview.chromium.org/884483007 Cr-Commit-Position: refs/heads/master@{#314834}
* Pepper: Define PPB_VideoEncoder API.bbudge2015-02-043-3/+297
| | | | | | | | | | | Since this bumps the milestone definition in pp_macros.h NOPRESUBMIT=true BUG=417589 Review URL: https://codereview.chromium.org/842293003 Cr-Commit-Position: refs/heads/master@{#314645}
* NaCl: Simplify the plumbing for PPAPI's DevInterfacesEnabled flagmseaborn2015-01-241-5/+2
| | | | | | | | | | | | | | | There's no need for this flag to be sent from ppb_nacl_private_impl.cc to plugin.cc and back again. It can stay within ppb_nacl_private_impl.cc. This merges two error-handling checks in LaunchSelLdr(). BUG=239656 TEST=browser_tests Review URL: https://codereview.chromium.org/874603002 Cr-Commit-Position: refs/heads/master@{#313010}
* NaCl: Remove now-unneeded SRPC reverse service codemseaborn2015-01-231-11/+1
| | | | | | | | | | | | | | | | | | | | | | | The last active use of PluginReverseInterface was via its StartupInitializationComplete()/"init_done" method, but recent cleanups have made that into a no-op. We can therefore remove PluginReverseInterface. We no longer need to call NaCl's "reverse_setup" SRPC call. This removes the Chromium-side parts of the old SRPC-based open_resource() implementation, which was no longer called. This allows us to remove OpenManifestEntry() from PPB_NaCl_Private. Add some #includes to fix include-what-you-use problems that become apparent after removing code. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3864 TEST=NaCl tests in browser_tests Review URL: https://codereview.chromium.org/870923004 Cr-Commit-Position: refs/heads/master@{#312953}
* NaCl: Remove now-unused ReportLoadSuccess() function from PPB_NaCl_Privatemseaborn2015-01-231-5/+1
| | | | | | | | | BUG=428030 TEST=build Review URL: https://codereview.chromium.org/865303003 Cr-Commit-Position: refs/heads/master@{#312846}
* NaCl: Remove reliance on "init_done" SRPC call in the remaining PNaCl casemseaborn2015-01-221-5/+1
| | | | | | | | | | | | | | | | | | | | | | | Remove Plugin::BitcodeDidTranslateContinuation(), which gets called via the "init_done" SRPC call (which calls StartupInitializationComplete() in plugin/service_runtime.cc). Instead, arrange for its work to be done by the newer ManifestServiceProxy::StartupInitializationComplete(), by enabling ManifestServiceProxy for PNaCl. * To ensure that the open_resource() IPC stays disabled for PNaCl, we conditionalise ManifestServiceProxy::OpenResource(). * To ensure that the pexe size still gets reported on the "loadend" event, we stash it away in ReportTranslationFinished(). BUG=428030 TEST=NaClBrowserTestPnacl.ProgressEvents (checks reported pexe size is non-zero) Review URL: https://codereview.chromium.org/845013003 Cr-Commit-Position: refs/heads/master@{#312674}
* media: Rename WebSessionId to SessionId.xhwang2015-01-222-27/+27
| | | | | | | | | | | Web session ID was introduced when we also have integer session IDs. Now we have removed integer session IDs and we don't need the "web" prefix any more. TEST=Renaming only. Review URL: https://codereview.chromium.org/858313002 Cr-Commit-Position: refs/heads/master@{#312661}
* NaCl: Remove unused functions from PPB_NaCl_Privatemseaborn2015-01-221-20/+1
| | | | | | | | | BUG=428030 TEST=build Review URL: https://codereview.chromium.org/866583002 Cr-Commit-Position: refs/heads/master@{#312505}
* Remove unused fields from PP_PdfPrintPresetOptions_Devraymes2015-01-162-23/+2
| | | | | | | | | | | | | Work was started which would use these fields to convey information to the printing system but this work was never finished (see https://code.google.com/p/chromium/issues/detail?id=169120). This fields are never initialized. BUG=448798 Review URL: https://codereview.chromium.org/828233004 Cr-Commit-Position: refs/heads/master@{#311831}