mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 06:05:44 +00:00
501b078b36
--HG-- rename : dom/base/Console.cpp => dom/console/Console.cpp rename : dom/base/Console.h => dom/console/Console.h rename : dom/base/ConsoleAPI.manifest => dom/console/ConsoleAPI.manifest rename : dom/base/ConsoleAPIStorage.js => dom/console/ConsoleAPIStorage.js rename : dom/base/ConsoleReportCollector.cpp => dom/console/ConsoleReportCollector.cpp rename : dom/base/ConsoleReportCollector.h => dom/console/ConsoleReportCollector.h rename : dom/base/nsIConsoleAPIStorage.idl => dom/console/nsIConsoleAPIStorage.idl rename : dom/base/nsIConsoleReportCollector.h => dom/console/nsIConsoleReportCollector.h rename : dom/base/test/test_bug659625.html => dom/console/tests/test_bug659625.html rename : dom/base/test/test_bug978522.html => dom/console/tests/test_bug978522.html rename : dom/base/test/test_bug979109.html => dom/console/tests/test_bug979109.html rename : dom/base/test/test_bug989665.html => dom/console/tests/test_bug989665.html rename : dom/base/test/test_console.xul => dom/console/tests/test_console.xul rename : dom/base/test/test_consoleEmptyStack.html => dom/console/tests/test_consoleEmptyStack.html rename : dom/base/test/test_console_binding.html => dom/console/tests/test_console_binding.html rename : dom/base/test/test_console_proto.html => dom/console/tests/test_console_proto.html
48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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, uuid(9e32a7b6-c4d1-4d9a-87b9-1ef6b75c27a9)]
|
|
interface nsIConsoleAPIStorage : nsISupports
|
|
{
|
|
/**
|
|
* Get the events array by inner window ID or all events from all windows.
|
|
*
|
|
* @param string [aId]
|
|
* Optional, the inner window ID for which you want to get the array of
|
|
* cached events.
|
|
* @returns array
|
|
* The array of cached events for the given window. If no |aId| is
|
|
* given this function returns all of the cached events, from any
|
|
* window.
|
|
*/
|
|
jsval getEvents([optional] in DOMString aId);
|
|
|
|
/**
|
|
* Record an event associated with the given window ID.
|
|
*
|
|
* @param string aId
|
|
* The ID of the inner window for which the event occurred or "jsm" for
|
|
* messages logged from JavaScript modules..
|
|
* @param string aOuterId
|
|
* This ID is used as 3rd parameters for the console-api-log-event
|
|
* notification.
|
|
* @param object aEvent
|
|
* A JavaScript object you want to store.
|
|
*/
|
|
void recordEvent(in DOMString aId, in DOMString aOuterId, in jsval aEvent);
|
|
|
|
/**
|
|
* Clear storage data for the given window.
|
|
*
|
|
* @param string [aId]
|
|
* Optional, the inner window ID for which you want to clear the
|
|
* messages. If this is not specified all of the cached messages are
|
|
* cleared, from all window objects.
|
|
*/
|
|
void clearEvents([optional] in DOMString aId);
|
|
};
|