Bug 715814 - Implement Web Activities : IDL [rs+sr=mounir]

This commit is contained in:
Fabrice Desré 2012-07-20 17:41:30 +02:00
parent 469e99df70
commit da9f07462b
9 changed files with 119 additions and 0 deletions

View File

@ -46,6 +46,7 @@ DIRS += \
DIRS += \
apps \
base \
activities \
bindings \
battery \
browser-element \

View 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

View 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

View 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
{
};

View File

@ -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;
};

View 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;
};

View 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;
};

View 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);
};

View File

@ -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