Source: stbWebWindow.js

/**
 * STB object declaration and documentation.
 * JSDoc specification ({@link http://usejsdoc.org/}).
 * An introduction to JSDoc ({@link http://www.2ality.com/2011/08/jsdoc-intro.html}).
 *
 * @fileOverview Provides API to a web window functionality.
 */

'use strict';

/* jshint unused:false */

//noinspection JSUnusedGlobalSymbols

/**
 * Main object stbWebWindow methods declaration.
 *
 * @namespace
 */
var stbWebWindow = {

	/**
	 * Get window ID.
	 *
	 * @return {number} id
	 */
	windowId:
		function () { return 0; },


	/**
	 * Send message "`message`" with data "`data`" to window ID "`windowId`".
	 * Message can be handled using callback `stbEvent.onMessage(data)` which should be defined in target window.
	 *
	 * @param {number} windowId
	 * @param {string} message
	 * @param {string} data
	 *
	 * @since 0.2.18
	 */
	messageSend:
		function ( windowId, message, data ) {},


	/**
	 * Send message "`message`" with data "`data`" to all existed windows.
	 * Message can be handled using callback `stbEvent.onBroadcastMessage(data)`
	 *
	 * @param {string} message
	 * @param {string} data
	 *
	 * @since 0.2.18
	 */
	messageBroadcast:
		function ( message, data ) {},


	/**
	 * Close window
	 *
	 * @since 0.2.16
	 */
	close:
		function () {},


	/**
	 * Generate virtual key event using Unicode text "`unicodeText`" and QT key code "`key`"
	 *
	 * @param {String} unicodeText
	 * @param {Number} key
	 *
	 * @since 0.2.18
	 */
	SendVirtualKeypress:
		function ( unicodeText, key ) {},


	/**
	 * @private
	 *
	 * @since 0.2.18
	 */
	SetGeometry:
		function ( x, y, w, h ) {},


	/**
	 * Set full screen mode for dedicated "Wild Web" window.
	 *
	 * @param {boolean} mode possible values:
	 *
	 *  Value | Description
	 * -------|-------------
	 *  true  | maximized mode
	 *  false | normal mode
	 *
	 * @since 0.2.18
	 */
	SetFullScreenMode:
		function ( mode ) {},


	/**
	 * Set zoom ratio for embedded web browser.
	 *
	 * @param {number} ratio zoom ratio, percent [10..1000]
	 *
	 * @since 0.2.16
	 */
	SetZoomFactor:
		function ( ratio ) {},


	/**
	 * Get currently opened URL.
	 *
	 * @return {string}
	 *
	 * @since 0.2.16
	 */
	getCurrentUrl:
		function () { return ''; },


	/**
	 * Go back in the navigation history.
	 * Defined only for dedicated "Wild Web" window.
	 *
	 * @since 0.2.16
	 */
	NavigateBack:
		function () {},


	/**
	* Go forward in the navigation history.
	* Defined only for dedicated "Wild Web" window.
	*
	* @since 0.2.16
	 */
	NavigateForward:
		function () {},


	/**
	 * Reload current web ducument.
	 *
	 * @since 0.2.16
	 */
	ReloadDocument:
		function () {},


	/**
	 * Cancel loading web document.
	 *
	 * @since 0.2.16
	 */
	StopLoading:
		function () {},


	/**
	 * @private
	 *
	 * @since 0.2.16
	 */
	slotJavaScriptWindowObjectCleared:
		function () {},


	/**
	 * Give the focus to the top web browser frame.
	 *
	 * @deprecated since 0.2.18
	 * @since 0.2.16
	 */
	FocusTopWindow:
		function () {},


	/**
	 * Give the focus to the main web browser frame.
	 *
	 * @deprecated since 0.2.18
	 * @since 0.2.16
	 */
	FocusMiddleWindow:
		function () {}

};