Bug 755245 - Implement System Message Handler : Part 1, IDL [sr=jonas,r=mounir,khuey]

This commit is contained in:
Fabrice Desré 2012-07-02 17:16:55 -07:00
parent f9ebaf0336
commit bc1fd14ba1
7 changed files with 66 additions and 0 deletions

View File

@ -273,6 +273,8 @@ MOZ_NATIVE_NSS = @MOZ_NATIVE_NSS@
MOZ_B2G_RIL = @MOZ_B2G_RIL@
MOZ_B2G_BT = @MOZ_B2G_BT@
MOZ_SYS_MSG = @MOZ_SYS_MSG@
MOZ_ASAN = @MOZ_ASAN@
MOZ_CFLAGS_NSS = @MOZ_CFLAGS_NSS@
MOZ_NO_WLZDEFS = @MOZ_NO_WLZDEFS@

View File

@ -7437,6 +7437,12 @@ if test -n "$MOZ_B2G_BT"; then
fi
AC_SUBST(MOZ_B2G_BT)
dnl ========================================================
dnl = Enable Support for System Messages API
dnl ========================================================
AC_SUBST(MOZ_SYS_MSG)
dnl ========================================================
dnl = Support for demangling undefined symbols
dnl ========================================================

View File

@ -53,6 +53,7 @@ DIRS += \
devicestorage \
file \
media \
messages \
power \
settings \
sms \

16
dom/messages/Makefile.in Normal file
View File

@ -0,0 +1,16 @@
# 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@
relativesrcdir = dom/messages
include $(DEPTH)/config/autoconf.mk
PARALLEL_DIRS = interfaces
include $(topsrcdir)/config/rules.mk

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/.
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
XPIDL_MODULE = dom_messages
include $(topsrcdir)/dom/dom-config.mk
XPIDLSRCS = \
nsIDOMNavigatorSystemMessages.idl \
$(NULL)
include $(topsrcdir)/config/rules.mk

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"
[scriptable, function, uuid(42692976-57fd-4bb4-ab95-2b97ebdc5056)]
interface nsIDOMSystemMessageCallback : nsISupports
{
void handleMessage(in jsval message);
};
[scriptable, uuid(091e90dd-0e8b-463d-8cdc-9225d3a6ff90)]
interface nsIDOMNavigatorSystemMessages : nsISupports
{
void mozSetMessageHandler(in DOMString type, in nsIDOMSystemMessageCallback callback);
boolean mozHasPendingMessage(in DOMString type);
};

View File

@ -41,6 +41,8 @@ MAKEFILES_dom="
dom/indexedDB/Makefile
dom/ipc/Makefile
dom/locales/Makefile
dom/messages/Makefile
dom/messages/interfaces/Makefile
dom/network/Makefile
dom/network/interfaces/Makefile
dom/network/src/Makefile