Example #1
0
        /// <summary>
        /// Creates a window and associates it with the client.
        /// </summary>
        /// <param name="webClient">the web client that "owns" this window</param>
        public WebWindowImpl(WebClient webClient)
        {
            WebAssert.notNull("webClient", webClient);
            webClient_ = webClient;
            jobManager_ = BackgroundJavaScriptFactory.theFactory().createJavaScriptJobManager(this);

            bool plus16 = false;
            innerHeight_ = 605;
            if (webClient.getBrowserVersion().hasFeature(JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_63))
            {
                outerHeight_ = innerHeight_ + 63;
                plus16 = true;
            }
            else if (webClient.getBrowserVersion().hasFeature(JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_94))
            {
                outerHeight_ = innerHeight_ + 94;
            }
            else if (webClient.getBrowserVersion().hasFeature(JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_89))
            {
                outerHeight_ = innerHeight_ + 89;
                plus16 = true;
            }
            else
            {
                outerHeight_ = innerHeight_ + 115;
            }
            innerWidth_ = 1256;
            if (plus16)
            {
                outerWidth_ = innerWidth_ + 16;
            }
            else
            {
                outerWidth_ = innerWidth_ + 14;
            }
        }