1 /* See license.txt for terms of usage */ 2 3 define([ 4 ], 5 function webAppFactory() { 6 7 // ********************************************************************************************* // 8 9 // WebApp: unit of related browsing contexts. 10 // http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#groupings-of-browsing-contexts 11 var WebApp = function(win) 12 { 13 this.topMostWindow = win; 14 } 15 16 /** 17 * The Window of the top-level browsing context, aka 'top' 18 * http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#top-level-browsing-context 19 */ 20 WebApp.prototype = 21 { 22 getTopMostWindow: function() 23 { 24 return this.topMostWindow; 25 } 26 } 27 28 // ********************************************************************************************* // 29 // Registration 30 31 return WebApp; 32 33 // ********************************************************************************************* // 34 });