summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename PP_TextInputType to PP_TextInputType_Devnona@chromium.org2013-08-072-2/+2
| | | | | | | | | | | | | | | | | Duplicated PP_TextInput_Type breaks generator so dropping PP_TextInput_Type from ppb_text_input_controller.idl We can't drop this enum from dev interface because dev interface is still used for Flash plugin. Once Flash uses stable interface, we can move this enum to ppb_text_input_controller.idl with removing dev interface. I confirmed this change does not breaks generator.py and build_sdk.py, and also current flash plugin still works correctly. BUG=None TBR=piman TEST=try bots NOTRY=True Review URL: https://chromiumcodereview.appspot.com/22364006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216141 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Move IMEInputEvent and TextInput to stable.nona@chromium.org2013-08-014-0/+299
| | | | | | | | | | | | To be able to work with current ppapi Flash, this CL keeps ABI of "PPB_IMEInputEvent_Dev_0_2", "PPB_TextInput_Dev_0_2" and "PPP_TextInput_Dev_0_2". BUG=None TEST=Manually checked that ppapi_example_ime works and also works with current Flash. NOTRY=True Review URL: https://chromiumcodereview.appspot.com/18671004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214878 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Initialize CompletionCallbackWithOutput storagedmichael@chromium.org2013-07-116-0/+45
| | | | | | | | BUG=250046 Review URL: https://chromiumcodereview.appspot.com/18611004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210999 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new parameter |latency| to PPB_AudioInput_Callback.yzshen@chromium.org2013-07-032-5/+55
| | | | | | | | | | | This CL updates the version of PPB_AudioInput_Dev and PPB_AudioInput_Callback; it also adds a new type PP_TimeDelta. BUG=240900 TEST=None Review URL: https://chromiumcodereview.appspot.com/14619033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209965 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Fixed misspelled enum name in documentation.mgiuca@chromium.org2013-06-261-1/+1
| | | | | | | | | | | PP_INPUTEVENT_TYPE_MOUSEDOWN, not PP_INPUTEVENT_TYPE_MOUSE_DOWN. BUG=253783 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/17590012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208820 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Move PPB_NetworkProxy out of Devdmichael@chromium.org2013-06-253-36/+57
| | | | | | | | | | | | This depends on the following CLs: https://codereview.chromium.org/17094022/ https://codereview.chromium.org/16819002/ BUG=247225 Review URL: https://chromiumcodereview.appspot.com/17004010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208513 0039d316-1c4b-4281-b951-d872f2087c98
* Add "PRIVATE" to the enum names of some private Pepper networking APIs:yzshen@chromium.org2013-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - ppb_net_address_private.idl - ppb_host_resolver_private.idl - ppb_tcp_socket_private.idl - ppb_udp_socket_private.idl Currently, we have very similar enum names in the private and public Pepper networking APIs (for example, PP_NETADDRESSFAMILY_IPV4 and PP_NETADDRESS_FAMILY_IPV4). The purpose of this CL is to make the distinction more clear. This CL doesn't break existing plugins compiled with old private networking enums (without "PRIVATE" in the names). They will still run on newer versions of Chrome. The only consequence is that they will get compile errors when they compile with new SDK (with new enum names). But the errors should be very straightforward to fix. BUG=253583 TEST=None R=bbudge@chromium.org, tsepez@chromium.org, wez@chromium.org Review URL: https://codereview.chromium.org/17615004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208291 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Introduce PPB_NetworkProxy_Devdmichael@chromium.org2013-06-242-0/+66
| | | | | | | | | | | | | | | This adds support for PPB_NetworkProxy_Dev for out-of-process and NaCl (when using --enable-nacl). Work still to do in future CLs: - Add permissions checking - Translate appropriate error codes from net_errors.h BUG=247225 R=jam@chromium.org, palmer@chromium.org, yzshen@chromium.org Review URL: https://codereview.chromium.org/16819002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208259 0039d316-1c4b-4281-b951-d872f2087c98
* Move PPB_HostResolver out of dev.yzshen@chromium.org2013-06-243-120/+118
| | | | | | | | | BUG=247225 TEST=None Review URL: https://chromiumcodereview.appspot.com/17291015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208147 0039d316-1c4b-4281-b951-d872f2087c98
* Move PPB_UDPSocket out of dev.yzshen@chromium.org2013-06-243-135/+134
| | | | | | | | | BUG=247225 TEST=None Review URL: https://chromiumcodereview.appspot.com/17094015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208145 0039d316-1c4b-4281-b951-d872f2087c98
* Move PPB_TCPSocket out of dev.yzshen@chromium.org2013-06-223-141/+140
| | | | | | | | | BUG=247225 TEST=None Review URL: https://chromiumcodereview.appspot.com/17314012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208094 0039d316-1c4b-4281-b951-d872f2087c98
* Move PPB_NetAddress out of dev.yzshen@chromium.org2013-06-229-173/+171
| | | | | | | | | BUG=247225 TEST=None Review URL: https://chromiumcodereview.appspot.com/17419008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208080 0039d316-1c4b-4281-b951-d872f2087c98
* Update comments of the Pepper networking APIs.yzshen@chromium.org2013-06-224-5/+350
| | | | | | | | | | | | | | | The following APIs are updated: - PPB_NetAddress_Dev - PPB_HostResolver_Dev - PPB_TCPSocket_Dev - PPB_UDPSocket_Dev BUG=247225 TEST=None Review URL: https://chromiumcodereview.appspot.com/16938011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208037 0039d316-1c4b-4281-b951-d872f2087c98
* Move PPB_VarArray and PPB_VarDictionary out of dev.raymes@chromium.org2013-06-2013-288/+289
| | | | | | | | | | | | Note that this completely removes the dev versions of the interfaces. The discussion on moving these interfaces to stable happened here: https://codereview.chromium.org/16136009 BUG=236958 Review URL: https://chromiumcodereview.appspot.com/17005006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207369 0039d316-1c4b-4281-b951-d872f2087c98
* Don't send PP_Vars/V8 values with cycles across PostMessageraymes@chromium.org2013-06-191-6/+18
| | | | | | | | | | | | This prevents PP_Vars/V8 values with cycles being transmitted across PostMessage. An undefined value will be sent instead and an error will be logged to the console. BUG=236958 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207040 Review URL: https://chromiumcodereview.appspot.com/16140011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207145 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 207040 "Don't send PP_Vars/V8 values with cycles across P..."raymes@chromium.org2013-06-181-18/+6
| | | | | | | | | | | | | | | | > Don't send PP_Vars/V8 values with cycles across PostMessage > > This prevents PP_Vars/V8 values with cycles being transmitted across PostMessage. An undefined value will be sent instead and an error will be logged to the console. > > BUG=236958 > > Review URL: https://chromiumcodereview.appspot.com/16140011 TBR=raymes@chromium.org Review URL: https://codereview.chromium.org/17239007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207043 0039d316-1c4b-4281-b951-d872f2087c98
* Don't send PP_Vars/V8 values with cycles across PostMessageraymes@chromium.org2013-06-181-6/+18
| | | | | | | | | | This prevents PP_Vars/V8 values with cycles being transmitted across PostMessage. An undefined value will be sent instead and an error will be logged to the console. BUG=236958 Review URL: https://chromiumcodereview.appspot.com/16140011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207040 0039d316-1c4b-4281-b951-d872f2087c98
* Change pp::NetAddress_Dev to use bool instead of PP_Bool.yzshen@chromium.org2013-06-182-13/+16
| | | | | | | | | BUG=247225 TEST=None Review URL: https://chromiumcodereview.appspot.com/17332003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206885 0039d316-1c4b-4281-b951-d872f2087c98
* Use HTTP response headers for PNaCl caching instead of bitcode hash.jvoung@chromium.org2013-06-171-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use Last-Modified and/or ETag values from the server plus the bitcode URL as a cache key. This allows us to remove a hash from the bitcode header and/or the PNaCl manifests. Also, start applying "Cache-Control: no-store" to the translated nexe, if it is part of the pexe's GET response. This also shifts around some of the file_downloader code to allow us to get a callback after the initial GET request, but before the streaming is completely done. Some caveats due to the layering of the trusted NaCl plugin vs the rest of chrome: * We end up with a basic HTTP response parser that splits fields based on what is returned by ppb_url_response_info. This can have been replaced by net/http/http_response_info.h For now, we end up with some extra testing burden. See: nacl_http_response_headers_unittest.cc Once we can depend on net/, we can replace this code. * We end up with some key sanitization. Until we switch from the HTML5 Filesystem to our own cache backend there are 2 or 3 characters that are disallowed in filenames. See: http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#naming-restrictions We did not run into that problem in the past because the NMF file's hash only had hexadecimal characters, which is okay. * Since the URL is now part of the cache, and not some hash of the contents, once the PNaCl cache is not per-origin, we have to be a bit careful that a user can only store something to its own origin. Perhaps that checking can be done with SiteInstance's IsSameWebsite()? This replaces: https://codereview.chromium.org/14683004. With no sha hash to read, there is sha hash to verify. BUG=http://code.google.com/p/nativeclient/issues/detail?id=2992 TEST=ppapi_unittests --gtest_filter=NaClHttpResponseHeadersTest* TEST=browser_tests --gtest_filter=*Pnacl* Review URL: https://chromiumcodereview.appspot.com/16569002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206797 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_HostResolver_Dev.yzshen@chromium.org2013-06-142-0/+143
| | | | | | | | | | | | | This change exposes the PPB_HostResolver_Dev interface and makes it to share the same backend as PPB_HostResolver_Private. It doesn't include apps permission check, which will be implemented in separate CLs. BUG=247225 TEST=newly added test_host_resolver.{h,cc}. Review URL: https://chromiumcodereview.appspot.com/16727002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206321 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_UDPSocket_Dev.yzshen@chromium.org2013-06-132-0/+168
| | | | | | | | | | | | | | | | This change exposes the PPB_UDPSocket_Dev interface and makes it to share the same backend as PPB_UDPSocket_Private. It doesn't include: - apps permission check; - UDP socket options that PPB_UDPSocket_Private doesn't support. These will be implemented in separate CLs. BUG=247225 TEST=newly added test_udp_socket.{h,cc}. Review URL: https://chromiumcodereview.appspot.com/16282005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206183 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_TCPSocket_Dev.yzshen@chromium.org2013-06-132-0/+170
| | | | | | | | | | | | | | | | This change exposes the PPB_TCPSocket_Dev interface and makes it to share the same backend as PPB_TCPSocket_Private. It doesn't include: - apps permission check; - TCP socket options that PPB_TCPSocket_Private doesn't support. These will be implemented in separate CLs. BUG=247225 TEST=newly added test_tcp_socket.{h,cc}. Review URL: https://chromiumcodereview.appspot.com/16667002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206014 0039d316-1c4b-4281-b951-d872f2087c98
* Implement GetVoucherFile and GetHmonitor functions for PPB_Flash_DRMraymes@chromium.org2013-06-112-0/+29
| | | | | | | | | | | | | | | | This adds 2 functions to PPB_Flash_DRM which are used for Flash DRM-related features. GetVoucherFile() returns a FileRef to a flash voucher file. This file will be dropped in to the tree next to the flash DLL and will be named plugin.vch. GetHmonitor returns the HMONITOR (on windows only) associated with the monitor displaying the instance. cpu@ will implement the backend for this. BUG=242241 R=cpu@chromium.org, jam@chromium.org, jschuh@chromium.org, yzshen@chromium.org Review URL: https://codereview.chromium.org/15079003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205640 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ppapi/cpp/dev/websocket_dev.cchamaji@chromium.org2013-06-111-148/+0
| | | | | | | | | | | | This should be gone in https://codereview.chromium.org/9192009 TEST=ninja browser_tests chrome BUG=N/A R=dmichael@chromium.org, toyoshim@chromium.org Review URL: https://codereview.chromium.org/16320008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205525 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_NetAddress_Dev.yzshen@chromium.org2013-06-102-0/+150
| | | | | | | | | BUG=247225 TEST=Newly added tests. Review URL: https://chromiumcodereview.appspot.com/16331007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205176 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up formatting to simplify post-Doxygen processing.awatson@chromium.org2013-05-301-13/+18
| | | | | | | | | BUG= R=dmichael@chromium.org, noelallen@chromium.org Review URL: https://codereview.chromium.org/15004017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203247 0039d316-1c4b-4281-b951-d872f2087c98
* Rename PPB_Flash_DeviceID interface to PPB_Flash_DRMraymes@chromium.org2013-05-252-0/+84
| | | | | | | | | | | This is mainly a mechanical change to rename PPB_Flash_DeviceID to PPB_Flash_DRM. It deprecates the old interface. The reason is that we will be adding more DRM-related APIs and it makes sense to put them into a single interface. BUG=242241 TBR=brettw for chrome_browser.gypi Review URL: https://chromiumcodereview.appspot.com/15491006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202286 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 201822 "Revert 201793 "PPAPI: Fix doc for MakeDirectory w..."nkostylev@chromium.org2013-05-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | | > Revert 201793 "PPAPI: Fix doc for MakeDirectory when directory e..." > > Seems to be breaking nacl_integration > http://build.chromium.org/p/chromium.win/builders/NaCl%20Tests%20%28x86-32%29/builds/3182 > > > PPAPI: Fix doc for MakeDirectory when directory exists > > > > BUG=242740 > > > > Review URL: https://chromiumcodereview.appspot.com/15755003 > > TBR=dmichael@chromium.org > > Review URL: https://codereview.chromium.org/15878004 TBR=nkostylev@chromium.org Review URL: https://codereview.chromium.org/15840007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201829 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 201793 "PPAPI: Fix doc for MakeDirectory when directory e..."nkostylev@chromium.org2013-05-231-4/+2
| | | | | | | | | | | | | | | | | Seems to be breaking nacl_integration http://build.chromium.org/p/chromium.win/builders/NaCl%20Tests%20%28x86-32%29/builds/3182 > PPAPI: Fix doc for MakeDirectory when directory exists > > BUG=242740 > > Review URL: https://chromiumcodereview.appspot.com/15755003 TBR=dmichael@chromium.org Review URL: https://codereview.chromium.org/15878004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201822 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Fix doc for MakeDirectory when directory existsdmichael@chromium.org2013-05-231-2/+4
| | | | | | | | BUG=242740 Review URL: https://chromiumcodereview.appspot.com/15755003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201793 0039d316-1c4b-4281-b951-d872f2087c98
* Add multicast support for PPB_Ext_Socket_Dev.yzshen@chromium.org2013-05-232-32/+145
| | | | | | | | | BUG=226303 TEST=None Review URL: https://chromiumcodereview.appspot.com/15545003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201759 0039d316-1c4b-4281-b951-d872f2087c98
* Exposed PPB_TCPServerSocketPrivate::GetLocalAddress().ygorshenin@chromium.org2013-05-212-18/+51
| | | | | | | | | | BUG=223006 NOTRY=true TEST=browser_tests:*TCPServerSocketPrivate* Review URL: https://chromiumcodereview.appspot.com/14172007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201250 0039d316-1c4b-4281-b951-d872f2087c98
* pp::FileSystem: add copy constrctorvictorhsieh@chromium.org2013-05-093-1/+9
| | | | | | | | | | This will make the output callback of ExtCrxFileSystemPrivate.Open easier to use. BUG=223301 Review URL: https://chromiumcodereview.appspot.com/14576007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199121 0039d316-1c4b-4281-b951-d872f2087c98
* Apps v2 in Pepper: access the value of a dictionary field using operator().yzshen@chromium.org2013-05-091-4/+6
| | | | | | | | | | | | Previously the value is accessed by object.some_field.value(). With this change, it becomes object.some_field(). BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/14607013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199120 0039d316-1c4b-4281-b951-d872f2087c98
* CRX FileSystem Pepper private APIvictorhsieh@chromium.org2013-05-085-1/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | pp::ExtCrxFileSystemPrivate is introduced in this change to allow plugin to mount (readonly) CRX extension directory as a filesystem. Files can be access through pp::ExtCrxFileRefPrivate (which is a subclass of pp::FileRef) just like normal file, and the path would look like "/manifest.json". See ppapi/example/crxfs for example. Some keypoints in this change: * pepper resource/host architecture: - please refer to ppapi/proxy/ext_crx_file_system_private_resource.h. * webkit/fileapi related: - Changes run in browser - Isoloated filesystem is the underlying filesystem - Grant read permission to corresponding renderer of the plugin - See chrome/browser/renderer_host/pepper/pepper_ext_crx_file_system_browser_host.cc * extension related: - Changes run in browser - This is for getting extension installed directory to mount TEST=out/Debug/chrome --register-pepper-plugins="out/Debug/lib/libppapi_example_crxfs.so#PPAPI Tests##1.2.3;application/x-ppapi-example-crxfs" \ ppapi/examples/crxfs/crxfs.html BUG=223301 Review URL: https://chromiumcodereview.appspot.com/14188019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198938 0039d316-1c4b-4281-b951-d872f2087c98
* Move DirectoryReader::ReadEntries to FileRef::ReadDirectoryEntrieshamaji@chromium.org2013-05-038-204/+174
| | | | | | | | | | | | | | | | | This also means this API becomes a stable API. While DirectoryReader was using the new pepper proxy API, FileRef is using the old one. As updating FileRef would take some time, the implementation of ReadEntries is converted from the new design to the old one for now. BUG=234513 TEST=browser_tests R=avi@chromium.org, binji@chromium.org, dmichael@chromium.org, palmer@chromium.org, raymes@chromium.org, teravest@chromium.org Review URL: https://codereview.chromium.org/14784002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198204 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 198126 - Reland: Add Pepper API tests for chrome.socket.yzshen@chromium.org2013-05-031-6/+4
| | | | | | | | | | | | | | | | | | This CL also refactors the gyp definitions for building NaCl testing modules. The original CL is https://codereview.chromium.org/13811036/ (The four reviewers on the TBR line have LG-ed it.) BUG=226303 TEST=None TBR=bradnelson@google.com Review URL: https://codereview.chromium.org/14236010 TBR=yzshen@chromium.org Review URL: https://codereview.chromium.org/14869004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198140 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: Add Pepper API tests for chrome.socket.yzshen@chromium.org2013-05-031-4/+6
| | | | | | | | | | | | | | | This CL also refactors the gyp definitions for building NaCl testing modules. The original CL is https://codereview.chromium.org/13811036/ (The four reviewers on the TBR line have LG-ed it.) BUG=226303 TEST=None TBR=bradnelson@google.com Review URL: https://codereview.chromium.org/14236010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198126 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce ExtCompletionCallbackWithOutput to support Pepper APIs in pp::ext.yzshen@chromium.org2013-05-0110-229/+451
| | | | | | | | | | | This change is necessary because apps V2 APIs always use PP_Var* as output parameter type (even for POD or resources). This behavior is different from CompletionCallbackWithOutput. BUG=226303 TEST=None Review URL: https://chromiumcodereview.appspot.com/14189017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197639 0039d316-1c4b-4281-b951-d872f2087c98
* Rename PPAPI Video Stream APIs.bbudge@chromium.org2013-04-2611-385/+425
| | | | | | | | | | | | | | | | | PP_VideoFrame -> PP_VideoFrame_Private PPB_VideoReader -> PPB_VideoSource_Private PPB_VideoWriter -> PPB_VideoDestination_Private IDL, .h and C++ wrapper files are now in /private subdirectories. Renamed some methods to fit the API names better. Changed the Source Open method's stream_id param to [in]. BUG=230980 TEST=none Review URL: https://chromiumcodereview.appspot.com/14192054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196595 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Remove verson 0.6 of PPB_Printing_Dev.teravest@chromium.org2013-04-241-12/+1
| | | | | | | | | | | | | | | | | | | | This is a deprecated dev interface that's had a replacement shipped in M23. There's a test for source compatability that will catch any problems if they exist with flash source code (which I don't have access to). Removing this interface lets us get rid of some cruft and autogenerate the thunk for PPB_Printing_Dev. Tested: Built browser_tests and chrome. R=raymes BUG= Review URL: https://chromiumcodereview.appspot.com/13852040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196194 0039d316-1c4b-4281-b951-d872f2087c98
* Remove memory/file handle leak in FileIO_Private::RequestOSFileHandlehamaji@chromium.org2013-04-244-20/+131
| | | | | | | | | BUG=224745 TEST=out/Release/browser_tests --gtest_filter='*PPAPI*FileIO*' Review URL: https://chromiumcodereview.appspot.com/14066015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196061 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 195915 "Add Pepper API tests for chrome.socket."ojan@chromium.org2013-04-231-6/+4
| | | | | | | | | | | | | | | | | | | | | This broke the Windows compile, e.g. see http://build.chromium.org/p/chromium.win/builders/Win%20Builder%20%28dbg%29/builds/14437/steps/compile/logs/stdio > Add Pepper API tests for chrome.socket. > > This CL also refactors the gyp definitions for building NaCl testing modules. > > BUG=226303 > TEST=None > > Review URL: https://chromiumcodereview.appspot.com/13811036 TBR=yzshen@chromium.org Review URL: https://codereview.chromium.org/14440003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195938 0039d316-1c4b-4281-b951-d872f2087c98
* Add Pepper API tests for chrome.socket.yzshen@chromium.org2013-04-231-4/+6
| | | | | | | | | | | This CL also refactors the gyp definitions for building NaCl testing modules. BUG=226303 TEST=None Review URL: https://chromiumcodereview.appspot.com/13811036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195915 0039d316-1c4b-4281-b951-d872f2087c98
* Add Pepper TrueType font API call to enumerate fonts in a given family.bbudge@chromium.org2013-04-192-16/+95
| | | | | | | | | | | | | | | Adds a new function, GetFontsInFamily, to the PPB_TrueTypeFont_Dev interface. This method returns an array of descriptors for every font in the given family on the host platform. Tests are currently disabled for Windows and Mac, since I got failures on XP and OSX 10.6 when landing them originally. I will re-enable them in follow on patches, which will be easier to land / revert if necessary. The tests pass locally for me on all platforms. BUG=79375,230130 TEST=browser_tests, gtest_filter="PPAPIOutOfProcessTest.TrueTypeFont" Review URL: https://chromiumcodereview.appspot.com/13913006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195082 0039d316-1c4b-4281-b951-d872f2087c98
* Add a default constructor for VarArrayBuffer, so that it can be used by ↵yzshen@chromium.org2013-04-135-26/+62
| | | | | | | | | | | ext::DictField. BUG=226303 TEST=None Review URL: https://chromiumcodereview.appspot.com/13985026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194066 0039d316-1c4b-4281-b951-d872f2087c98
* [PPAPI] Documentation fixes.binji@chromium.org2013-04-095-20/+20
| | | | | | | | | | | | | | | * I added a closing </code> tag in r191189, but it seems to be more consistent to forgo <code> tags for enums, so I've removed it. * I've also added @code/@endcode around a snippet of code that was flattened otherwise. BUG=none R=dmichael@chromium.org Review URL: https://codereview.chromium.org/13238002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193162 0039d316-1c4b-4281-b951-d872f2087c98
* Move HiDPI-related Pepper interfaces to stablejhorwich@chromium.org2013-04-094-48/+175
| | | | | | | | | | | | | | | | | | This adds the APIs provided in PPB_View_Dev_0_1 and PP_Graphics2D_Dev_0_1 to the public Pepper APIs for PPB_View and PPB_Graphics2D. Includes: - Change to IDL and generated C headers/shim - Change to PPAPI to export the 1_1 interfaces - C++ glue - Example PPAPI plugin for using HiDPI Pepper APIs BUG=144071 TEST=Existing (prebuilt) PDF plugin using 1.0 interfaces still works Review URL: https://codereview.chromium.org/12989006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193110 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-091-1/+1
| | | | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193020 Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193040 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Rewrite std::string("") to std::string(), Linux edition."dcheng@chromium.org2013-04-091-1/+1
| | | | | | | | | | | | | | This reverts commit e59558b78e8c6a1b0bd916a724724b638c3c91b6. Revert "Fix build after r193020." This reverts commit 558a35897f6b3ffbcaefde927c1f150b815d140a. Revert "Really fix build after r193020." This reverts commit e3748a79b523a8d365d4a33ef986eebb4186fa78. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193030 0039d316-1c4b-4281-b951-d872f2087c98