dom/time/nsITimeService.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/time/nsITimeService.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +
    1.10 +%{C++
    1.11 +#define NS_TIMESERVICE_CID { 0x80d6f9cc, 0xf16d, 0x40c3, { 0xa5, 0x2e, 0xc4, 0xe6, 0x56, 0xe3, 0x65, 0xb4 } }
    1.12 +#define TIMESERVICE_CONTRACTID "@mozilla.org/time/timeservice;1"
    1.13 +%}
    1.14 +
    1.15 +[scriptable, builtinclass, uuid(1fc7fde2-0090-11e2-bdd6-0fea4b9f41f8)]
    1.16 +interface nsITimeService : nsISupports
    1.17 +{
    1.18 +  /* Set the system time.
    1.19 +   *
    1.20 +   * The |aTimeInMS| argument is the time in milliseconds since the epoch.
    1.21 +   */
    1.22 +  void set(in int64_t aTimeInMS);
    1.23 +};

mercurial