xpcom/base/nsIConsoleMessage.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/base/nsIConsoleMessage.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +/**
    1.12 + * This is intended as a base interface; implementations may want to
    1.13 + * provide an object that can be qi'ed to provide more specific
    1.14 + * message information.
    1.15 + */
    1.16 +[scriptable, uuid(c14c151b-5ea4-47ed-8e85-d392cdd3e154)]
    1.17 +interface nsIConsoleMessage : nsISupports
    1.18 +{
    1.19 +    /**
    1.20 +     * The time (in milliseconds from the Epoch) that the message instance
    1.21 +     * was initialised.
    1.22 +     * The timestamp is initialized as JS_now/1000 so that it can be
    1.23 +     * compared to Date.now in Javascript.
    1.24 +     */
    1.25 +    readonly attribute long long timeStamp;
    1.26 +
    1.27 +    [binaryname(MessageMoz)] readonly attribute wstring message;
    1.28 +
    1.29 +    AUTF8String toString();
    1.30 +};
    1.31 +
    1.32 +%{ C++
    1.33 +#define NS_CONSOLEMESSAGE_CID \
    1.34 +{ 0x024efc9e, 0x54dc, 0x4844, { 0x80, 0x4b, 0x41, 0xd3, 0xf3, 0x69, 0x90, 0x73 }}
    1.35 +%}

mercurial