summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-07 10:13:56 +0000
committerstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-07 10:13:56 +0000
commit05224ff2175e19b5a69318d25d08b8da00089865 (patch)
tree00d4d3001531f1fb5d3854a714f4de28e3498886 /third_party
parent81f8499479bc3952d755fb011216b23b20964b26 (diff)
downloadchromium_src-05224ff2175e19b5a69318d25d08b8da00089865.zip
chromium_src-05224ff2175e19b5a69318d25d08b8da00089865.tar.gz
chromium_src-05224ff2175e19b5a69318d25d08b8da00089865.tar.bz2
Implement NPNVsupportsCompositingCoreAnimationPluginsBool
Returns true when plugin compositing is enabled, so that plugins that dynamically query for composited CA support know it's safe to use CA. Updates NPAPI headers to r14 of the upstream 'npapi-sdk' project headers, to pick up the new constant. BUG=40997 TEST=HTML overlays should work with, e.g., the Google Earth plugin on 10.6+ Review URL: http://codereview.chromium.org/8805004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113370 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/npapi/bindings/npapi.h10
-rw-r--r--third_party/npapi/bindings/npfunctions.h2
-rw-r--r--third_party/npapi/bindings/npruntime.h12
-rw-r--r--third_party/npapi/bindings/nptypes.h2
4 files changed, 15 insertions, 11 deletions
diff --git a/third_party/npapi/bindings/npapi.h b/third_party/npapi/bindings/npapi.h
index 3ce7607..aec11da 100644
--- a/third_party/npapi/bindings/npapi.h
+++ b/third_party/npapi/bindings/npapi.h
@@ -403,7 +403,7 @@ typedef enum {
, NPPVpluginCoreAnimationLayer = 1003
#endif
-#if (MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6)
+#if defined(MOZ_PLATFORM_MAEMO) && ((MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6))
, NPPVpluginWindowlessLocalBool = 2002
#endif
} NPPVariable;
@@ -435,7 +435,9 @@ typedef enum {
NPNVprivateModeBool = 18,
- NPNVsupportsAdvancedKeyHandling = 21
+ NPNVsupportsAdvancedKeyHandling = 21,
+
+ NPNVdocumentOrigin = 22
#if defined(XP_MACOSX)
/* Used for negotiating drawing models */
@@ -453,8 +455,10 @@ typedef enum {
, NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */
, NPNVsupportsUpdatedCocoaTextInputBool = 3002 /* TRUE if the browser supports the updated
Cocoa text input specification. */
+ , NPNVsupportsCompositingCoreAnimationPluginsBool = 74656 /* TRUE if the browser supports
+ CA model compositing */
#endif
-#if (MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6)
+#if defined(MOZ_PLATFORM_MAEMO) && ((MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6))
, NPNVSupportsWindowlessLocal = 2002
#endif
} NPNVariable;
diff --git a/third_party/npapi/bindings/npfunctions.h b/third_party/npapi/bindings/npfunctions.h
index 9f918851..02a54be 100644
--- a/third_party/npapi/bindings/npfunctions.h
+++ b/third_party/npapi/bindings/npfunctions.h
@@ -217,7 +217,7 @@ typedef struct _NPNetscapeFuncs {
* These can be called to retreive MIME information from the plugin dynamically
*
* Note: For compatibility with Quicktime, BPSupportedMIMEtypes is another way
- * to get mime info from the plugin only on OSX and may not be supported
+ * to get mime info from the plugin only on OSX and may not be supported
* in furture version -- use NP_GetMIMEDescription instead
*/
enum
diff --git a/third_party/npapi/bindings/npruntime.h b/third_party/npapi/bindings/npruntime.h
index 8c4b3df..9f7848c 100644
--- a/third_party/npapi/bindings/npruntime.h
+++ b/third_party/npapi/bindings/npruntime.h
@@ -1,12 +1,12 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
- * Copyright (c) 2004, Apple Computer, Inc. and The Mozilla Foundation.
+ * Copyright (c) 2004, Apple Computer, Inc. and The Mozilla Foundation.
* All rights reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
- *
+ *
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
@@ -16,7 +16,7 @@
* Foundation ("Mozilla") nor the names of their contributors may be used
* to endorse or promote products derived from this software without
* specific prior written permission.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY APPLE, MOZILLA AND THEIR CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
@@ -48,7 +48,7 @@ extern "C" {
objects. The API in this header does not assume the presence of a
user agent. That is, it can be used to bind C code to scripting
environments outside of the context of a user agent.
-
+
However, the normal use of the this API is in the context of a
scripting environment running in a browser or other user agent.
In particular it is used to support the extended Netscape
@@ -359,7 +359,7 @@ void NPN_ReleaseObject(NPObject *npobj);
value, it will be supplied via the result NPVariant
argument. Successful calls will return true, false will be
returned in case of an error.
-
+
Calls made from plugin code to script must be made from the thread
on which the plugin was initialized.
*/
diff --git a/third_party/npapi/bindings/nptypes.h b/third_party/npapi/bindings/nptypes.h
index 3001288..abcc96b 100644
--- a/third_party/npapi/bindings/nptypes.h
+++ b/third_party/npapi/bindings/nptypes.h
@@ -69,7 +69,7 @@
#endif
#elif defined(bsdi) || defined(FREEBSD) || defined(OPENBSD)
/*
- * BSD/OS, FreeBSD, and OpenBSD ship sys/types.h that define int32_t and
+ * BSD/OS, FreeBSD, and OpenBSD ship sys/types.h that define int32_t and
* u_int32_t.
*/
#include <sys/types.h>