Bug 714358: Time manager interface. f=mounir, sr=mounir

This commit is contained in:
Steven Lee 2012-09-10 07:14:00 -04:00
Родитель a66fa12b04
Коммит b8261d4904
7 изменённых файлов: 57 добавлений и 1 удалений

Просмотреть файл

@ -58,6 +58,7 @@ PARALLEL_DIRS += \
sms \
mms \
src \
time \
locales \
network \
permission \

Просмотреть файл

@ -19,6 +19,7 @@ DOM_SRCDIRS = \
dom/src/geolocation \
dom/src/notification \
dom/workers \
dom/time \
content/xbl/src \
content/xul/document/src \
content/events/src \

Просмотреть файл

@ -32,7 +32,7 @@ interface nsIDOMMozURLProperty : nsISupports
* @see <http://www.whatwg.org/html/#window>
*/
[scriptable, uuid(afeb6529-06f1-47e8-98c6-c7bfadb4c1ff)]
[scriptable, uuid(AB4ED3B8-84F8-4585-B413-0996A7F96D20)]
interface nsIDOMWindow : nsISupports
{
// the current browsing context
@ -497,6 +497,7 @@ interface nsIDOMWindow : nsISupports
[implicit_jscontext] attribute jsval ondeviceproximity;
[implicit_jscontext] attribute jsval onuserproximity;
[implicit_jscontext] attribute jsval ondevicelight;
[implicit_jscontext] attribute jsval onmoztimechange;
[implicit_jscontext] attribute jsval onmouseenter;
[implicit_jscontext] attribute jsval onmouseleave;

27
dom/time/Makefile.in Normal file
Просмотреть файл

@ -0,0 +1,27 @@
# 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
LIBRARY_NAME = dom_time_s
XPIDL_MODULE = dom_time
LIBXUL_LIBRARY = 1
FORCE_STATIC_LIB = 1
include $(topsrcdir)/dom/dom-config.mk
CPPSRCS = $(NULL)
XPIDLSRCS = \
nsIDOMNavigatorTime.idl \
nsIDOMTimeManager.idl \
$(NULL)
include $(topsrcdir)/config/config.mk
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -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 "nsISupports.idl"
interface nsIDOMMozTimeManager;
[scriptable, uuid(befc186d-c249-4acb-8e70-8080f7b45e5c)]
interface nsIDOMMozNavigatorTime : nsISupports
{
readonly attribute nsIDOMMozTimeManager mozTime;
};

Просмотреть файл

@ -0,0 +1,12 @@
/* 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"
[scriptable, builtinclass, uuid(d29beaaa-bd54-4fd5-9f18-e0eedb1dc96d)]
interface nsIDOMMozTimeManager : nsISupports
{
// jsval could be Date object or UTC seconds
void set(in jsval time);
};

Просмотреть файл

@ -82,6 +82,7 @@ MAKEFILES_dom="
dom/src/storage/Makefile
dom/system/Makefile
dom/workers/Makefile
dom/time/Makefile
"
MAKEFILES_editor="