1 /*******************************************************************************
2 * Copyright (c) 2008, 2009 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
12 BarProp.prototype = new Array();
18 * @since Common Usage, no standard
21 Window.prototype = new Global();
22 Window.prototype.self = new Window();
23 Window.prototype.window = new Window();
24 Window.prototype.frames = new Array();
30 Window.prototype.closed = new Boolean();
32 * Property defaultStatus
36 Window.prototype.defaultStatus = "";
42 Window.prototype.document= new HTMLDocument();
48 Window.prototype.history= new History();
54 Window.prototype.location=new Location();
60 Window.prototype.name = "";
66 Window.prototype.navigator = new Navigator();
72 Window.prototype.opener = new Window();
78 Window.prototype.outerWidth = 0;
80 * Property outerHeight
84 Window.prototype.outerHeight = 0;
86 * Property pageXOffset
90 Window.prototype.pageXOffset = 0;
92 * Property pageYOffset
96 Window.prototype.pageYOffset = 0;
102 Window.prototype.parent = new Window();
108 Window.prototype.screen = new Screen();
114 Window.prototype.status = "";
120 Window.prototype.top = new Window();
124 * These properties may need to be moved into a browswer specific library.
128 * Property innerWidth
132 Window.prototype.innerWidth = 0;
134 * Property innerHeight
138 Window.prototype.innerHeight = 0;
144 Window.prototype.screenX = 0;
150 Window.prototype.screenY = 0;
152 * Property screenLeft
156 Window.prototype.screenLeft = 0;
162 Window.prototype.screenTop = 0;
163 Window.prototype.event = new Object();
164 Window.prototype.length = 0;
165 Window.prototype.scrollbars= new BarProp();
166 Window.prototype.scrollX=0;
167 Window.prototype.scrollY=0;
168 Window.prototype.content= new Window();
169 Window.prototype.menubar= new BarProp();
170 Window.prototype.toolbar= new BarProp();
171 Window.prototype.locationbar= new BarProp();
172 Window.prototype.personalbar= new BarProp();
173 Window.prototype.statusbar= new BarProp();
174 Window.prototype.directories= new BarProp();
175 Window.prototype.scrollMaxX=0;
176 Window.prototype.scrollMaxY=0;
177 Window.prototype.fullScreen="";
178 Window.prototype.frameElement="";
179 Window.prototype.sessionStorage="";
184 * @param {String} arg
187 Window.prototype.alert = function(arg){};
192 Window.prototype.blur = function(){};
194 * function clearInterval(arg)
198 Window.prototype.clearInterval = function(arg){};
200 * function clearTimeout(arg)
204 Window.prototype.clearTimeout = function(arg){};
209 Window.prototype.close = function(){};
212 * @param {String} arg
216 Window.prototype.confirm = function(arg){return false;};
221 Window.prototype.focus = function(){};
223 * function getComputedStyle(arg1, arg2)
224 * @param {Element} arg1
225 * @param {String} arg2
229 Window.prototype.getComputedStyle = function(arg1,arg2){return new Object();};
231 * function moveTo(arg1, arg2)
232 * @param {Number} arg1
233 * @param {Number} arg2
236 Window.prototype.moveTo = function(arg1,arg2){};
238 * function moveBy(arg1, arg2)
239 * @param {Number} arg1
240 * @param {Number} arg2
243 Window.prototype.moveBy = function(arg1,arg2){};
245 * function open(optionalArg1, optionalArg2, optionalArg3, optionalArg4)
246 * @param {String} optionalArg1
247 * @param {String} optionalArg2
248 * @param {String} optionalArg3
249 * @param {Boolean} optionalArg4
253 Window.prototype.open = function(optionalArg1, optionalArg2, optionalArg3, optionalArg4){return new Window();};
258 Window.prototype.print = function(){};
260 * function prompt(arg1, arg2)
261 * @param {String} arg1
262 * @param {String} arg2
266 Window.prototype.prompt = function(){return "";};
268 * function resizeTo(arg1, arg2)
269 * @param {Number} arg1
270 * @param {Number} arg2
273 Window.prototype.resizeTo=function(arg1,arg2){};
275 * function resizeBy(arg1, arg2)
276 * @param {Number} arg1
277 * @param {Number} arg2
280 Window.prototype.resizeBy=function(arg1,arg2){};
282 * function scrollTo(arg1, arg2)
283 * @param {Number} arg1
284 * @param {Number} arg2
287 Window.prototype.scrollTo=function(arg1,arg2){};
289 * function scrollBy(arg1, arg2)
290 * @param {Number} arg1
291 * @param {Number} arg2
294 Window.prototype.scrollBy=function(arg1,arg2){};
296 * function setInterval(arg1, arg2)
297 * @param {Object} arg1
298 * @param {Number} arg2
302 Window.prototype.setInterval=function(arg1, arg2){return new Object();};
304 * function setTimeout(arg1, arg2)
305 * @param {Object} arg1
306 * @param {Number} arg2
310 Window.prototype.setTimeout=function(arg1, arg2){return new Object();};
313 * @param {String} arg
317 Window.prototype.atob=function(arg){return "";};
320 * @param {String} arg
324 Window.prototype.btoa=function(arg){return "";};
326 * function setResizable(arg)
327 * @param {Boolean} arg
330 Window.prototype.setResizable=function(arg){};
332 Window.prototype.captureEvents=function(arg1){};
333 Window.prototype.releaseEvents=function(arg1){};
334 Window.prototype.routeEvent=function(arg1){};
335 Window.prototype.enableExternalCapture=function(){};
336 Window.prototype.disableExternalCapture=function(){};
337 Window.prototype.find=function(){};
338 Window.prototype.back=function(){};
339 Window.prototype.forward=function(){};
340 Window.prototype.home=function(){};
341 Window.prototype.stop=function(){};
342 Window.prototype.scroll=function(arg1,arg2){};
345 * These functions may need to be moved into a browser specific library.
347 Window.prototype.dispatchEvent=function(arg1){};
348 Window.prototype.removeEventListener=function(arg1,arg2,arg3){};
355 * @since Common Usage, no standard
357 function History(){};
358 History.prototype=new Object();
359 History.prototype.history = new History();
365 History.prototype.length = 0;
370 History.prototype.back = function(){};
375 History.prototype.forward = function(){};
381 History.prototype.go = function(arg){};
387 * @since Common Usage, no standard
389 function Location(){};
390 Location.prototype = new Object();
391 Location.prototype.location = new Location();
397 Location.prototype.hash = "";
403 Location.prototype.host = "";
409 Location.prototype.hostname = "";
415 Location.prototype.href = "";
421 Location.prototype.pathname = "";
427 Location.prototype.port = "";
433 Location.prototype.protocol = "";
439 Location.prototype.search = "";
441 * function assign(arg)
442 * @param {String} arg
445 Location.prototype.assign = function(arg){};
447 * function reload(optionalArg)
448 * @param {Boolean} optionalArg
451 Location.prototype.reload = function(optionalArg){};
453 * function replace(arg)
454 * @param {String} arg
457 Location.prototype.replace = function(arg){};
463 * @since Common Usage, no standard
465 function Navigator(){};
466 Navigator.prototype = new Object();
467 Navigator.prototype.navigator = new Navigator();
469 * Property appCodeName
471 * @memberOf Navigator
473 Navigator.prototype.appCodeName = "";
477 * @memberOf Navigator
479 Navigator.prototype.appName = "";
481 * Property appVersion
483 * @memberOf Navigator
485 Navigator.prototype.appVersion = "";
487 * Property cookieEnabled
489 * @memberOf Navigator
491 Navigator.prototype.cookieEnabled = new Boolean();
495 * @memberOf Navigator
497 Navigator.prototype.mimeTypes = new Array();
501 * @memberOf Navigator
503 Navigator.prototype.platform = "";
507 * @memberOf Navigator
509 Navigator.prototype.plugins = new Array();
513 * @memberOf Navigator
515 Navigator.prototype.userAgent = "";
517 * function javaEnabled()
519 * @memberOf Navigator
521 Navigator.prototype.javaEnabled = function(){return false;};
527 * @since Common Usage, no standard
530 Screen.prototype = new Object();
531 Screen.prototype.screen = new Screen();
533 * Property availHeight
537 Navigator.prototype.availHeight = 0;
539 * Property availWidth
543 Navigator.prototype.availWidth = 0;
545 * Property colorDepth
549 Navigator.prototype.colorDepth = 0;
555 Navigator.prototype.height = 0;
561 Navigator.prototype.width = 0;