コード例 #1
0
        /// <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));
        }
コード例 #2
0
 public NativeMessageHandler()
 {
     NativeFunctionDelegates = NativeFunctionAttribute.GetHandlers <NativeMessageHandler, NativeFunctionDelegate>(this);
     ProcessMessageDelegates = ProcessMessageAttribute.GetHandlers <NativeMessageHandler, ProcessMessageDelegate>(this);
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NativeRequestResourceHandler"/> class.
 /// </summary>
 public NativeRequestResourceHandler()
     : base()
 {
     NativeFunctions = NativeFunctionAttribute.GetMethods <NativeRequestResourceHandler, Func <CefRequest, object> >(this);
 }
コード例 #4
0
 public NativeRequestResourceHandler()
     : base()
 {
     NativeFunctions = NativeFunctionAttribute.GetHandlers <NativeRequestResourceHandler, NativeFunctionDelegate>(this);
 }