@@ -100,6 +100,16 @@ Window.prototype.__defineGetter__('menu', function() {
100100 return this . getHiddenValue ( 'menu' ) ;
101101} ) ;
102102
103+ Window . prototype . __defineGetter__ ( 'isFullscreen' , function ( ) {
104+ var result = CallObjectMethodSync ( this , 'IsFullscreen' , [ ] ) ;
105+ return Boolean ( result [ 0 ] ) ;
106+ } ) ;
107+
108+ Window . prototype . __defineGetter__ ( 'isKioskMode' , function ( ) {
109+ var result = CallObjectMethodSync ( this , 'IsKioskMode' , [ ] ) ;
110+ return Boolean ( result [ 0 ] ) ;
111+ } ) ;
112+
103113Window . prototype . moveTo = function ( x , y ) {
104114 this . window . moveTo ( x , y ) ;
105115}
@@ -170,6 +180,10 @@ Window.prototype.leaveFullscreen = function() {
170180 CallObjectMethod ( this , 'LeaveFullscreen' , [ ] ) ;
171181}
172182
183+ Window . prototype . toggleFullscreen = function ( ) {
184+ CallObjectMethod ( this , 'ToggleFullscreen' , [ ] ) ;
185+ }
186+
173187Window . prototype . enterKioskMode = function ( ) {
174188 CallObjectMethod ( this , 'EnterKioskMode' , [ ] ) ;
175189}
@@ -178,6 +192,10 @@ Window.prototype.leaveKioskMode = function() {
178192 CallObjectMethod ( this , 'LeaveKioskMode' , [ ] ) ;
179193}
180194
195+ Window . prototype . toggleKioskMode = function ( ) {
196+ CallObjectMethod ( this , 'ToggleKioskMode' , [ ] ) ;
197+ }
198+
181199Window . prototype . showDevTools = function ( ) {
182200 CallObjectMethod ( this , 'ShowDevTools' , [ ] ) ;
183201}
0 commit comments