summaryrefslogtreecommitdiffstats
path: root/layout/tools/layout-debug/src/nsILayoutDebuggingTools.idl
blob: 18c535e53c2aaa263c2dc5afb702c3a0ba82673b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
// vim:cindent:tabstop=4:expandtab:shiftwidth=4:
/* 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 mozIDOMWindow;

/**
 * A series of hooks into non-IDL-ized layout code to allow all the
 * layout debugging functions to be used from chrome.
 */

[scriptable, uuid(f336d8d3-9721-4ad3-85d0-a7018c0a3383)]
interface nsILayoutDebuggingTools : nsISupports
{

    /*
     * Initialize debugger object to act on a docshell.
     */
    void init(in mozIDOMWindow win);

    /*
     * Notify the debugger that the docshell has been told to load a new
     * URI.
     */
    void newURILoaded();

    /* Toggle various debugging states */
    attribute boolean visualDebugging;
    attribute boolean visualEventDebugging;
    attribute boolean paintFlashing;
    attribute boolean paintDumping;
    attribute boolean invalidateDumping;
    attribute boolean eventDumping;
    attribute boolean motionEventDumping;
    attribute boolean crossingEventDumping;
    attribute boolean reflowCounts;

    /* Run various tests. */
    void dumpWebShells();
    void dumpContent();
    void dumpFrames();
    void dumpViews();

    void dumpStyleSheets();
    void dumpStyleContexts();

    void dumpReflowStats();
};