|
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
|
2 // vim:cindent:tabstop=4:expandtab:shiftwidth=4: |
|
3 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #include "nsISupports.idl" |
|
8 |
|
9 interface nsIDOMWindow; |
|
10 |
|
11 /** |
|
12 * A series of hooks into non-IDL-ized layout code to allow all the |
|
13 * layout debugging functions to be used from chrome. |
|
14 */ |
|
15 |
|
16 [scriptable, uuid(4b968d4b-9c08-4635-a7e0-55084843f0fd)] |
|
17 interface nsILayoutDebuggingTools : nsISupports |
|
18 { |
|
19 |
|
20 /* |
|
21 * Initialize debugger object to act on a docshell. |
|
22 */ |
|
23 void init(in nsIDOMWindow win); |
|
24 |
|
25 /* |
|
26 * Notify the debugger that the docshell has been told to load a new |
|
27 * URI. |
|
28 */ |
|
29 void newURILoaded(); |
|
30 |
|
31 /* Toggle various debugging states */ |
|
32 attribute boolean visualDebugging; |
|
33 attribute boolean visualEventDebugging; |
|
34 attribute boolean paintFlashing; |
|
35 attribute boolean paintDumping; |
|
36 attribute boolean invalidateDumping; |
|
37 attribute boolean eventDumping; |
|
38 attribute boolean motionEventDumping; |
|
39 attribute boolean crossingEventDumping; |
|
40 attribute boolean reflowCounts; |
|
41 |
|
42 /* Run various tests. */ |
|
43 void dumpWebShells(); |
|
44 void dumpContent(); |
|
45 void dumpFrames(); |
|
46 void dumpViews(); |
|
47 |
|
48 void dumpStyleSheets(); |
|
49 void dumpStyleContexts(); |
|
50 |
|
51 void dumpReflowStats(); |
|
52 }; |