示例#1
0
		protected virtual bool OnNewWindowPolicyDecisionRequested (WebFrame frame, NetworkRequest request, WebNavigationAction action, WebPolicyDecision decision)
		{
			var val = new Value (GType.Int);
			var valueArray = new ValueArray (5u);
			var array = new Value[5];

			array [0] = new Value (this);
			valueArray.Append (array [0]);
			array [1] = new Value (frame);
			valueArray.Append (array [1]);
			array [2] = new Value (request);
			valueArray.Append (array [2]);
			array [3] = new Value (action);
			valueArray.Append (array [3]);
			array [4] = new Value (decision);
			valueArray.Append (array [4]);
			GLib.Object.g_signal_chain_from_overridden (valueArray.ArrayPtr, ref val);
			var array2 = array;
			for (int i = 0; i < array2.Length; i++) {
				var value = array2 [i];
				value.Dispose ();
			}
			bool result = (bool)val;
			val.Dispose ();
			return result;
		}
示例#2
0
 protected virtual void OnDeviceChange(int deviceChange)
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(2);
     GLib.Value[]    vals            = new GLib.Value [2];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     vals [1] = new GLib.Value(deviceChange);
     inst_and_params.Append(vals [1]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
示例#3
0
 protected virtual void OnMediaInfo(int width, int height, int par_n, int par_d)
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(6);
     GLib.Value[]    vals            = new GLib.Value [6];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     vals [1] = new GLib.Value(width);
     inst_and_params.Append(vals [1]);
     vals [2] = new GLib.Value(height);
     inst_and_params.Append(vals [2]);
     vals [3] = new GLib.Value(par_n);
     inst_and_params.Append(vals [3]);
     vals [4] = new GLib.Value(par_d);
     inst_and_params.Append(vals [4]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
示例#4
0
 protected virtual void OnReadyToCapture()
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(1);
     GLib.Value[]    vals            = new GLib.Value [1];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
示例#5
0
		protected virtual void OnMediaInfo (int width, int height, int par_n, int par_d)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (6);
			GLib.Value[] vals = new GLib.Value [6];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (width);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (height);
			inst_and_params.Append (vals [2]);
			vals [3] = new GLib.Value (par_n);
			inst_and_params.Append (vals [3]);
			vals [4] = new GLib.Value (par_d);
			inst_and_params.Append (vals [4]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
示例#6
0
		protected virtual void OnEos ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
示例#7
0
 protected virtual bool OnWebViewReady(WebFrame frame)
 {
     Value empty = Value.Empty;
     ValueArray valueArray = new ValueArray (2u);
     Value[] array = new Value[2];
     array [0] = new Value (this);
     valueArray.Append (array [0]);
     array [1] = new Value (frame);
     valueArray.Append (array [1]);
     GLib.Object.g_signal_chain_from_overridden (valueArray.ArrayPtr, ref empty);
     Value[] array2 = array;
     for (int i = 0; i < array2.Length; i++)
     {
         Value value = array2 [i];
         value.Dispose ();
     }
     return true;
 }