summaryrefslogtreecommitdiffstats
path: root/third_party/npapi
Commit message (Collapse)AuthorAgeFilesLines
* Fix more type issues from the npapi.h tranisition to *_t typesstuartmorgan@chromium.org2010-06-042-19/+2
| | | | | | | | | | | | | Fixes the remaining not _t types in our plugin code Removes the extra typedefs added to our copy of npapi.h Adds headers to plugin code where necessary due to implicit dependencies on standard headers via basictypes.h BUG=42645 TEST=Everything still compiles Review URL: http://codereview.chromium.org/2505001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48952 0039d316-1c4b-4281-b951-d872f2087c98
* Implement support for NPDrawingModelInvalidatingCoreAnimation in Mac pluginsstuartmorgan@chromium.org2010-06-031-1/+3
| | | | | | | | | BUG=38982 TEST=None (no plugins use it yet) Review URL: http://codereview.chromium.org/2561005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48877 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bunch more type changes as part of the npapi.h mergingstuartmorgan@chromium.org2010-06-022-75/+65
| | | | | | | | | | | | | This makes two types of changes - More int* -> int*_t transitions, since npapi.h switched over - Replace TRUE/FALSE, which have been removed from the upstream npapi.h. Since all our usage is C++, true/false seemed cleaner than 1/0. BUG=42645 TEST=Compiling still works Review URL: http://codereview.chromium.org/2484002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48725 0039d316-1c4b-4281-b951-d872f2087c98
* Add a "Copy" API to Pepper, so that plugins don't have to hardcode the ↵jam@chromium.org2010-05-271-0/+5
| | | | | | | | platform specific shortcut. Also, this makes copying through the page menu work on Mac and Linux. Review URL: http://codereview.chromium.org/2329001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48443 0039d316-1c4b-4281-b951-d872f2087c98
* Add a SetCursor API to Pepper. I'll implement custom cursors once we ↵jam@chromium.org2010-05-241-0/+51
| | | | | | | | switched over to the new API. Review URL: http://codereview.chromium.org/2122018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48053 0039d316-1c4b-4281-b951-d872f2087c98
* fix cast so it works in cnfullagar@google.com2010-05-191-2/+2
| | | | | | Review URL: http://codereview.chromium.org/2068010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47602 0039d316-1c4b-4281-b951-d872f2087c98
* don't include nptypes.h for native clientnfullagar@google.com2010-05-181-2/+4
| | | | | | Review URL: http://codereview.chromium.org/2077010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47581 0039d316-1c4b-4281-b951-d872f2087c98
* add temp typedefs so we can bump DEPS in NaClnfullagar@google.com2010-05-181-0/+20
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47550 0039d316-1c4b-4281-b951-d872f2087c98
* GYP changes for FreeBSD and OpenBSDpvalchev@google.com2010-05-141-1/+1
| | | | | | Review URL: http://codereview.chromium.org/1480002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47327 0039d316-1c4b-4281-b951-d872f2087c98
* remove last comma from enum lists (required to build on NaCl with stricter ↵nfullagar@google.com2010-05-141-5/+5
| | | | | | | | compiler) Review URL: http://codereview.chromium.org/2090005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47302 0039d316-1c4b-4281-b951-d872f2087c98
* More changes to sync npapi.h to the upstream npapi-headers version.stuartmorgan@chromium.org2010-05-131-67/+62
| | | | | | | | | | | | - Syncs the use of NP_LOADDS - Pulls recent minor upstream cleanup BUG=42645 TEST=None; no behavioral changes Review URL: http://codereview.chromium.org/2091003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47219 0039d316-1c4b-4281-b951-d872f2087c98
* Update the Pepper scrollbar widget to use the new WebKit Scrollbar interface.jam@chromium.org2010-05-121-4/+12
| | | | | | Review URL: http://codereview.chromium.org/2008008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47000 0039d316-1c4b-4281-b951-d872f2087c98
* Change npapi.h header guard to match npapi-headers versionstuartmorgan@chromium.org2010-05-111-3/+3
| | | | | | | | | BUG=42645 TEST=Everything still compiles Review URL: http://codereview.chromium.org/2002008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46927 0039d316-1c4b-4281-b951-d872f2087c98
* Add more OS/2 defines to npapi.hstuartmorgan@chromium.org2010-05-111-0/+43
| | | | | | | | | | | Brings us yet closer to matching the npapi-headers version. BUG=42645 TEST=None; no behavioral changes. Review URL: http://codereview.chromium.org/2014008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46918 0039d316-1c4b-4281-b951-d872f2087c98
* Add Symbian defines to npapi.h to match upstream changesstuartmorgan@chromium.org2010-05-101-8/+16
| | | | | | | | | BUG=42645 TEST=None; no behavioral changes. Review URL: http://codereview.chromium.org/2015009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46871 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to using npfunctions.h from npapi-headers for NPAPI declarationsstuartmorgan@chromium.org2010-05-103-289/+227
| | | | | | | | | BUG=42645 TEST=Compiling still works. Review URL: http://codereview.chromium.org/2003009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46814 0039d316-1c4b-4281-b951-d872f2087c98
* Add parameters to CreateWidget Pepper API so we can specify whether a ↵jam@chromium.org2010-05-071-3/+8
| | | | | | | | scrollbar is vertical or not. Review URL: http://codereview.chromium.org/1996009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46741 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the obsolete JRI bits from the NPAPI headersstuartmorgan@chromium.org2010-05-072-14/+1
| | | | | | | | | BUG=42645 TEST=Existing plugin tests continue to pass; nothing should change. Review URL: http://codereview.chromium.org/2011005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46732 0039d316-1c4b-4281-b951-d872f2087c98
* Add new widget API to Pepper to replace the old theming API. The ↵jam@chromium.org2010-05-071-184/+222
| | | | | | | | implementation is a copy of the WebKit code, I will figure out how to reuse it soon. Review URL: http://codereview.chromium.org/2011004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46710 0039d316-1c4b-4281-b951-d872f2087c98
* Bring npapi.h closer to the npapi-headers project versionstuartmorgan@chromium.org2010-05-061-87/+100
| | | | | | | | | | | | | | | | | | | This makes a bunch of changes that shouldn't actually affect anything: - Removes XP_MAC - Removes old Carbon event constants - Removes Metrowerks defines - Adds new constants and structs from recent spec updates - Adds OS/2 defines - Adds Maemo defines Also makes more whitespace adjustments to track central repository. BUG=42645 TEST=none; no behavioral changes Review URL: http://codereview.chromium.org/1995007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46596 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate non-functional differences between our NPAPI headers and the ↵stuartmorgan@chromium.org2010-05-052-427/+408
| | | | | | | | | | | | | npapi-headers copies This changes only whitespace/comment and file order differences; substantive changes will be done separately. BUG=42645 TEST=None; no behavioral changes. Review URL: http://codereview.chromium.org/2001001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46522 0039d316-1c4b-4281-b951-d872f2087c98
* Move NPAPI to C99 typesstuartmorgan@chromium.org2010-05-056-113/+185
| | | | | | | | | BUG=42645 TEST=None; no behavioral change. Review URL: http://codereview.chromium.org/1910004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46463 0039d316-1c4b-4281-b951-d872f2087c98
* New experimental Pepper device API.apatrick@chromium.org2010-04-161-0/+218
| | | | | | | | | | | | | | | - makes device contexts opaque to the plugin - can get / set multiple attributes and flush with a single call (and underlying IPC message exchange) - currently works in parallel with old API - adapted pepper test plugin to use new API if use_new_npdevice_api=1 TEST=trybots, visual confirmation that pepper test plugin works with new API BUG=none Review URL: http://codereview.chromium.org/1529005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44840 0039d316-1c4b-4281-b951-d872f2087c98
* Remove trailing comma to make enum compile for native clientnfullagar@google.com2010-04-141-1/+1
| | | | | | Review URL: http://codereview.chromium.org/1551030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44518 0039d316-1c4b-4281-b951-d872f2087c98
* Extend the file browser/chooser to support more modes of operation, and plumbbrettw@chromium.org2010-03-301-0/+59
| | | | | | | | | | | | | it through to the pepper API. This pepper API just supports adding the filename to the "upload files" whitelist and returning it to the plugin, but it does not actually give any ability for a sandboxed plugin to read the file (this will come in a separate changelist). TEST=none BUG=none Review URL: http://codereview.chromium.org/1094004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43123 0039d316-1c4b-4281-b951-d872f2087c98
* Add zooming notifications to Pepper. This allows the plugin to respond to ↵jam@chromium.org2010-03-261-0/+6
| | | | | | | | full page zooms without hardcoding the shortcuts for each platform/browser and allows the menus to work. Review URL: http://codereview.chromium.org/1320007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42799 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome side of adding search support to Pepper.jam@chromium.org2010-03-251-17/+62
| | | | | | Review URL: http://codereview.chromium.org/1075011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42585 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed the Pepper print interface to take in the print dimensions and printer ↵sanjeevr@chromium.org2010-03-121-11/+6
| | | | | | | | | | | DPI only in the PrintBegin method. The plugin is expected to remember this until PrintEnd is called. BUG=None TEST=Test printing with plugins that support the new interface Review URL: http://codereview.chromium.org/858007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41453 0039d316-1c4b-4281-b951-d872f2087c98
* Added functions to the Pepper interface to allow plugins to participate in ↵sanjeevr@chromium.org2010-03-111-1/+57
| | | | | | | | | | | | the browser's print workflow. For now, added an interface for raster print output. Also modified vector_platform_device_win.cc to allow the caller to set a bitmap compression mode for use in the internalDrawBitmap method. Supported compression modes are JPEG and PNG. BUG=none TEST=Test printing with new plugins that support this interface. Review URL: http://codereview.chromium.org/669280 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41321 0039d316-1c4b-4281-b951-d872f2087c98
* Minor tweaks to get the NaCl tool-chain to build with the latest GPU stuff.dspringer@google.com2010-03-091-3/+5
| | | | | | | | | BUG=none TEST=none (Build the NaCl tool chain). Review URL: http://codereview.chromium.org/741001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41069 0039d316-1c4b-4281-b951-d872f2087c98
* Add theming API to Pepper. For now, this only handles scrollbars.jam@chromium.org2010-03-081-0/+52
| | | | | | Review URL: http://codereview.chromium.org/660158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40969 0039d316-1c4b-4281-b951-d872f2087c98
* Committing change from Gene Gutnik <gene@chromium.org>. Original change at ↵jam@chromium.org2010-03-051-0/+7
| | | | | | | | | | | | | | | | | http://codereview.chromium.org/667011. Add function to Pepper API to copy text from plugin to clipboard. This functionality is necessary for good user experience, since plugin may have a custom copy button, menu, shortcut for copy functionality. This is a simple text copy interface first, and later we might need more complex format (HTML maybe) as well as cut/paste functionality. BUG=none TEST=Call CopyClipboard from plugin. Try to paste in the text editor. Verify that paste inserts the same characters. Review URL: http://codereview.chromium.org/669187 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40791 0039d316-1c4b-4281-b951-d872f2087c98
* checksum computation that returns the least significant 32-bits of the ↵abetul@google.com2010-03-041-1/+4
| | | | | | | | | | 128-bit MD5 digest BUG=none TEST=none Review URL: http://codereview.chromium.org/666012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40650 0039d316-1c4b-4281-b951-d872f2087c98
* I just put the code that does not compile on ARM. Trybots will fail because ↵apatrick@chromium.org2010-02-241-0/+10
| | | | | | | | | | | | | | I had to remove these from the CL to make gcl upload properly accept it. A + base\scoped_open_process.h A + chrome\plugin\command_buffer_stub_win.cc TEST=try BUG=none Review URL: http://codereview.chromium.org/661022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39937 0039d316-1c4b-4281-b951-d872f2087c98
* Move nphostapi.h to be with the rest of the NPAPI headers.jam@chromium.org2010-02-242-0/+326
| | | | | | Review URL: http://codereview.chromium.org/652161 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39852 0039d316-1c4b-4281-b951-d872f2087c98
* Missed OpenBSD ifdef in third_partypvalchev@google.com2010-02-231-1/+1
| | | | | | Review URL: http://codereview.chromium.org/652130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39781 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 39530 - GPU plugin forwards repaint events to Pepper plugin.apatrick@chromium.org2010-02-201-10/+0
| | | | | | | | | | | | | | | | WM_PAINT results in a call to Pepper repaint callback. Implemented WM_ERASEBKGND to prevent flickering on repaint. Implemented PGL_NO_CONTEXT (copied from EGL spec). This is already reviewed by alokp but unfortunately got entangled with this CL. TEST=none BUG=none Review URL: http://codereview.chromium.org/571018 TBR=alokp@chromium.org Review URL: http://codereview.chromium.org/650100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39535 0039d316-1c4b-4281-b951-d872f2087c98
* GPU plugin forwards repaint events to Pepper plugin.apatrick@chromium.org2010-02-201-0/+10
| | | | | | | | | | | | | WM_PAINT results in a call to Pepper repaint callback. Implemented WM_ERASEBKGND to prevent flickering on repaint. Implemented PGL_NO_CONTEXT (copied from EGL spec). This is already reviewed by alokp but unfortunately got entangled with this CL. TEST=none BUG=none Review URL: http://codereview.chromium.org/571018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39530 0039d316-1c4b-4281-b951-d872f2087c98
* solaris: minor ifdefsevan@chromium.org2010-02-171-1/+1
| | | | | | | | | | | | | base/process_util_posix.cc, base/third_party/nspr/prcpucfg.h, third_party/npapi/bindings/npapi.h: added alternate Solaris OS choice BUG=30101 TEST=compiles Patch by James Choi <jchoi42@pha.jhu.edu>. Review URL: http://codereview.chromium.org/606069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39220 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some issues with compiling Mac plugin code with deprecation defines setstuartmorgan@chromium.org2010-02-161-0/+2
| | | | | | | | | | | | Makes the code compile under NP_NO_QUICKDRAW and NP_NO_CARBON (modulo some gyp stuff that 64-bit builds will need to prevent compiling the shim library), and makes the tweaking of DYLD_INSERT_LIBRARIES 32-bit only. Also removes a QuickDraw variable left over from an earlier version of the QuickDraw support. BUG=none TEST=none; supports future 64-bit compilation Review URL: http://codereview.chromium.org/597053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39096 0039d316-1c4b-4281-b951-d872f2087c98
* base::SharedMemory does not set the size in other than the creatingsehr@google.com2010-02-101-1/+4
| | | | | | | | process. Create an API to get the size of the audio shared memory region. Review URL: http://codereview.chromium.org/596038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38665 0039d316-1c4b-4281-b951-d872f2087c98
* Audio support for native client requires some additional featuressehr@google.com2010-02-092-1/+5
| | | | | | | | | | | | | | | | from pepper. Notably, the existing pepper implementation was, by default, creating a high-priority producer thread. For the NaCl version this thread should be in the NaCl module, and hence we need to separate thread creation from pre-filling with the callback. The latter is used to send an RPC to NaCl to pass the shared memory and sync socket. Getting the shared memory was done by the first reserved state value. Getting the sync socket required allocating a second. Also changed the pepper test plugin to use the new startThread member. Review URL: http://codereview.chromium.org/593023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38544 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented async flushes for Pepper 3D.apatrick@chromium.org2010-02-091-0/+10
| | | | | | | | | | | Added waitForProgress field to NPDeviceContext3D to select between a flush (that pushes more work to the GPU process and waits for at least some of it to have been completed) and getting the current state as quickly as possible. The previous method of checking to see if the put offset had advanced was incorrect. TEST=trybots BUG=none Review URL: http://codereview.chromium.org/561058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38540 0039d316-1c4b-4281-b951-d872f2087c98
* Added support for lost context recovery on the client side. None of our ↵apatrick@chromium.org2010-02-031-0/+15
| | | | | | | | | | | | | | | | | | | service side GL implementations actually report lost contexts (yet). Added pglGetError to PGL library. pglSwapBuffers returns false on a lost context or other non-recoverable error and pglGetError reports PGL_CONTEXT_LOST. Updated demo plugins to reset their PGL contexts on context lost. Standalone plugins cannot currently recover from lost context because they don't use PGL. Added error code to NPDeviceContext3D for lost context. TEST=none BUG=none Review URL: http://codereview.chromium.org/566021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38039 0039d316-1c4b-4281-b951-d872f2087c98
* Dropping unconnected obsolete vsprops files.bradnelson@google.com2010-02-031-11/+0
| | | | | | | | | BUG=8042 TEST=None Review URL: http://codereview.chromium.org/567033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38016 0039d316-1c4b-4281-b951-d872f2087c98
* To implement Pepper in Native Client we need access to the implementation of thesehr@google.com2010-02-032-2/+20
| | | | | | | | | | | | | | Pepper APIs in Chrome. Specifically, we need to be able to get the base::SharedMemory or TransportDIB memory regions used to communicate with devices. To enable doing this, especially in 64-bit Chrome, I needed to change the GetStateContext and SetStateContext functions to manipulate 64-bit values. This CL does not include the Native Client hookup to the new APIs, but is needed to do so. BUG=none TEST=none Review URL: http://codereview.chromium.org/569004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37975 0039d316-1c4b-4281-b951-d872f2087c98
* Remove yet another comma that gets in the way of the NaCl build.sehr@google.com2010-02-021-1/+1
| | | | | | Review URL: http://codereview.chromium.org/568003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37780 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed ParseError -> Error, parse_error -> error, kParseNoError -> ↵apatrick@chromium.org2010-02-011-3/+12
| | | | | | | | | | | | kNoError, commandBufferEntries -> commandBufferSize. Added NPDevice3DContextError enumeration. TEST=none BUG=none Review URL: http://codereview.chromium.org/558054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37751 0039d316-1c4b-4281-b951-d872f2087c98
* Redesigned CommandBuffer and NPDevice3D interfaces.apatrick@chromium.org2010-01-291-14/+6
| | | | | | | | | | | | All status is now in the Device3D context. It can be retreived with fewer IPC messages. It can be now be accessed off the main plugin thread, which is necessary to run OpenGL in another thread. TEST=none BUG=none Review URL: http://codereview.chromium.org/555020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37545 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor Pepper device APIneb@chromium.org2010-01-251-3/+2
| | | | | | | | | Track Pepper DeviceContexts using ID (and reclaim them upon shutdown) Refactor device-specific code into pepper_devices.h Review URL: http://codereview.chromium.org/548100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37060 0039d316-1c4b-4281-b951-d872f2087c98