gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r12143: make sure it stills builds w


From: Rob Savoye
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r12143: make sure it stills builds with scriptable disabled.
Date: Sat, 10 Apr 2010 14:52:15 -0600
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 12143
committer: Rob Savoye <address@hidden>
branch nick: trunk
timestamp: Sat 2010-04-10 14:52:15 -0600
message:
  make sure it stills builds with scriptable disabled.
modified:
  plugin/npapi/plugin.cpp
=== modified file 'plugin/npapi/plugin.cpp'
--- a/plugin/npapi/plugin.cpp   2010-04-10 18:43:28 +0000
+++ b/plugin/npapi/plugin.cpp   2010-04-10 20:52:15 +0000
@@ -565,6 +565,7 @@
 NPError
 nsPluginInstance::GetValue(NPPVariable aVariable, void *aValue)
 {
+#ifdef ENABLE_SCRIPTABLE
     if (aVariable == NPPVpluginScriptableNPObject) {
         if (_scriptObject) {
             void **v = (void **)aValue;
@@ -574,6 +575,7 @@
             GnashLogDebug("_scriptObject is not assigned");
         }
     }
+#endif
 
     return NS_PluginGetValue(aVariable, aValue);
 }
@@ -1243,54 +1245,6 @@
     return propValue.UTF8Characters; // const char *
 }
 
-const char*
-nsPluginInstance::getEmbedURL() const
-{
-    NPP npp = _instance;
-
-    NPIdentifier sDocument = NPN_GetStringIdentifier("document");
-
-    NPObject *window;
-    NPN_GetValue(npp, NPNVWindowNPObject, &window);
-
-    NPVariant vDoc;
-    NPN_GetProperty(npp, window, sDocument, &vDoc);
-    NPN_ReleaseObject(window);
-
-    if (!NPVARIANT_IS_OBJECT(vDoc)) {
-        GnashLogError("Can't get document object");
-        return NULL;
-    }
-    
-    NPObject* npDoc = NPVARIANT_TO_OBJECT(vDoc);
-
-    NPIdentifier sLocation = NPN_GetStringIdentifier("yt");
-    NPVariant vLoc;
-    NPN_GetProperty(npp, npDoc, sLocation, &vLoc);
-    NPN_ReleaseObject(npDoc);
-
-    if (!NPVARIANT_IS_OBJECT(vLoc)) {
-        GnashLogError("Can't get document.yt object");
-        return NULL;
-    }
-
-    NPObject* npLoc = NPVARIANT_TO_OBJECT(vLoc);
-
-    NPIdentifier sProperty = NPN_GetStringIdentifier("config_");
-    NPVariant vProp;
-    NPN_GetProperty(npp, npLoc, sProperty, &vProp);
-    NPN_ReleaseObject(npLoc);
-
-    if (!NPVARIANT_IS_STRING(vProp)) {
-        GnashLogError("Can't get document.yt.config_ object");
-        return NULL;
-    }
-
-    const NPString& propValue = NPVARIANT_TO_STRING(vProp);
-
-    return propValue.UTF8Characters; // const char *
-}
-
 static const char*
 getPluginDescription() 
 {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]