Android App zur Berechnung einer HDR Belichtungsreihe.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

browserWindow.js 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  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
  7. *
  8. * Contributors:
  9. * IBM Corporation - initial API and implementation
  10. *******************************************************************************/
  11. function BarProp(){};
  12. BarProp.prototype = new Array();
  13. /**
  14. * Object Window()
  15. * @super Global
  16. * @constructor
  17. * @since Common Usage, no standard
  18. */
  19. function Window(){};
  20. Window.prototype = new Global();
  21. Window.prototype.self = new Window();
  22. Window.prototype.window = new Window();
  23. Window.prototype.frames = new Array();
  24. /**
  25. * Property closed
  26. * @type Boolean
  27. * @memberOf Window
  28. */
  29. Window.prototype.closed = new Boolean();
  30. /**
  31. * Property defaultStatus
  32. * @type String
  33. * @memberOf Window
  34. */
  35. Window.prototype.defaultStatus = "";
  36. /**
  37. * Property document
  38. * @type Document
  39. * @memberOf Window
  40. */
  41. Window.prototype.document= new HTMLDocument();
  42. /**
  43. * Property history
  44. * @type History
  45. * @memberOf Window
  46. */
  47. Window.prototype.history= new History();
  48. /**
  49. * Property location
  50. * @type Location
  51. * @memberOf Window
  52. */
  53. Window.prototype.location=new Location();
  54. /**
  55. * Property name
  56. * @type String
  57. * @memberOf Window
  58. */
  59. Window.prototype.name = "";
  60. /**
  61. * Property navigator
  62. * @type Navigator
  63. * @memberOf Window
  64. */
  65. Window.prototype.navigator = new Navigator();
  66. /**
  67. * Property opener
  68. * @type Window
  69. * @memberOf Window
  70. */
  71. Window.prototype.opener = new Window();
  72. /**
  73. * Property outerWidth
  74. * @type Number
  75. * @memberOf Window
  76. */
  77. Window.prototype.outerWidth = 0;
  78. /**
  79. * Property outerHeight
  80. * @type Number
  81. * @memberOf Window
  82. */
  83. Window.prototype.outerHeight = 0;
  84. /**
  85. * Property pageXOffset
  86. * @type Number
  87. * @memberOf Window
  88. */
  89. Window.prototype.pageXOffset = 0;
  90. /**
  91. * Property pageYOffset
  92. * @type Number
  93. * @memberOf Window
  94. */
  95. Window.prototype.pageYOffset = 0;
  96. /**
  97. * Property parent
  98. * @type Window
  99. * @memberOf Window
  100. */
  101. Window.prototype.parent = new Window();
  102. /**
  103. * Property screen
  104. * @type Screen
  105. * @memberOf Window
  106. */
  107. Window.prototype.screen = new Screen();
  108. /**
  109. * Property status
  110. * @type String
  111. * @memberOf Window
  112. */
  113. Window.prototype.status = "";
  114. /**
  115. * Property top
  116. * @type Window
  117. * @memberOf Window
  118. */
  119. Window.prototype.top = new Window();
  120. /*
  121. * These properties may need to be moved into a browswer specific library.
  122. */
  123. /**
  124. * Property innerWidth
  125. * @type Number
  126. * @memberOf Window
  127. */
  128. Window.prototype.innerWidth = 0;
  129. /**
  130. * Property innerHeight
  131. * @type Number
  132. * @memberOf Window
  133. */
  134. Window.prototype.innerHeight = 0;
  135. /**
  136. * Property screenX
  137. * @type Number
  138. * @memberOf Window
  139. */
  140. Window.prototype.screenX = 0;
  141. /**
  142. * Property screenY
  143. * @type Number
  144. * @memberOf Window
  145. */
  146. Window.prototype.screenY = 0;
  147. /**
  148. * Property screenLeft
  149. * @type Number
  150. * @memberOf Window
  151. */
  152. Window.prototype.screenLeft = 0;
  153. /**
  154. * Property screenTop
  155. * @type Number
  156. * @memberOf Window
  157. */
  158. Window.prototype.screenTop = 0;
  159. //Window.prototype.event = new Event();
  160. Window.prototype.length = 0;
  161. Window.prototype.scrollbars= new BarProp();
  162. Window.prototype.scrollX=0;
  163. Window.prototype.scrollY=0;
  164. Window.prototype.content= new Window();
  165. Window.prototype.menubar= new BarProp();
  166. Window.prototype.toolbar= new BarProp();
  167. Window.prototype.locationbar= new BarProp();
  168. Window.prototype.personalbar= new BarProp();
  169. Window.prototype.statusbar= new BarProp();
  170. Window.prototype.directories= new BarProp();
  171. Window.prototype.scrollMaxX=0;
  172. Window.prototype.scrollMaxY=0;
  173. Window.prototype.fullScreen="";
  174. Window.prototype.frameElement="";
  175. Window.prototype.sessionStorage="";
  176. /* End properites */
  177. /**
  178. * function alert()
  179. * @param {String} arg
  180. * @memberOf Window
  181. */
  182. Window.prototype.alert = function(arg){};
  183. /**
  184. * function blur()
  185. * @memberOf Window
  186. */
  187. Window.prototype.blur = function(){};
  188. /**
  189. * function clearInterval(arg)
  190. * @param arg
  191. * @memberOf Window
  192. */
  193. Window.prototype.clearInterval = function(arg){};
  194. /**
  195. * function clearTimeout(arg)
  196. * @param arg
  197. * @memberOf Window
  198. */
  199. Window.prototype.clearTimeout = function(arg){};
  200. /**
  201. * function close()
  202. * @memberOf Window
  203. */
  204. Window.prototype.close = function(){};
  205. /**
  206. * function confirm()
  207. * @param {String} arg
  208. * @memberOf Window
  209. * @returns {Boolean}
  210. */
  211. Window.prototype.confirm = function(arg){return false;};
  212. /**
  213. * function focus()
  214. * @memberOf Window
  215. */
  216. Window.prototype.focus = function(){};
  217. /**
  218. * function getComputedStyle(arg1, arg2)
  219. * @param {Element} arg1
  220. * @param {String} arg2
  221. * @memberOf Window
  222. * @returns {Object}
  223. */
  224. Window.prototype.getComputedStyle = function(arg1,arg2){return new Object();};
  225. /**
  226. * function moveTo(arg1, arg2)
  227. * @param {Number} arg1
  228. * @param {Number} arg2
  229. * @memberOf Window
  230. */
  231. Window.prototype.moveTo = function(arg1,arg2){};
  232. /**
  233. * function moveBy(arg1, arg2)
  234. * @param {Number} arg1
  235. * @param {Number} arg2
  236. * @memberOf Window
  237. */
  238. Window.prototype.moveBy = function(arg1,arg2){};
  239. /**
  240. * function open(optionalArg1, optionalArg2, optionalArg3, optionalArg4)
  241. * @param {String} optionalArg1
  242. * @param {String} optionalArg2
  243. * @param {String} optionalArg3
  244. * @param {Boolean} optionalArg4
  245. * @memberOf Window
  246. * @returns {Window}
  247. */
  248. Window.prototype.open = function(optionalArg1, optionalArg2, optionalArg3, optionalArg4){return new Window();};
  249. /**
  250. * function print()
  251. * @memberOf Window
  252. */
  253. Window.prototype.print = function(){};
  254. /**
  255. * function prompt(arg1, arg2)
  256. * @param {String} arg1
  257. * @param {String} arg2
  258. * @memberOf Window
  259. * @returns {String}
  260. */
  261. Window.prototype.prompt = function(){return "";};
  262. /**
  263. * function resizeTo(arg1, arg2)
  264. * @param {Number} arg1
  265. * @param {Number} arg2
  266. * @memberOf Window
  267. */
  268. Window.prototype.resizeTo=function(arg1,arg2){};
  269. /**
  270. * function resizeBy(arg1, arg2)
  271. * @param {Number} arg1
  272. * @param {Number} arg2
  273. * @memberOf Window
  274. */
  275. Window.prototype.resizeBy=function(arg1,arg2){};
  276. /**
  277. * function scrollTo(arg1, arg2)
  278. * @param {Number} arg1
  279. * @param {Number} arg2
  280. * @memberOf Window
  281. */
  282. Window.prototype.scrollTo=function(arg1,arg2){};
  283. /**
  284. * function scrollBy(arg1, arg2)
  285. * @param {Number} arg1
  286. * @param {Number} arg2
  287. * @memberOf Window
  288. */
  289. Window.prototype.scrollBy=function(arg1,arg2){};
  290. /**
  291. * function setInterval(arg1, arg2)
  292. * @param {Object} arg1
  293. * @param {Number} arg2
  294. * @memberOf Window
  295. * @returns {Object}
  296. */
  297. Window.prototype.setInterval=function(arg1, arg2){return new Object();};
  298. /**
  299. * function setTimeout(arg1, arg2)
  300. * @param {Object} arg1
  301. * @param {Number} arg2
  302. * @memberOf Window
  303. * @returns {Object}
  304. */
  305. Window.prototype.setTimeout=function(arg1, arg2){return new Object();};
  306. /**
  307. * function atob(arg)
  308. * @param {String} arg
  309. * @memberOf Window
  310. * @returns {String}
  311. */
  312. Window.prototype.atob=function(arg){return "";};
  313. /**
  314. * function btoa(arg)
  315. * @param {String} arg
  316. * @memberOf Window
  317. * @returns {String}
  318. */
  319. Window.prototype.btoa=function(arg){return "";};
  320. /**
  321. * function setResizable(arg)
  322. * @param {Boolean} arg
  323. * @memberOf Window
  324. */
  325. Window.prototype.setResizable=function(arg){};
  326. Window.prototype.captureEvents=function(arg1){};
  327. Window.prototype.releaseEvents=function(arg1){};
  328. Window.prototype.routeEvent=function(arg1){};
  329. Window.prototype.enableExternalCapture=function(){};
  330. Window.prototype.disableExternalCapture=function(){};
  331. Window.prototype.find=function(){};
  332. Window.prototype.back=function(){};
  333. Window.prototype.forward=function(){};
  334. Window.prototype.home=function(){};
  335. Window.prototype.stop=function(){};
  336. Window.prototype.scroll=function(arg1,arg2){};
  337. /*
  338. * These functions may need to be moved into a browser specific library.
  339. */
  340. Window.prototype.dispatchEvent=function(arg1){};
  341. Window.prototype.removeEventListener=function(arg1,arg2,arg3){};
  342. /* End functions */
  343. /**
  344. * Object History()
  345. * @super Object
  346. * @constructor
  347. * @since Common Usage, no standard
  348. */
  349. function History(){};
  350. History.prototype=new Object();
  351. History.prototype.history = new History();
  352. /**
  353. * Property length
  354. * @type Number
  355. * @memberOf History
  356. */
  357. History.prototype.length = 0;
  358. /**
  359. * function back()
  360. * @memberOf History
  361. */
  362. History.prototype.back = function(){};
  363. /**
  364. * function forward()
  365. * @memberOf History
  366. */
  367. History.prototype.forward = function(){};
  368. /**
  369. * function back()
  370. * @param arg
  371. * @memberOf History
  372. */
  373. History.prototype.go = function(arg){};
  374. /**
  375. * Object Location()
  376. * @super Object
  377. * @constructor
  378. * @since Common Usage, no standard
  379. */
  380. function Location(){};
  381. Location.prototype = new Object();
  382. Location.prototype.location = new Location();
  383. /**
  384. * Property hash
  385. * @type String
  386. * @memberOf Location
  387. */
  388. Location.prototype.hash = "";
  389. /**
  390. * Property host
  391. * @type String
  392. * @memberOf Location
  393. */
  394. Location.prototype.host = "";
  395. /**
  396. * Property hostname
  397. * @type String
  398. * @memberOf Location
  399. */
  400. Location.prototype.hostname = "";
  401. /**
  402. * Property href
  403. * @type String
  404. * @memberOf Location
  405. */
  406. Location.prototype.href = "";
  407. /**
  408. * Property pathname
  409. * @type String
  410. * @memberOf Location
  411. */
  412. Location.prototype.pathname = "";
  413. /**
  414. * Property port
  415. * @type String
  416. * @memberOf Location
  417. */
  418. Location.prototype.port = "";
  419. /**
  420. * Property protocol
  421. * @type String
  422. * @memberOf Location
  423. */
  424. Location.prototype.protocol = "";
  425. /**
  426. * Property search
  427. * @type String
  428. * @memberOf Location
  429. */
  430. Location.prototype.search = "";
  431. /**
  432. * function assign(arg)
  433. * @param {String} arg
  434. * @memberOf Location
  435. */
  436. Location.prototype.assign = function(arg){};
  437. /**
  438. * function reload(optionalArg)
  439. * @param {Boolean} optionalArg
  440. * @memberOf Location
  441. */
  442. Location.prototype.reload = function(optionalArg){};
  443. /**
  444. * function replace(arg)
  445. * @param {String} arg
  446. * @memberOf Location
  447. */
  448. Location.prototype.replace = function(arg){};
  449. /**
  450. * Object Navigator()
  451. * @super Object
  452. * @constructor
  453. * @since Common Usage, no standard
  454. */
  455. function Navigator(){};
  456. Navigator.prototype = new Object();
  457. Navigator.prototype.navigator = new Navigator();
  458. /**
  459. * Property appCodeName
  460. * @type String
  461. * @memberOf Navigator
  462. */
  463. Navigator.prototype.appCodeName = "";
  464. /**
  465. * Property appName
  466. * @type String
  467. * @memberOf Navigator
  468. */
  469. Navigator.prototype.appName = "";
  470. /**
  471. * Property appVersion
  472. * @type String
  473. * @memberOf Navigator
  474. */
  475. Navigator.prototype.appVersion = "";
  476. /**
  477. * Property cookieEnabled
  478. * @type Boolean
  479. * @memberOf Navigator
  480. */
  481. Navigator.prototype.cookieEnabled = new Boolean();
  482. /**
  483. * Property mimeTypes
  484. * @type Array
  485. * @memberOf Navigator
  486. */
  487. Navigator.prototype.mimeTypes = new Array();
  488. /**
  489. * Property platform
  490. * @type String
  491. * @memberOf Navigator
  492. */
  493. Navigator.prototype.platform = "";
  494. /**
  495. * Property plugins
  496. * @type Array
  497. * @memberOf Navigator
  498. */
  499. Navigator.prototype.plugins = new Array();
  500. /**
  501. * Property userAgent
  502. * @type String
  503. * @memberOf Navigator
  504. */
  505. Navigator.prototype.userAgent = "";
  506. /**
  507. * function javaEnabled()
  508. * @returns {Boolean}
  509. * @memberOf Navigator
  510. */
  511. Navigator.prototype.javaEnabled = function(){return false;};
  512. /**
  513. * Object Screen()
  514. * @super Object
  515. * @constructor
  516. * @since Common Usage, no standard
  517. */
  518. function Screen(){};
  519. Screen.prototype = new Object();
  520. Screen.prototype.screen = new Screen();
  521. /**
  522. * Property availHeight
  523. * @type Number
  524. * @memberOf Screen
  525. */
  526. Navigator.prototype.availHeight = 0;
  527. /**
  528. * Property availWidth
  529. * @type Number
  530. * @memberOf Screen
  531. */
  532. Navigator.prototype.availWidth = 0;
  533. /**
  534. * Property colorDepth
  535. * @type Number
  536. * @memberOf Screen
  537. */
  538. Navigator.prototype.colorDepth = 0;
  539. /**
  540. * Property height
  541. * @type Number
  542. * @memberOf Screen
  543. */
  544. Navigator.prototype.height = 0;
  545. /**
  546. * Property width
  547. * @type Number
  548. * @memberOf Screen
  549. */
  550. Navigator.prototype.width = 0;