mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 715814 - Implement Web Activities : IDL [rs+sr=mounir]
This commit is contained in:
parent
469e99df70
commit
da9f07462b
@ -46,6 +46,7 @@ DIRS += \
|
||||
DIRS += \
|
||||
apps \
|
||||
base \
|
||||
activities \
|
||||
bindings \
|
||||
battery \
|
||||
browser-element \
|
||||
|
14
dom/activities/Makefile.in
Normal file
14
dom/activities/Makefile.in
Normal file
@ -0,0 +1,14 @@
|
||||
# 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/.
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PARALLEL_DIRS = interfaces
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
21
dom/activities/interfaces/Makefile.in
Normal file
21
dom/activities/interfaces/Makefile.in
Normal file
@ -0,0 +1,21 @@
|
||||
# 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/.
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
XPIDL_MODULE = dom_activities
|
||||
|
||||
XPIDLSRCS = nsIDOMActivity.idl \
|
||||
nsIDOMActivityOptions.idl \
|
||||
nsIDOMActivityHandlerDescription.idl \
|
||||
nsIDOMActivityRequestHandler.idl \
|
||||
nsIDOMNavigatorActivities.idl \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
14
dom/activities/interfaces/nsIDOMActivity.idl
Normal file
14
dom/activities/interfaces/nsIDOMActivity.idl
Normal file
@ -0,0 +1,14 @@
|
||||
/* 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 "domstubs.idl"
|
||||
#include "nsIDOMDOMRequest.idl"
|
||||
|
||||
/**
|
||||
* The constructor will accept a nsIDOMActivityOptions parameter.
|
||||
*/
|
||||
[scriptable, builtinclass, uuid(1f59cd9a-b8b5-4a98-bd2a-897b73584946)]
|
||||
interface nsIDOMMozActivity : nsIDOMDOMRequest
|
||||
{
|
||||
};
|
@ -0,0 +1,19 @@
|
||||
/* 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 "domstubs.idl"
|
||||
|
||||
/**
|
||||
* The constructor will accept the name as a parameter.
|
||||
*/
|
||||
[scriptable, uuid(1601d370-08d9-47b7-8802-d4291533b843)]
|
||||
interface nsIDOMMozActivityHandlerDescription : nsISupports
|
||||
{
|
||||
attribute DOMString name;
|
||||
attribute DOMString href;
|
||||
attribute DOMString disposition;
|
||||
attribute boolean returnValue;
|
||||
// The |filters| property can be null.
|
||||
attribute jsval filters;
|
||||
};
|
13
dom/activities/interfaces/nsIDOMActivityOptions.idl
Normal file
13
dom/activities/interfaces/nsIDOMActivityOptions.idl
Normal file
@ -0,0 +1,13 @@
|
||||
/* 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 "domstubs.idl"
|
||||
|
||||
[scriptable, uuid(f5bf5e9b-f53f-470f-b560-0d6f4c1c98ad)]
|
||||
interface nsIDOMMozActivityOptions : nsISupports
|
||||
{
|
||||
readonly attribute DOMString name;
|
||||
// The |data| field can be null.
|
||||
readonly attribute jsval data;
|
||||
};
|
15
dom/activities/interfaces/nsIDOMActivityRequestHandler.idl
Normal file
15
dom/activities/interfaces/nsIDOMActivityRequestHandler.idl
Normal file
@ -0,0 +1,15 @@
|
||||
/* 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 "domstubs.idl"
|
||||
|
||||
interface nsIDOMMozActivityOptions;
|
||||
|
||||
[scriptable, uuid(e70c4181-ea3f-4aa5-a2f7-af910dc65e45)]
|
||||
interface nsIDOMMozActivityRequestHandler : nsISupports
|
||||
{
|
||||
void postResult(in jsval result);
|
||||
void postError(in DOMString error);
|
||||
readonly attribute nsIDOMMozActivityOptions source;
|
||||
};
|
20
dom/activities/interfaces/nsIDOMNavigatorActivities.idl
Normal file
20
dom/activities/interfaces/nsIDOMNavigatorActivities.idl
Normal file
@ -0,0 +1,20 @@
|
||||
/* 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 "domstubs.idl"
|
||||
|
||||
interface nsIDOMMozActivityHandlerDescription;
|
||||
interface nsIDOMDOMRequest;
|
||||
|
||||
/**
|
||||
* This interface is implemented by the Navigator object.
|
||||
*/
|
||||
[scriptable, uuid(e7cb7d2f-11d2-4783-a8b0-bddabb4a5c03)]
|
||||
interface nsIDOMMozNavigatorActivities : nsISupports
|
||||
{
|
||||
nsIDOMDOMRequest mozRegisterActivityHandler(in nsIDOMMozActivityHandlerDescription description);
|
||||
void mozUnregisterActivityHandler(in nsIDOMMozActivityHandlerDescription description);
|
||||
|
||||
bool mozIsActivityHandlerRegistered(in nsIDOMMozActivityHandlerDescription description);
|
||||
};
|
@ -35,6 +35,8 @@ MAKEFILES_dom="
|
||||
dom/interfaces/xbl/Makefile
|
||||
dom/interfaces/xpath/Makefile
|
||||
dom/interfaces/xul/Makefile
|
||||
dom/activities/Makefile
|
||||
dom/activities/interfaces/Makefile
|
||||
dom/alarm/Makefile
|
||||
dom/base/Makefile
|
||||
dom/battery/Makefile
|
||||
|
Loading…
x
Reference in New Issue
Block a user