2014-11-21 10:56:27 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
callback BrowserElementNextPaintEventCallback = void ();
|
|
|
|
|
2015-06-10 00:04:00 +00:00
|
|
|
enum BrowserFindCaseSensitivity { "case-sensitive", "case-insensitive" };
|
|
|
|
enum BrowserFindDirection { "forward", "backward" };
|
|
|
|
|
2014-11-21 10:56:27 +00:00
|
|
|
dictionary BrowserElementDownloadOptions {
|
|
|
|
DOMString? filename;
|
2015-02-23 22:11:23 +00:00
|
|
|
DOMString? referrer;
|
2014-11-21 10:56:27 +00:00
|
|
|
};
|
|
|
|
|
2015-07-16 07:56:00 +00:00
|
|
|
dictionary BrowserElementExecuteScriptOptions {
|
|
|
|
DOMString? url;
|
|
|
|
DOMString? origin;
|
|
|
|
};
|
|
|
|
|
2014-11-21 10:56:27 +00:00
|
|
|
[NoInterfaceObject]
|
|
|
|
interface BrowserElement {
|
|
|
|
};
|
|
|
|
|
|
|
|
BrowserElement implements BrowserElementCommon;
|
|
|
|
BrowserElement implements BrowserElementPrivileged;
|
|
|
|
|
|
|
|
[NoInterfaceObject]
|
|
|
|
interface BrowserElementCommon {
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser embed-widgets"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void setVisible(boolean visible);
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser embed-widgets"]
|
2014-11-21 10:56:27 +00:00
|
|
|
DOMRequest getVisible();
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser embed-widgets"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void setActive(boolean active);
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser embed-widgets"]
|
2014-11-21 10:56:27 +00:00
|
|
|
boolean getActive();
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser embed-widgets"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void addNextPaintListener(BrowserElementNextPaintEventCallback listener);
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser embed-widgets"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void removeNextPaintListener(BrowserElementNextPaintEventCallback listener);
|
|
|
|
};
|
|
|
|
|
|
|
|
[NoInterfaceObject]
|
|
|
|
interface BrowserElementPrivileged {
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void sendMouseEvent(DOMString type,
|
|
|
|
unsigned long x,
|
|
|
|
unsigned long y,
|
|
|
|
unsigned long button,
|
|
|
|
unsigned long clickCount,
|
|
|
|
unsigned long modifiers);
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
|
|
|
Func="TouchEvent::PrefEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void sendTouchEvent(DOMString type,
|
|
|
|
sequence<unsigned long> identifiers,
|
|
|
|
sequence<long> x,
|
|
|
|
sequence<long> y,
|
|
|
|
sequence<unsigned long> rx,
|
|
|
|
sequence<unsigned long> ry,
|
|
|
|
sequence<float> rotationAngles,
|
|
|
|
sequence<float> forces,
|
|
|
|
unsigned long count,
|
|
|
|
unsigned long modifiers);
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void goBack();
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void goForward();
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void reload(optional boolean hardReload = false);
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void stop();
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
DOMRequest download(DOMString url,
|
|
|
|
optional BrowserElementDownloadOptions options);
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
DOMRequest purgeHistory();
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
DOMRequest getScreenshot([EnforceRange] unsigned long width,
|
|
|
|
[EnforceRange] unsigned long height,
|
2014-11-21 10:56:27 +00:00
|
|
|
optional DOMString mimeType="");
|
2014-11-21 10:56:27 +00:00
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
void zoom(float zoom);
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
DOMRequest getCanGoBack();
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
DOMRequest getCanGoForward();
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2014-11-21 10:56:27 +00:00
|
|
|
DOMRequest getContentDimensions();
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-03 08:07:06 +00:00
|
|
|
CheckAllPermissions="browser input-manage"]
|
2014-11-21 10:56:27 +00:00
|
|
|
DOMRequest setInputMethodActive(boolean isActive);
|
2015-01-22 09:40:17 +00:00
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-31 04:28:06 +00:00
|
|
|
CheckAllPermissions="browser nfc-manager"]
|
2015-01-22 09:40:17 +00:00
|
|
|
void setNFCFocus(boolean isFocus);
|
2015-06-10 00:04:00 +00:00
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2015-06-10 00:04:00 +00:00
|
|
|
void findAll(DOMString searchString, BrowserFindCaseSensitivity caseSensitivity);
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2015-06-10 00:04:00 +00:00
|
|
|
void findNext(BrowserFindDirection direction);
|
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="browser"]
|
2015-06-10 00:04:00 +00:00
|
|
|
void clearMatch();
|
|
|
|
|
2015-07-16 07:56:00 +00:00
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
2015-07-17 03:51:59 +00:00
|
|
|
CheckAllPermissions="browser browser:universalxss"]
|
2015-07-16 07:56:00 +00:00
|
|
|
DOMRequest executeScript(DOMString script,
|
|
|
|
optional BrowserElementExecuteScriptOptions options);
|
|
|
|
|
2015-09-23 06:02:10 +00:00
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
|
|
|
CheckAllPermissions="browser"]
|
|
|
|
DOMRequest getStructuredData();
|
2015-11-03 02:52:00 +00:00
|
|
|
|
|
|
|
[Throws,
|
|
|
|
Pref="dom.mozBrowserFramesEnabled",
|
|
|
|
CheckAllPermissions="browser"]
|
|
|
|
DOMRequest getWebManifest();
|
|
|
|
|
2014-11-21 10:56:27 +00:00
|
|
|
};
|