summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* Implement AssignGLESBuffers for VideoDecode PPAPIvrk@google.com2011-06-109-79/+218
| | | | | | | | | | | | Fills in implementation for AssignGLESBuffers where it was missing. Also updates OmxVideoDecodeAccelerator to reflect the changes. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6965010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88698 0039d316-1c4b-4281-b951-d872f2087c98
* Implement out-of-process proxy for PPB_Buffer_Dev.fischman@chromium.org2011-06-1015-38/+182
| | | | | | | | | BUG=85427,85441 TEST=./ninja/ui_tests --gtest_filter=*PPAPITest.Buffer Review URL: http://codereview.chromium.org/7108051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88630 0039d316-1c4b-4281-b951-d872f2087c98
* New documentation for resource.h, core.h, and common.hjond@google.com2011-06-093-34/+120
| | | | | | Review URL: http://codereview.chromium.org/7054060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88562 0039d316-1c4b-4281-b951-d872f2087c98
* Remove rendundant use of product_name in gyp files.evan@chromium.org2011-06-091-2/+0
| | | | | | | | | We default to using the target name as the product name; there's no need to state it twice. Review URL: http://codereview.chromium.org/7135006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88556 0039d316-1c4b-4281-b951-d872f2087c98
* Proxy PPB_Var, fix o-o-p string var id tracking.dmichael@chromium.org2011-06-0813-70/+518
| | | | | | | | | | | | | Note this doesn't need to use IPC at all, so it's a little strange. Made test for pp::Var/PPB_Var that does only strings (copied from test_var_deprecated.cc). Fixed string var tracking so test can pass out-of-process (aside from invalid UTF8 checking, which is still not implemented o-o-p). BUG=85236 TEST=test_var.cc, run tests manually out-of-process. Review URL: http://codereview.chromium.org/6995083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88384 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 131935:132017thakis@chromium.org2011-06-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang recently added a warning that warns when invoking 'delete' on a polymorphic non-final class without a virtual destructor. This finds real bugs – see the bug referenced below for a few examples. However, one common pattern where it fires is this case: class SomeInterface { public: virtual void interfaceMethod() {} // or = 0; protected: ~SomeInterface() {} } class WorkerClass : public SomeInterface { public: // many non-virtual functions, but also: virtual void interfaceMethod() override { /* do actual work */ } }; void f() { scoped_ptr<WorkerClass> c(new WorkerClass); // simplified example } (See the 2nd half of http://www.gotw.ca/publications/mill18.htm for an explanation of this pattern.) It is arguably correct to fire the warning here, since someone might make a subclass of WorkerClass and replace |new WorkerClass| with |new WorkerClassSubclass|. This would be broken since WorkerClass doesn't have a virtual destructor. The solution that the clang folks recommend is to mark WorkerClass as |final| (a c++0x keyword that clang supports as an extension in normal c++ mode – like override). But chrome's base/OWNERS deemed that as too complicated and we decided to make virtual the destructors of leaf classes that implement these interfaces and that are deleted dynamically. All of the changes in this CL are to shut up the warning, not because of real problems (I fixed these in separate CLs). (For the gtk files, this is necessary because the CHROMEGTK_CALLBACK_ macros add virtual functions.) BUG=84424 TEST=none Review URL: http://codereview.chromium.org/7087028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88270 0039d316-1c4b-4281-b951-d872f2087c98
* New documentation for rect.h and size.hjond@google.com2011-06-072-27/+244
| | | | | | Review URL: http://codereview.chromium.org/7066058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88233 0039d316-1c4b-4281-b951-d872f2087c98
* Make PPAPI tests call the destructor for TestCase. TestingInstance ↵bbudge@google.com2011-06-072-1/+7
| | | | | | | | | | constructs a TestCase but never calls the destructor. In the case of TestScrollbar, this causes a surf-away ASSERT because the per-instance objects remain in the global map. A simple fix is to define a virtual destructor for TestingInstance, and in the base implementation, call the destructor for the current TestCase, if any. BUG=85141 TEST=PPAPITests Review URL: http://codereview.chromium.org/7064048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88227 0039d316-1c4b-4281-b951-d872f2087c98
* New documentation for audio.h and audio_config.hjond@google.com2011-06-072-23/+113
| | | | | | Review URL: http://codereview.chromium.org/6993025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88186 0039d316-1c4b-4281-b951-d872f2087c98
* Fix 'C' header generationnoelallen@google.com2011-06-074-57/+133
| | | | | | | | | | | | | | Added chidlist which provides in-order access to node children. Extra warning information on idl_parse. Added 'srcdir' to parser for prepending path Added header generator Fixed minor errors in idl_c_proto BUG= http://codereview.chromium.org/7085014/ TEST= python idl_c_header.py --srcdir="../api" *.idl Review URL: http://codereview.chromium.org/7056069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88079 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87919 - Revert 87905 (broke PPAPITest.Scrollbar on win) - PPAPI: Fix ↵polina@google.com2011-06-068-62/+93
| | | | | | | | | | | | | | | | | | | | interface functions that take PP_CompletionCallbacks, but don't return codes from pp_errors.h 87905 - Review URL: http://codereview.chromium.org/6975053 87919 - Review URL: http://codereview.chromium.org/7058061 BUG=85010 TEST=none Review URL: http://codereview.chromium.org/6975053 Review URL: http://codereview.chromium.org/7058061 TBR=dhollowa@chromium.org Review URL: http://codereview.chromium.org/7112040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88055 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87905 (broke PPAPITest.Scrollbar on win) - PPAPI: Fix interface ↵thakis@chromium.org2011-06-048-93/+62
| | | | | | | | | | | | | | | functions that take PP_CompletionCallbacks, but don't return codes from pp_errors.h BUG=none TEST=compile + manually run ppapi_tests::VideoDecoder Review URL: http://codereview.chromium.org/6975053 TBR=polina@google.com Review URL: http://codereview.chromium.org/7058061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87919 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Fix interface functions that take PP_CompletionCallbacks, but don'tpolina@google.com2011-06-048-62/+93
| | | | | | | | | | return codes from pp_errors.h BUG=none TEST=compile + manually run ppapi_tests::VideoDecoder Review URL: http://codereview.chromium.org/6975053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87905 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation for Pepper C++ Video Decoder API (wrapper on top of C API).vmr@chromium.org2011-06-033-50/+60
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/7085030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87831 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug in the Broker proxy thunk that breaks the Connect callback when ↵ddorwin@chromium.org2011-06-021-2/+2
| | | | | | | | | | | running out-of-process. BUG=none TEST=Use the Broker in an out-of-process plugin. The Connect callback should be received correctly. Review URL: http://codereview.chromium.org/7066040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87620 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed handling of a non-NULL attrib_list in PPB_Surface3D Proxy's Create().ddorwin@chromium.org2011-06-021-5/+8
| | | | | | | | | | | Previously, it would read beyond the end of the PP_GRAPHICS3DATTRIB_NONE-terminated list. This change also ensures that attrib values do not trigger termination. BUG=none TEST=Pass a non-NULL attrib_list to the pp::Surface3D_Dev constructor and run the plugin out-of-process. Review URL: http://codereview.chromium.org/7066041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87615 0039d316-1c4b-4281-b951-d872f2087c98
* Add idl_c_proto for generating 'C' style prototypes from IDLnoelallen@google.com2011-06-028-29/+470
| | | | | | | | | | | | | | | Updated idl_log to provide Log/LogTag (which add the log type tag) Remove stale switches to idl_lexer.py Add Regex based Replace function to Node to replace $KEY$ with a property on that node Added quick resolution of typeinfo by adding typeinfo member to IDLNode Added idl_c_proto.py which defines a set of function which take an IDL Node then generate the 'C' style equivelent. BUG= http://code.google.com/p/chromium/issues/detail?id=84272 TEST= python idl_c_proto.py Review URL: http://codereview.chromium.org/7085014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87567 0039d316-1c4b-4281-b951-d872f2087c98
* Script is always a string, so it was silly of me to make it VarPrivate.dmichael@chromium.org2011-06-012-3/+2
| | | | | | | | | BUG=82606 TEST=it compiles, tests pass Review URL: http://codereview.chromium.org/7054042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87473 0039d316-1c4b-4281-b951-d872f2087c98
* Convert more interfaces to the new thunk system. This goes up to and includingbrettw@chromium.org2011-06-0150-541/+1366
| | | | | | | | | | | | | | | the ones starting with "F". Since this adds a lot more interfaces, I added the macro stuff we used for the old system to generate the various template specializations. This involded a lot of renaming since the As* needs to match the name (I was previously leaving off the "PPB_" part). I did other misc cleanup to the infrastructure. Review URL: http://codereview.chromium.org/7082036 Reland 87415 Review URL: http://codereview.chromium.org/7105013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87444 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87415 - Convert more interfaces to the new thunk system. This goes up ↵thestig@chromium.org2011-06-0150-1366/+541
| | | | | | | | | | | | | | | | | to and including the ones starting with "F". Since this adds a lot more interfaces, I added the macro stuff we used for the old system to generate the various template specializations. This involded a lot of renaming since the As* needs to match the name (I was previously leaving off the "PPB_" part). I did other misc cleanup to the infrastructure. Review URL: http://codereview.chromium.org/7082036 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/7006022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87438 0039d316-1c4b-4281-b951-d872f2087c98
* Convert more interfaces to the new thunk system. This goes up to and includingbrettw@chromium.org2011-06-0150-541/+1366
| | | | | | | | | | | | the ones starting with "F". Since this adds a lot more interfaces, I added the macro stuff we used for the old system to generate the various template specializations. This involded a lot of renaming since the As* needs to match the name (I was previously leaving off the "PPB_" part). I did other misc cleanup to the infrastructure. Review URL: http://codereview.chromium.org/7082036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87415 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PPAPITest.DirectoryReader:yzshen@chromium.org2011-05-311-52/+90
| | | | | | | | | | | | - make sure the result won't be affected by other tests or previous runs of the same test; - don't assert if the directory to read is empty. TEST=The test itself. BUG=63239 Review URL: http://codereview.chromium.org/7094008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87366 0039d316-1c4b-4281-b951-d872f2087c98
* Cleaned up PostMessage documentationjond@google.com2011-05-312-40/+49
| | | | | | Review URL: http://codereview.chromium.org/7062028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87355 0039d316-1c4b-4281-b951-d872f2087c98
* Small fix on Pepper Video Decoder API data types.vmr@chromium.org2011-05-311-4/+16
| | | | | | | | | | | | Dictionary had a value for colorformat. Added dictionary key for values which are now defined in separate enumeration. BUG= TEST=make -j16 chrome (affected functionality not used currently) Review URL: http://codereview.chromium.org/6965013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87333 0039d316-1c4b-4281-b951-d872f2087c98
* Give FunctionGroupBase a virtual destructor.thakis@chromium.org2011-05-311-0/+2
| | | | | | | | | | | | | | | | HostDispatcher has a scoped_ptr<FunctionGroupBase>, so without this, it won't invoke destructors of objects implenting FunctionGroupBase (i.e. this is a real bug.) Found by clang's -Wdelete-non-virtual-dtor BUG=84424 TEST=none Review URL: http://codereview.chromium.org/7084034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87306 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up a couple of things we missed for the ppapi scripting yak shave.dmichael@chromium.org2011-05-283-3/+13
| | | | | | | | | BUG=82606 TEST=Compiles + ppapi tests pass Review URL: http://codereview.chromium.org/7083009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87160 0039d316-1c4b-4281-b951-d872f2087c98
* Move Broker, Buffer, CharSet, and CursorControl to use the new thunk/API system.brettw@chromium.org2011-05-2734-312/+941
| | | | | | | | | | | This changes the way that the function APIs work in the webkit directory, now they're created per-instance rather than globally, and have their Plugininstance as a class member (this cleans up some code). I had to move the InstanceData member to be a linked_ptr due to copy constructor issues, but this should be more efficient anyway. Review URL: http://codereview.chromium.org/7077024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87094 0039d316-1c4b-4281-b951-d872f2087c98
* Remove scripting from pp::Var with an opt-in compiler predefine.dmichael@chromium.org2011-05-272-30/+50
| | | | | | | | | 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
* Add a new function to run and claer a completion callback. This is a commonbrettw@chromium.org2011-05-276-18/+28
| | | | | | | | | | | pattern and is a bit tricky since we need to clear it before actually executing the callback. TEST=ppapi ui_tests BUG=none Review URL: http://codereview.chromium.org/6962021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87028 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PPAPITest.Transport flakiness.sergeyu@chromium.org2011-05-261-26/+46
| | | | | | | | | BUG=83864 TEST=The test is not flaky anymore. Review URL: http://codereview.chromium.org/7008027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86924 0039d316-1c4b-4281-b951-d872f2087c98
* Remove extra comma added in r86896.msw@chromium.org2011-05-261-1/+1
| | | | | | | | | | BUG=none TEST=nacl_integration passes. TBR=thestig Review URL: http://codereview.chromium.org/6973072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86918 0039d316-1c4b-4281-b951-d872f2087c98
* Add PP_Bool conversion functions to pp_bool.h as disussed on the mailing list.brettw@chromium.org2011-05-261-0/+16
| | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/6962019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86898 0039d316-1c4b-4281-b951-d872f2087c98
* Add new PDF plugin resources for print preview.thestig@chromium.org2011-05-261-1/+4
| | | | | | | | BUG=80192 TEST=none Review URL: http://codereview.chromium.org/7075018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86896 0039d316-1c4b-4281-b951-d872f2087c98
* Use the WebKit default fonts when specifying generic font families.brettw@chromium.org2011-05-2612-12/+192
| | | | | | | | | | | | | This pipes through a new preferences object that the font system can use. It now picks up these faces as well as the default font size. Clarify this behavior in the interface. TEST=manual (font example included). BUG=none Review URL: http://codereview.chromium.org/7053022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86870 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements a first pass in the effort to remove the dependency ↵twiz@chromium.org2011-05-261-1/+1
| | | | | | | | | | | | | | of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86823 0039d316-1c4b-4281-b951-d872f2087c98
* Add initialization callback support for Video Decoder PPAPI.vrk@google.com2011-05-254-5/+9
| | | | | | | | | | | | | Initializing a decoder is asynchronous, so add a callback to tell client when the decoder is ready to use. I confirmed that this works locally using a C plugin that I wrote on my machine. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7065010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86699 0039d316-1c4b-4281-b951-d872f2087c98
* Proxy PPB_Instance_Private and PPP_Instance_Private.dmichael@chromium.org2011-05-258-0/+347
| | | | | | | | | BUG=82356 TEST=Run example plugin out-of-process, click on it. Before this, it crashes the plugin. After, behaves as expected. Review URL: http://codereview.chromium.org/6966043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86640 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 86625 - This change implements a first pass in the effort to remove ↵vandebo@chromium.org2011-05-251-1/+1
| | | | | | | | | | | | | | | the dependency of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7019013 TBR=twiz@chromium.org Review URL: http://codereview.chromium.org/6987019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86629 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements a first pass in the effort to remove the dependency ↵twiz@chromium.org2011-05-251-1/+1
| | | | | | | | | | | | of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86625 0039d316-1c4b-4281-b951-d872f2087c98
* Remove scripting from PPP_Instance and PPB_Instance (behind precompiler flag).dmichael@chromium.org2011-05-245-71/+87
| | | | | | | | | | | Create 0.5 versions of the instance interfaces that are the default only if PPAPI_INSTANCE_REMOVE_SCRIPTING is defined. This is so [hopefully] plugins can opt in to the new version and migrate to InstancePrivate/VarPrivate more easily. BUG=82606 TEST=PPAPI tests Review URL: http://codereview.chromium.org/7038044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86458 0039d316-1c4b-4281-b951-d872f2087c98
* Don't re-enter when destroying FlashNetConnectorpiman@google.com2011-05-241-2/+17
| | | | | | | | | BUG=chromium-os:15439, chromium-os:15353 TEST=grooveshark with Pepper Flash Review URL: http://codereview.chromium.org/7067014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86453 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust PPAPI tests so they can also be run in the NaCl build using PyAuto.cstefansen@google.com2011-05-235-18/+66
| | | | | | | | TEST= See https://sites.google.com/a/chromium.org/dev/developers/design-documents/pepper-plugin-implementation for running in Chrome. BUG= http://code.google.com/p/nativeclient/issues/detail?id=1671 Review URL: http://codereview.chromium.org/7049021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86356 0039d316-1c4b-4281-b951-d872f2087c98
* Final gyp patch to make use of the new cross-platform POSIX defines ↵tony@chromium.org2011-05-232-2/+2
| | | | | | | | toolkit_uses_gtk, os_posix, and use_x11. For lists of source files that use a mix of POSIX and Gtk APIs, toolkit_uses_gtk was given precedence. Solaris was made to use ALSA also, as libasound has been ported to FreeBSD and Solaris as a wrapper around the native OSS. Review URL: http://codereview.chromium.org/7055003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86352 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PP_FileOpenFlags_Dev handling:yzshen@chromium.org2011-05-233-18/+234
| | | | | | | | | | | | | | | - rewrite the mapping from PP_FileOpenFlags_Dev to PlatformFileFlags. - let ppb_flash_file_impl and ppb_file_io_impl use the same mapping logic. - CreatePlatformFile: resolve the conflict between the win and posix implementation. Before this change, the win implementation didn't allow PLATFORM_FILE_TRUNCATE to be used with any of the (OPEN|CREATE)(_ALWAYS)? flags; while the posix implementation required it to be used with them. - add more test cases to test the behavior of different PP_FileOpenFlags_Dev combinations. - also unify the conversion from PlatformFileError to Pepper error. BUG=68489 TEST=New test cases in test_file_io.cc Review URL: http://codereview.chromium.org/7038032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86349 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PPAPI ui_tests.piman@google.com2011-05-204-7/+8
| | | | | | | | | | | | | r66321 silently broke it because we were not running the tests, just listing the tests and yet returning success. This fixes it as well as some regressions in the tests themselves. BUG=none TEST=ui_tests Review URL: http://codereview.chromium.org/7055002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86166 0039d316-1c4b-4281-b951-d872f2087c98
* Change PPP_Printing_Dev QuerySupportedFormats to not require MemAlloc and ↵dmichael@chromium.org2011-05-191-9/+71
| | | | | | | | | | | | | | | | | | | | | MemFree. This also is a first stab at providing backwards-compatibility (even though in this case 0.3 will go away once everyone is ported). To use the new version, you need to 'opt-in' by adding the following line before including ppp_printing_dev.h: #define PPP_PRINTING_DEV_USE_0_4 I have NOT updated the C++ wrapper. I can work on that next, although it would help to have some test code that relies on it to make sure I'm not breaking anything. brettw: Please focus on the backwards-compatibility code, let me know what you think. thestig: Please focus on print code. I'd appreciate any tips on being able to test this better; I don't have access to the PDF plugin code. I verified that the existing plugin still works with this change by copying in libpdf.so, opening a PDF, and printing it. BUG=80696 TEST=Manual. Try to print a PDF. Review URL: http://codereview.chromium.org/6975018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85912 0039d316-1c4b-4281-b951-d872f2087c98
* Support getting the font list in Pepper. This currently only works out ofbrettw@chromium.org2011-05-1814-114/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | process. This adds a function to the font interface to get the font list. Since we don't have arrays or dictionaries in Pepper yet, I used a string with nulls separating the names. A previous attempt to make a "font list resource" proved excessively complicated and not actually much easier for clients to deal with. This refactors the existing font list getting that used to be in the options for the browser. I moved it to content and split it into two pieces, the synchronous version, and then an asynchronous wrapper around that which both the prefs code and the pepper code use. This cleaned up some of the preferences code, and also fixes the leak of the entire font list in the code. I used the new callback/bind system for the async font loading. I had to add BrowserThread support for the new system. This uses the PepperMessageFilter to listen for font load requests from the plugin in the browser process. This is nice because we can add stuff here and have messages serviced for both in-process and out-of-process plugins. This proved to be complicated due to the HostResolver used in some of the existing code, and thread restrictions for how to deal with it. This is why there are two modes for the filter object. I changed the delegates around for the Dispatcher. Now the PluginDispatcher has the delegate interface since the HostDispatcher didn't actually need any of them and we were accumulating a lot of empty functions in the PepperPluginRegistry. It's possible for the fonts to be loaded on Windows and Mac without IPC, since enumerating fonts should be possible inside the sandbox. I didn't implement this since it adds extra complexity and probably doesn't give that much benefit. TEST=manual BUG=none Review URL: http://codereview.chromium.org/7044012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85827 0039d316-1c4b-4281-b951-d872f2087c98
* Add a test that passes an extra parameter, make sure nothing happens.dmichael@chromium.org2011-05-182-0/+27
| | | | | | | | | | | Question: Is 'nothing' what we want to have happen? BUG=None TEST=This test. Review URL: http://codereview.chromium.org/7031031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85768 0039d316-1c4b-4281-b951-d872f2087c98
* Added new utility name 'html2ezt.py' to fix-up Doxygen htmls files for EZTmball@google.com2011-05-184-4/+145
| | | | | | | | | BUG=None TEST=Manual testing Review URL: http://codereview.chromium.org/6976007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85766 0039d316-1c4b-4281-b951-d872f2087c98
* Adding documentation directory, new Doxyfile, DoxygenLayout.xml. These ↵jond@google.com2011-05-1711-0/+2778
| | | | | | | | changes were approved by David Michael a week or two ago, just couldn't check them in. Review URL: http://codereview.chromium.org/7030022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85662 0039d316-1c4b-4281-b951-d872f2087c98