/// <summary> /// Initializes a new instance of the <see cref="Client"/> class. /// </summary> public Client() : base() { LifeSpanHandler = new LifeSpanHandler(); DisplayHandler = new DisplayHandler(); LoadHandler = new LoadHandler(); RequestHandler = new RequestHandler(); KeyboardHandler = new KeyboardHandler(); // set events LifeSpanHandler.BrowserCreated += (sender, e) => { if (BrowserCreated != null) { BrowserCreated(this, e); } }; // native calls V8NativeBrowserHandler = new V8NativeBrowserHandler(NativeFunctionAttribute.GetMethods <Client, Func <string, object> >(this)); }
public NativeMessageHandler() { NativeFunctionDelegates = NativeFunctionAttribute.GetHandlers <NativeMessageHandler, NativeFunctionDelegate>(this); ProcessMessageDelegates = ProcessMessageAttribute.GetHandlers <NativeMessageHandler, ProcessMessageDelegate>(this); }
/// <summary> /// Initializes a new instance of the <see cref="NativeRequestResourceHandler"/> class. /// </summary> public NativeRequestResourceHandler() : base() { NativeFunctions = NativeFunctionAttribute.GetMethods <NativeRequestResourceHandler, Func <CefRequest, object> >(this); }
public NativeRequestResourceHandler() : base() { NativeFunctions = NativeFunctionAttribute.GetHandlers <NativeRequestResourceHandler, NativeFunctionDelegate>(this); }