summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/examples
Commit message (Collapse)AuthorAgeFilesLines
* [NaCl SDK] Fix crash in pi_generator example.binji@chromium.org2012-05-081-1/+1
| | | | | | | | | | BUG=126319 TEST=none, unfortunately. :( TBR=noelallen1@chromium.org Review URL: https://chromiumcodereview.appspot.com/10375038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135765 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] Fix examples/Makefile to build all projects. Also change thebinji@chromium.org2012-05-081-4/+6
| | | | | | | | | | | | buildscript to test this use case. BUG=126319 TEST=naclsdk buildbots TBR=noelallen1@chromium.org Review URL: https://chromiumcodereview.appspot.com/10387011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135763 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl SDK: Update examples to use new "DidChangeView"dmichael@chromium.org2012-04-0314-41/+31
| | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9802048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130380 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl SDK: Add an example that uses VarArrayBuffer and file input.dmichael@chromium.org2012-03-286-5/+451
| | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9802011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129499 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up debugging.noelallen@google.com2012-03-252-27/+46
| | | | | | | | | | | Fix up HTML based on comments to cr 9716024 Clean up Makefil BUG=114444 TBR=awatson@chromium.org Review URL: https://chromiumcodereview.appspot.com/9855004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128837 0039d316-1c4b-4281-b951-d872f2087c98
* Add stack trace example to NaCl SDKnoelallen@google.com2012-03-229-1/+1008
| | | | | | | | | | | | | | Add example directory and files Add example to bundle (build_sdk.py) Add functions to find sel_ldr, plugin, irt, etc Add decode_dump.py to decode untrusted crash information. Update httpd to support XMLHttpRequests to generate stack trace R=bradnelson@chromium.org BUG=114444 Review URL: https://chromiumcodereview.appspot.com/9716024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128283 0039d316-1c4b-4281-b951-d872f2087c98
* Fix NewRequiredCallback use in examplesnoelallen@chromium.org2012-03-163-5/+5
| | | | | | | | | | Replace NewRequiredCallback with NewCallback in C++ examples for the SDK. R=brettw@chromium.org Review URL: http://codereview.chromium.org/9705069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127276 0039d316-1c4b-4281-b951-d872f2087c98
* Rename NaCl/pepper gamepad interface from _dev to stablescottmg@chromium.org2012-03-072-7/+7
| | | | | | | | | | | | | Following API review, and revisions here: https://chromiumcodereview.appspot.com/9405033/. This change is just the mechanical renames and bump of version number to 1.0. BUG=112879, 115119 Review URL: http://codereview.chromium.org/9566022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125399 0039d316-1c4b-4281-b951-d872f2087c98
* Revise gamepad interfacescottmg@chromium.org2012-03-011-3/+4
| | | | | | | | | | | | | | | | | | | | Per API review, revision to gamepad interface. Still in _dev for now, will move to stable as separate change once we're happy with the interface. Change summary: - renames of various fields, and main function in idl per discussion - timestamp to double, connected to PP_Bool - remove #pragma pack in header, now copied member-by-member - update examples One complication was in removing the #pragma pack. Copying by member in webkit/plugins/ppapi/ppapi_plugin_instance.cc avoids the need to keep webkit and pepper in sync and exactly the same layout (a good thing). However, when the native_client ppapi proxy is going between 32 and 64 the data structure ends up being a different size due to padding (all the fields are teh same sizes though). To workaround this, I added padding fields, and assert_sizes to confirm the sizes are the same on both "sides". This is similar to how PP_Point, input events, etc. get rpc'd, but perhaps there's a better way. BUG=112879 Review URL: http://codereview.chromium.org/9405033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124375 0039d316-1c4b-4281-b951-d872f2087c98
* Minor fixes for examples.noelallen@chromium.org2012-02-297-40/+43
| | | | | | | | | | | | | | | | Fix out of date index.html which describes the various examples. Fix incorrect NMF file for mt_input_events Remove extra warnings to prevent issue with glibc (BUG=115939) Add message when failing to save score in pong, due to incognito. Remove build script hack for force M18 compatible build (major - 1) TBR= bradnelson@chromium.org TEST= sdk trybots Review URL: http://codereview.chromium.org/9518013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124246 0039d316-1c4b-4281-b951-d872f2087c98
* Fix sine_synth examplenfullagar@google.com2012-02-181-1/+2
| | | | | | | | BUG=NONE TEST=this is the test / example. Review URL: https://chromiumcodereview.appspot.com/9421019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122667 0039d316-1c4b-4281-b951-d872f2087c98
* Add example for pnaclnoelallen@google.com2012-02-154-0/+343
| | | | | | | | | | | Refactor examples so that which examples are used is based on which toolchains are enabled for that build. R= sehr@google.com BUG= 112929 Review URL: https://chromiumcodereview.appspot.com/9395030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122059 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebSocket example.noelallen@google.com2012-02-156-1/+359
| | | | | | | | | | | | | | | | | Adds a websocket example to the NaCl SDK. 1- Add example to buildbot script 2- Add to main make example 3- Add examples sources 4- Update index.html to describe the example TBR= toyoshim@chromium.org Reviewed originally as: http://codereview.chromium.org/9310023/ BUG=112780 TEST=manual test is available from websocket.html Review URL: https://chromiumcodereview.appspot.com/9387022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122058 0039d316-1c4b-4281-b951-d872f2087c98
* Build cleanupsnoelallen@google.com2012-02-113-8/+7
| | | | | | | | | | | | | | | | Speed up slow "pong" example. Update "updater" to support new manifest format. Fix '.svn' exclude. Add list of files for SDK Add list of examples for SDK Committing TBR to green SDK tree, SDK changes do not affect Chrome. TBR= bradnelson@chromium.org BUG= 109207 Review URL: https://chromiumcodereview.appspot.com/9383038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121656 0039d316-1c4b-4281-b951-d872f2087c98
* Remove stale files unused by NaCl SDK buildernoelallen@chromium.org2012-02-116-722/+0
| | | | | | | | | | | | | | | 1- Old scons artifacts 2- Move index_staging -> index 3- Remove stale hello_world_c (now just hello_world) This CL is part of the NaCl SDK and does not affect Chrome. BUG= 109207 TBR= bradnelson@xchromium.org Review URL: http://codereview.chromium.org/9378026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121584 0039d316-1c4b-4281-b951-d872f2087c98
* Update Make filesnoelallen@google.com2012-02-1018-1591/+1054
| | | | | | | | | | | | | | | | | | This change grately simplifies the other example build cases making it easier to point out exactly what is different between the various builds. It also allows us to stage simple make file changes instead of starting with a more complex one. This change also adds the missing check_browser.js to each directory instead of copying it via macro from a common location. This change only affect the NaCl SDK builders. TBR=bradnelson@chromium.org BUG=109207 Review URL: https://chromiumcodereview.appspot.com/9383018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121569 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up examplesnoelallen@google.com2012-02-1023-811/+734
| | | | | | | | | | | | | | | | | | | | | Simplify hello world examples. Remove DEBUG/RELEASE builds from make. Remove 'helper_functions' from simple hello_world. Move C++ hello_world -> hello_world_interactive. Move Hello_world_c -> hello_world_newlib Copy Hello_world_c -> hello_world_glibc (with glibc TC) This change grately simplifies the hello world cases making it easier to point out exactly what is different between the various builds. It also allows us to stage simple make file changes instead of starting with a more complex one. This change only affect the NaCl SDK builders. BUG= 109207 Review URL: https://chromiumcodereview.appspot.com/9370041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121374 0039d316-1c4b-4281-b951-d872f2087c98
* Remove bogus make files.noelallen@google.com2012-02-062-2/+0
| | | | | | | | | | buildbot_run.py automatically generates make.bat files during the Windows SDK build process. These files should be removed. TBR= bradnelson@chromium.org Review URL: https://chromiumcodereview.appspot.com/9331011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120603 0039d316-1c4b-4281-b951-d872f2087c98
* Support GLBIC example in SDKnoelallen@google.com2012-02-0112-0/+996
| | | | | | | | | | | | | | | This CL added two new examples for the NaCl SDK. This only affects SDK bots since the code is completely contained within native_client_sdk subtree. Fix incorrectly placed ppapi headers. Remove TODOs and cleanup create_nmf.py. Add hello_world_glibc example Add dlopen example. BUG= 111224 Review URL: https://chromiumcodereview.appspot.com/9234043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120117 0039d316-1c4b-4281-b951-d872f2087c98
* Add simple NaCl gamepad examplescottmg@chromium.org2012-01-196-0/+476
| | | | | | | | | BUG=79098 Review URL: http://codereview.chromium.org/9148086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118334 0039d316-1c4b-4281-b951-d872f2087c98
* Update SDK build scripts to green tree.noelallen@google.com2012-01-1512-0/+72
| | | | | | | | | | | | | | | | Replace multiple SDK scripts with updated buildbot_run.py Remove Windows installer, use tgz/bz2 on all platforms. Remove scons, replace all example build components with Make. Add missing NMF files. Add oshelper to make a platform independant mv, rm, cp, mkdir This CL should only affect SDK bots, not Chrome. Commiting TBR to green SDK tree. BUG= 109207 TBR= bradnelson@chromium.org Review URL: http://codereview.chromium.org/9090001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117813 0039d316-1c4b-4281-b951-d872f2087c98
* Convert examples from scons to Makenoelallen@google.com2012-01-1370-967/+2335
| | | | | | | | | | | | | Remove all scons files. Remove all scons test files. Add Makefile. Fix various build issues due to PPAPI changes. NOTE: This only affect SDK builders and not Chrome itself. BUG= http://code.google.com/p/chromium/issues/detail?id=109917 Review URL: http://codereview.chromium.org/9139029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117675 0039d316-1c4b-4281-b951-d872f2087c98
* Switching license notice from nacl to chromium as the naclsdk has beenbradnelson@google.com2012-01-1298-98/+98
| | | | | | | | | | | merged into chromium. BUG=None TEST=None R=noelallen@chromium.org,steveblock@chromium.org Review URL: http://codereview.chromium.org/9051006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117462 0039d316-1c4b-4281-b951-d872f2087c98
* Update PPAPI IDL generator to define versioned structs, and unversioned typedef.wez@chromium.org2012-01-051-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For interface Foo with versions A and B, structs will be defined for Foo_A and Foo_B, and a typedef generated from Foo_B to Foo. Versioning of IDL structs remains unchanged. (Follow-up to discussion on CL 8931019) *** This change breaks compatibility with C code that makes use of unversioned-named interface structs. :( *** We need to define a versioned-named struct for each interface's current version. We could: 1. Carry on defining the current struct unversioned and typedef a versioned name for it. The versioned type for the interface would be a typedef for the latest version and a struct for later versions, causing calling C code that uses it to break when a new version is added. 2. Define structs for all versions, and a separate unversioned struct. This would lose type equivalence between the versioned and unversioned copies of the latest interface specification, and lead to needless duplication, especially for one-version interfaces. 3. Do this CL. We break some C code once, by change the unversioned type from struct to typedef, but we avoid these headaches in future. C++ code shouldn't be affected. *** Contents of this CL, including notes on to-dos: This change requires updating thunk-getters to be defined using versioned names, so that the interface structs can be forward declared; the thunk-getters now have versioned names and return values. Changing the thunk-getter naming requires updating unit-tests to call the versioned names. It also requires some interface headers not generated from IDL to be manually updated to the new scheme (PPB_CharSet_Dev, PPB_Crypto_Dev, PPB_DirectoryReader_Dev, PPB_LayerCompositor_Dev, PPB_Graphics3D, PPB_Flash_Menu, PPB_Instance_Private, PPP_Pdf, PPB_Flash_NetConnector, PPB_GLESChromiumTextureMapping_Dev and PPB_Graphics3D_Trusted). The proxy GetInfo() calls are updated to use versioned interface macros and thunks. Similarly, most PPBs added in interface_list.cc are now added using versioned interface macros and thunk getters. Ditto PluginModule, and some of PluginInstance. Some implementations (e.g. PPB_CharSet_Dev) needed updating to use versioned thunk getters to fetch interfaces to use. The VideoDecoder interface size checks are for 32-bit are updated not to expect structs. It was necessary to replace forward declarations of interface structs with includes, and remove "struct" prefixes where unversioned names were used. In most cases the affected code should really be updated to cope with versions. PPP_Pdf has become PPP_Pdf_1. Other versionless structs that should be updated for consistenct include PPB_UMA_Private, PPB_GPU_Blacklist_Private, PPB_Proxy_Private, PPP_PDF, PPB_OpenGLES2, PPB_Flash_File_FileRef and PPB_Flash_File_ModuleLocal. Also PPP_Class_Deprecated, PPP_CursorControl_Dev, PPP_Find_Dev, PPP_NetworkState_Dev, PPP_Scrollbar_Dev, PPP_Selection_Dev, PPP_VideoCapture_Dev, PPP_Graphics3D and PPP_Instance_Private. The Graphics2D and GLES2 examples now use unversioned interface type names without "struct" prefix. It's not clear whether examples should use versioned names, to show best practice, or unversioned. The typedef hack in PPP_Instance IDL is gone. Yay. BUG=107398,108379 TEST=All Pepper and NaCl tests should continue to pass on Chromium bots. NaCl SDK examples build correctly. Review URL: http://codereview.chromium.org/8989006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116490 0039d316-1c4b-4281-b951-d872f2087c98
* Merged in NaCl SDK r1388 from old repomball@google.com2011-12-132-5/+39
| | | | | | | | | | | | | | | | Original commit text: Add some suggested performance improvements to geturl. Original Review URL: http://codereview.chromium.org/8603014 BUG=None TEST=None TBR=bradnelson@chromium.org Review URL: http://codereview.chromium.org/8922018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114125 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PluginImageData and mouselock NaCl example:yzshen@chromium.org2011-12-091-8/+18
| | | | | | | | | | | | - Fix the memory leak in PluginImageData. - Fix the out-of-bound memory access in mouselock NaCl example. BUG=106779 TEST=mouselock NaCl example won't crash after a while (~30 seconds). Review URL: http://codereview.chromium.org/8872045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113854 0039d316-1c4b-4281-b951-d872f2087c98
* Update the NaCl SDK C example to handle removing module from VarFromUtf8dmichael@chromium.org2011-12-081-1/+1
| | | | | | | | | | BUG=106596 TEST=NaCl SDK Hello World C example builds and runs successfully. TBR=noelallen1 Review URL: http://codereview.chromium.org/8883008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113557 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "Restructuring SDK so that it builds inside a normal chrome ↵aa@chromium.org2011-11-292-12/+27
| | | | | | | | | | | | | checkout."" This reverts commit 5034eda4c488c4f47361bd3b70f52a375837326f. BUG=105658 TEST= Review URL: http://codereview.chromium.org/8687022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111827 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Restructuring SDK so that it builds inside a normal chrome checkout."aa@chromium.org2011-11-292-27/+12
| | | | | | | | | | | | | | This reverts commit f93e934130f674cde671d49f17dc152793e943ca. Revert "Make archiving source independent of which buildbot_run.py is run from." This reverts commit c4ab747a752ee8228bfb78f71b54df8ef9104c7e. BUG=105658 Review URL: http://codereview.chromium.org/8664018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111826 0039d316-1c4b-4281-b951-d872f2087c98
* Restructuring SDK so that it builds inside a normal chrome checkout.bradnelson@google.com2011-11-282-12/+27
| | | | | | | | | | | Adding the glibc toolchain to chromebots. BUG=None TEST=None R=noelallen@google.com Review URL: http://codereview.chromium.org/8676030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111759 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python scripts in src/native_client_sdk/maruel@chromium.org2011-11-271-5/+7
| | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. TBR=bradnelson@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8669017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111659 0039d316-1c4b-4281-b951-d872f2087c98
* Adding in (mostly) verbatim landing of nacl sdk.bradnelson@google.com2011-11-21102-0/+10433
| | | | | | | | | | | | | Dropping large binaries. Redo of http://crrev.com/110822 checkdeps + checkperms have now beep updated in preparation. BUG=None TEST=None R=noelallen@google.com TBR git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110872 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110822 - Breaks check_deps and check_permsrsleevi@chromium.org2011-11-19102-10433/+0
| | | | | | | | | | | | | | | Adding reduced version of sdk at 1387 to chrome tree. BUG=None TEST=None R=noelallen@google.com TBR BUG=None TBR=bradnelson@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110830 0039d316-1c4b-4281-b951-d872f2087c98
* Adding reduced version of sdk at 1387 to chrome tree.bradnelson@google.com2011-11-19102-0/+10433
BUG=None TEST=None R=noelallen@google.com TBR git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110822 0039d316-1c4b-4281-b951-d872f2087c98