[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

api[www,Fullscreen] code

'	Provides the fullscreen API for the web platform.
	http://www.w3.org/TR/fullscreen/
	@2013 Alejandro Reimondo [email protected]
'!

! DOMDocument methodsFor: 'Fullscreen-testing'!
fullscreenEnabled
	" Returns true if document has the ability to display elements fullscreen. "

	^(self handle basicAt: #fullscreenEnabled) == true! !

! DOMDocument methodsFor: 'Fullscreen-accessing'!
fullscreenElement
	" Returns the element that is displayed fullscreen, or nil. "

	^self elementSupport @ self handle fullscreenElement! !

! DOMDocument methodsFor: 'Fullscreen-mode'!
exitFullscreen
	" Stops any elements within document from being displayed fullscreen. "

	^self handle exitFullscreen! !

! DOMElement methodsFor: 'Fullscreen-mode'!
requestFullscreen
	" Render the receiver fullScreen. "

	^self handle requestFullscreen! !