Files
palemoon27/xpcom/system/nsIExternalApplication.idl
roytam1 8a5ab88480 import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1179718 - Add a CheckAllPermissions extended attribute to WebIDL. r=bz (ccaf27417)
- Bug 1178513 - Add <extapp> element and interfaces to be used by ACL. r=khuey (146b766c7)
- Bug 1184647. Cloning an image should ensure that the clone tries to load the src, if any. r=smaug (7e532fdb6)
- Bug 1142717, part 1 - Remove unused forward declaration of xpc_GetJSPrivate. r=bholley (9ed60f8c9)
- Bug 1037329 - Part 1: Implement SystemUpdate API. r=baku (b446efdb5)
- Bug 1037329 - Part 2: Enable SystemUpdate API on b2g. r=fabrice (570fc0e98)
- Bug 1142717, part 2 - Use nsRefPtr for obj in XPCWrappedNative::InitTearOff. r=bholley (6e262259e)
- Bug 1142717, part 2b - Rename obj to qiResult in InitTearOff. r=bholley (ad76ada13)
- Bug 1142717, part 3 - Make XPCWrappedNativeTearOff::mNative a smart pointer. r=bholley (7ad2c24b8)
- Bug 1142717, part 4 - Add MOZ_COUNT_CTOR/DTOR for XPCWrappedNativeTearOff. r=bholley (67aeaf0c3)
- Bug 1142717, part 5 - Eliminate XPC_WRAPPED_NATIVE_TEAROFFS_PER_CHUNK. r=bholley (251bd5478)
- Bug 1184630 - Remove the unused XPCWrappedNative::LocateTearOff(). r=gabor (de125f7df)
2021-01-14 23:56:03 +08:00

32 lines
1.1 KiB
Plaintext

/* 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/. */
#include "nsISupports.idl"
interface nsPIDOMWindow;
[builtinclass, uuid(adf6b501-609a-4f54-ac16-39b54d6358b5)]
interface nsICustomEventDispatch : nsISupports {
// Dispatches an event named "externalappevent" with the data
// in a property named "data" on the event.
void dispatchExternalEvent(in AString data);
};
[builtinclass, uuid(4d797f32-a24d-4cbc-b608-1eb0fc8e442b)]
interface nsICustomPropertyBag : nsISupports {
void setProperty(in AString name, in AString value);
void removeProperty(in AString name);
};
[builtinclass, uuid(c100de94-e699-4941-b528-eaff1af5b15c)]
interface nsIExternalApplication : nsISupports {
void init(in nsPIDOMWindow window, in nsICustomPropertyBag bag, in nsICustomEventDispatch callback);
void postMessage(in AString message);
};
%{C++
#define NS_EXTERNALAPP_CONTRACTID "@mozilla.org/externalapp;1"
#define NS_EXTERNALAPP_CID {0x8ec5dce2, 0x67e1, 0x49cd, {0xa0, 0x12, 0xf9, 0xfe, 0x32, 0x00, 0xd0, 0x8e}}
%}