示例#1
0
        public UI.Browser start(UI.Point position, UI.Size size)
        {
            _client = new UI.Browser(() => {
                var body = Request("belly:get-window-title");
                if (body != null)
                {
                    return(body.title);
                }
                return("");
            });
            var url = _server.Url;
            var ws  = _channel.Url;

            _client.Launch(url, ws, position, size);
            return(_client);
        }
 public FocusEventHandler(Browser browser) {
     _browser = browser;
 }
示例#3
0
 public UI.Browser start(UI.Point position, UI.Size size)
 {
     _client = new UI.Browser(() => {
         var body = Request("belly:get-window-title");
         if (body != null)
             return body.title;
         return "";
     });
     var url = _server.Url;
     var ws = _channel.Url;
     _client.Launch(url, ws, position, size);
     return _client;
 }
示例#4
0
 public FocusHandler(Browser browser) {
     _browser = browser;
 }