summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/var.cc
Commit message (Collapse)AuthorAgeFilesLines
* Check for the specific interface versions required in pp::Var.wez@chromium.org2012-01-051-5/+5
| | | | | | | | | | 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
* Add GetLiveVars to PPB_Testing_Dev. Fix leaks it uncovered.dmichael@chromium.org2011-12-221-11/+15
| | | | | | | | | | 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
* Remove PP_Module from parameters for PPB_Var.VarFromUtf8.dmichael@chromium.org2011-12-071-22/+27
| | | | | | | | | | | | | | | | This change has tendrils stretching throughout the code, but mostly this lets us delete a bunch of stuff. This also does a slight refactor to put the PPB_Var implementations in 1 place, since they were already practically identical, and I didn't want to do the backwards-compat code in 2 places. BUG=106596 TEST=N/A TBR=darin,tony darin,tony TBR for rubber-stamp of webkit/glue/webkit_glue.gypi Review URL: http://codereview.chromium.org/8826011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113491 0039d316-1c4b-4281-b951-d872f2087c98
* Clone of http://codereview.chromium.org/8372020/bradnelson@google.com2011-10-241-0/+3
| | | | | | | Committing for krasin@chromium.org Review URL: http://codereview.chromium.org/8379007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106935 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some egregious bugs in Var.brettw@chromium.org2011-08-051-11/+18
| | | | | | | | | | | | | | | | Self-assignment was broken and would lose the reference. I uncovered this when running a test. It outputted a warning to the console, but we never looked at it. I made a more explicit test. This also fixes output exceptions. The OutException helper class detected whether the existing object had an exception or not incorrectly. This was exposed when var assignment was fixed. TEST=included BUG=none Review URL: http://codereview.chromium.org/7511026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95690 0039d316-1c4b-4281-b951-d872f2087c98
* Remove untrusted scripting support.dmichael@chromium.org2011-07-141-192/+15
| | | | | | | | | BUG=82606 TEST=ppapi_tests,ppapi_unittests Review URL: http://codereview.chromium.org/7362012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92557 0039d316-1c4b-4281-b951-d872f2087c98
* Removed MemAlloc and MemFree from PPB_Coremball@google.com2011-07-141-2/+5
| | | | | | | | | BUG=81610 TEST=Trybots Review URL: http://codereview.chromium.org/7349016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92554 0039d316-1c4b-4281-b951-d872f2087c98
* Remove PPBoolToBool and BoolToPPBool and use PP_FromBool and PP_ToBool instead.brettw@chromium.org2011-07-081-3/+2
| | | | | | | | | | I will remove ppapi/cpp/common.h when I'm sure nacl doesn't need it. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/7237039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91809 0039d316-1c4b-4281-b951-d872f2087c98
* This guarantees that the underlying PP_Var is all initialized. There was a ↵dspringer@chromium.org2011-06-101-2/+2
| | | | | | | | | | | red test bot in NaCl (lucid-newlib-64-dbg); the problem was caused by garbage values (non-0) in pp:Var being usedto index into the proxy var cache. BUG=none TEST=ppapi tests Review URL: http://codereview.chromium.org/6995138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88725 0039d316-1c4b-4281-b951-d872f2087c98
* Remove scripting from pp::Var with an opt-in compiler predefine.dmichael@chromium.org2011-05-271-27/+43
| | | | | | | | | BUG=82606 TEST=it compiles, and ppapi tests Review URL: http://codereview.chromium.org/7076024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87034 0039d316-1c4b-4281-b951-d872f2087c98
* Create a VarPrivate interface to contain the scripting helper functions of Var.brettw@chromium.org2011-04-111-5/+2
| | | | | | | | | | | | Currently, the old functions are left in Var. When people have a chance to move to this new API, we can delete them from Var. This also adds new enums for ARRAY and DICTIONARY vars, and makes the var C++ wrapper forward-compatible with them by refcounting any enums that it doesn't know about. Review URL: http://codereview.chromium.org/6823016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81068 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize a few uninitialized member variables and structs in PPAPI.finnur@chromium.org2011-03-281-1/+9
| | | | | | | | | BUG=None TEST=None CID=14043, 14386, 14232, 14230, 14112, 14111, 14110, 14109, 14108, 14231, 14042, 14187, 14664. Review URL: http://codereview.chromium.org/6676145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79540 0039d316-1c4b-4281-b951-d872f2087c98
* Add an instance parameter to var objects, audio, and the 2D API. This ↵brettw@chromium.org2011-01-071-2/+3
| | | | | | | | | | | | | | | | replaces the module in most cases. This will be used in the proxy to multiplex one plugin across multiple renderer processes. We need the instance in the proxy to know which process to send it to. I added a deprecated var object creation function for native client, which depends on the module and this is very difficult to change. Because it doesn't have the multiplexing requirements, this is fine for now. TEST=ppapi ui tests BUG=none Review URL: http://codereview.chromium.org/6085009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70721 0039d316-1c4b-4281-b951-d872f2087c98
* Remove static initializers.neb@chromium.org2010-12-201-65/+72
| | | | | | | | | BUG=52915 TEST=no new functionality, passes ppapi_tests Review URL: http://codereview.chromium.org/5797006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69732 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug in pp:Var (var.cc) where DebugString could throw an exception on ↵bbudge@google.com2010-12-071-11/+20
| | | | | | | | | | Windows; replace _snprintf_s, which doesn't have the same signature as snprintf, with sprintf_s, which has the same function signature. Check length of string vars and truncate values (adding ellipsis at end) if the won't fit in our fixed size buffer. TEST=manual BUG=none (found during testing in Chrome) Review URL: http://codereview.chromium.org/5559009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68540 0039d316-1c4b-4281-b951-d872f2087c98
* Remove pp::Var(int) garianov@google.com2010-11-191-6/+0
| | | | | | Review URL: http://codereview.chromium.org/5215002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66774 0039d316-1c4b-4281-b951-d872f2087c98
* Run Pepper unit tests in Native Clientgarianov@google.com2010-11-161-0/+6
| | | | | | | | | copy of http://codereview.chromium.org/4991006/ had to do it again in 'commitable' version of chrome tree Review URL: http://codereview.chromium.org/4979006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66321 0039d316-1c4b-4281-b951-d872f2087c98
* Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on ↵dmichael@google.com2010-11-051-2/+3
| | | | | | | | | | | | | | Windows). This includes changing bool to PP_Bool and adding a PP_INLINE macro. TEST=tests/test_c_includes.c BUG=59791,53451 The first patch set is a straight copy of http://codereview.chromium.org/4019010/show which got LGTMed when PPAPI was in its own repo, but had to be rolled back in order to include chrome changes. IMPORTANT: This change will break plugin implementations that use the C interface, and might break others as well. Review URL: http://codereview.chromium.org/4310002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65200 0039d316-1c4b-4281-b951-d872f2087c98
* Move PPAPI into the Chrome repo. The old repo wasbrettw@chromium.org2010-11-011-0/+365
http://ppapi.googlecode.com/ TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64613 0039d316-1c4b-4281-b951-d872f2087c98