Author: everaldo
Date: 2007-06-13 07:49:09 -0400 (Wed, 13 Jun 2007)
New Revision: 79400
Modified:
trunk/moon/plugin/ChangeLog
trunk/moon/plugin/plugin-class.cpp
Log:
* plugin-class.cpp: Implement "control.content" proeprties.
2007-06-13 Everaldo Canuto <[EMAIL PROTECTED]>
Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-06-13 11:40:02 UTC (rev 79399)
+++ trunk/moon/plugin/ChangeLog 2007-06-13 11:49:09 UTC (rev 79400)
@@ -1,5 +1,9 @@
2007-06-13 Everaldo Canuto <[EMAIL PROTECTED]>
+ * plugin-class.cpp: Implement "control.content" proeprties.
+
+2007-06-13 Everaldo Canuto <[EMAIL PROTECTED]>
+
* TODO: Added to include information about features that we know that is
not current supported. Can be use for now to take some notes to be read
after 21th june.
Modified: trunk/moon/plugin/plugin-class.cpp
===================================================================
--- trunk/moon/plugin/plugin-class.cpp 2007-06-13 11:40:02 UTC (rev 79399)
+++ trunk/moon/plugin/plugin-class.cpp 2007-06-13 11:49:09 UTC (rev 79400)
@@ -285,12 +285,35 @@
bool
PluginContent::ClassGetProperty (NPObject *npobj, NPIdentifier name, NPVariant
*result)
{
+ // Silverlight always return 0.
+ if (name == NPID ("actualHeight")) {
+ INT32_TO_NPVARIANT (0, *result);
+ return true;
+ }
+
+ // Silverlight always return 0.
+ if (name == NPID ("actualWidth")) {
+ INT32_TO_NPVARIANT (0, *result);
+ return true;
+ }
+
+ // not implemented yet so return false.
+ if (name == NPID ("fullScreen")) {
+ BOOLEAN_TO_NPVARIANT (false, *result);
+ return true;
+ }
+
return false;
}
bool
PluginContent::ClassSetProperty (NPObject *npobj, NPIdentifier name, const
NPVariant *value)
{
+ // not implemented yet so return false.
+ if (name == NPID ("fullScreen")) {
+ return true;
+ }
+
return false;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches