Bug 767818 - Implement navigator.pay. Part 2 - Expose 'pay' function to 'navigator'; r=jst

This commit is contained in:
Fernando Jiménez 2012-08-29 18:41:34 -03:00
parent c0773ecb38
commit 2368411d52
4 changed files with 24 additions and 0 deletions

View File

@ -4199,6 +4199,7 @@ MOZ_WEBSMS_BACKEND=
MOZ_GRAPHITE=1
ACCESSIBILITY=1
MOZ_SYS_MSG=
MOZ_PAY=
case "$target_os" in
mingw*)
@ -7312,6 +7313,14 @@ if test -n "$MOZ_B2G_CAMERA"; then
fi
AC_SUBST(MOZ_B2G_CAMERA)
dnl ========================================================
dnl = Enable Support for Payment API
dnl ========================================================
if test -n "$MOZ_PAY"; then
AC_DEFINE(MOZ_PAY)
fi
AC_SUBST(MOZ_PAY)
dnl ========================================================
dnl = Support for demangling undefined symbols
dnl ========================================================

View File

@ -85,6 +85,12 @@ PARALLEL_DIRS += \
$(NULL)
endif
ifdef MOZ_PAY
PARALLEL_DIRS += \
payment \
$(NULL)
endif
# bindings/test is here, because it needs to build after bindings/, and
# we build subdirectories before ourselves.
TEST_DIRS += \

View File

@ -0,0 +1,3 @@
component {a920adc0-c36e-4fd0-8de0-aac1ac6ebbd0} Payment.js
contract @mozilla.org/payment/content-helper;1 {a920adc0-c36e-4fd0-8de0-aac1ac6ebbd0}
category JavaScript-navigator-property mozPay @mozilla.org/payment/content-helper;1

View File

@ -1213,6 +1213,12 @@ if [ "$MOZ_B2G_RIL" ]; then
"
fi
if [ "$MOZ_PAY" ]; then
add_makefiles "
dom/payment/Makefile
"
fi
if [ "$MOZ_CRASHREPORTER" ]; then
add_makefiles "
toolkit/crashreporter/Makefile