зеркало из https://github.com/mozilla/gecko-dev.git
Bug 714358: Time manager interface. f=mounir, sr=mounir
This commit is contained in:
Родитель
a66fa12b04
Коммит
b8261d4904
|
@ -58,6 +58,7 @@ PARALLEL_DIRS += \
|
||||||
sms \
|
sms \
|
||||||
mms \
|
mms \
|
||||||
src \
|
src \
|
||||||
|
time \
|
||||||
locales \
|
locales \
|
||||||
network \
|
network \
|
||||||
permission \
|
permission \
|
||||||
|
|
|
@ -19,6 +19,7 @@ DOM_SRCDIRS = \
|
||||||
dom/src/geolocation \
|
dom/src/geolocation \
|
||||||
dom/src/notification \
|
dom/src/notification \
|
||||||
dom/workers \
|
dom/workers \
|
||||||
|
dom/time \
|
||||||
content/xbl/src \
|
content/xbl/src \
|
||||||
content/xul/document/src \
|
content/xul/document/src \
|
||||||
content/events/src \
|
content/events/src \
|
||||||
|
|
|
@ -32,7 +32,7 @@ interface nsIDOMMozURLProperty : nsISupports
|
||||||
* @see <http://www.whatwg.org/html/#window>
|
* @see <http://www.whatwg.org/html/#window>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[scriptable, uuid(afeb6529-06f1-47e8-98c6-c7bfadb4c1ff)]
|
[scriptable, uuid(AB4ED3B8-84F8-4585-B413-0996A7F96D20)]
|
||||||
interface nsIDOMWindow : nsISupports
|
interface nsIDOMWindow : nsISupports
|
||||||
{
|
{
|
||||||
// the current browsing context
|
// the current browsing context
|
||||||
|
@ -497,6 +497,7 @@ interface nsIDOMWindow : nsISupports
|
||||||
[implicit_jscontext] attribute jsval ondeviceproximity;
|
[implicit_jscontext] attribute jsval ondeviceproximity;
|
||||||
[implicit_jscontext] attribute jsval onuserproximity;
|
[implicit_jscontext] attribute jsval onuserproximity;
|
||||||
[implicit_jscontext] attribute jsval ondevicelight;
|
[implicit_jscontext] attribute jsval ondevicelight;
|
||||||
|
[implicit_jscontext] attribute jsval onmoztimechange;
|
||||||
|
|
||||||
[implicit_jscontext] attribute jsval onmouseenter;
|
[implicit_jscontext] attribute jsval onmouseenter;
|
||||||
[implicit_jscontext] attribute jsval onmouseleave;
|
[implicit_jscontext] attribute jsval onmouseleave;
|
||||||
|
|
|
@ -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/src/storage/Makefile
|
||||||
dom/system/Makefile
|
dom/system/Makefile
|
||||||
dom/workers/Makefile
|
dom/workers/Makefile
|
||||||
|
dom/time/Makefile
|
||||||
"
|
"
|
||||||
|
|
||||||
MAKEFILES_editor="
|
MAKEFILES_editor="
|
||||||
|
|
Загрузка…
Ссылка в новой задаче