]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * @private\r | |
3 | */\r | |
4 | Ext.define('Ext.device.browser.Abstract', {\r | |
5 | /**\r | |
6 | * Used to open a new browser window.\r | |
7 | *\r | |
8 | * When used with Cordova, a new InAppBrowser window opens. With Cordova, you also have the ability\r | |
9 | * to listen when the window starts loading, is finished loading, fails to load, and when it is closed.\r | |
10 | * You can also use the {@link #close} method to close the window, if opened.\r | |
11 | * \r | |
12 | * @param {Object} options\r | |
13 | * The options to use when opening a new browser window.\r | |
14 | *\r | |
15 | * @param {String} options.url\r | |
16 | * The URL to open.\r | |
17 | *\r | |
18 | * @param {Object} options.listeners\r | |
19 | * The listeners you want to add onto the window. Available events are:\r | |
20 | *\r | |
21 | * - `loadstart` - when the window starts loading the URL\r | |
22 | * - `loadstop` - when the window is finished loading the URL\r | |
23 | * - `loaderror` - when the window encounters an error loading the URL\r | |
24 | * - `close` - when the window is closed\r | |
25 | *\r | |
26 | * @param {Boolean} options.showToolbar\r | |
27 | * True to show the toolbar in the browser window.\r | |
28 | *\r | |
29 | * @param {String} options.options\r | |
30 | * A string of options which are used when using Cordova. For a full list of options, visit the \r | |
31 | * [PhoneGap documention](http://docs.phonegap.com/en/2.6.0/cordova_inappbrowser_inappbrowser.md.html#window.open).\r | |
32 | */\r | |
33 | open: Ext.emptyFn,\r | |
34 | \r | |
35 | /**\r | |
36 | * Used to close the browser, if one is opened.\r | |
37 | */\r | |
38 | close: Ext.emptyFn\r | |
39 | });\r |