Author: miguel
Date: 2007-07-23 01:06:52 -0400 (Mon, 23 Jul 2007)
New Revision: 82459
Modified:
trunk/olive/class/agclr/System.Windows.Interop/BrowserHost.cs
Log:
Use PluginHost from agmono instead
Modified: trunk/olive/class/agclr/System.Windows.Interop/BrowserHost.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Interop/BrowserHost.cs
2007-07-23 05:06:18 UTC (rev 82458)
+++ trunk/olive/class/agclr/System.Windows.Interop/BrowserHost.cs
2007-07-23 05:06:52 UTC (rev 82459)
@@ -32,20 +32,12 @@
namespace System.Windows.Interop {
public static class BrowserHost {
- static IntPtr plugin_handle;
-
- internal static void SetPluginHandle (IntPtr value)
- {
- Console.WriteLine ("The Plugin Handle has been set to
{0}", value);
- plugin_handle = value;
- }
-
// Why are ActualHeight and ActualWidth uints?
public static uint ActualHeight {
get {
- if (plugin_handle != IntPtr.Zero){
- int n =
NativeMethods.plugin_instance_get_actual_height (plugin_handle);
+ if (PluginHost.Handle != IntPtr.Zero){
+ int n =
NativeMethods.plugin_instance_get_actual_height (PluginHost.Handle);
return n >= 0 ? (uint) n : 0;
} else
return 768;
@@ -54,8 +46,8 @@
public static uint ActualWidth {
get {
- if (plugin_handle != IntPtr.Zero){
- int n =
NativeMethods.plugin_instance_get_actual_width (plugin_handle);
+ if (PluginHost.Handle != IntPtr.Zero){
+ int n =
NativeMethods.plugin_instance_get_actual_width (PluginHost.Handle);
return n >= 0 ? (uint) n : 0;
} else
return 1024;
@@ -64,14 +56,14 @@
public static bool IsFullScreen {
get {
- if (plugin_handle != IntPtr.Zero){
+ if (PluginHost.Handle != IntPtr.Zero){
return false;
} else
return false;
}
set {
- // not implemented
+ // not yet implemented
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches