Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 : /* XPCOM interface for layout-debug extension to reach layout internals */
7 :
8 : #ifndef nsILayoutDebugger_h___
9 : #define nsILayoutDebugger_h___
10 :
11 : #include "nsISupports.h"
12 :
13 : class nsIDocument;
14 : class nsIPresShell;
15 :
16 : // 1295f7c0-96b3-41fc-93ed-c95dfb712ce7
17 : #define NS_ILAYOUT_DEBUGGER_IID \
18 : { 0x1295f7c0, 0x96b3, 0x41fc, \
19 : { 0x93, 0xed, 0xc9, 0x5d, 0xfb, 0x71, 0x2c, 0xe7 } }
20 :
21 : /**
22 : * API for access and control of layout debugging
23 : */
24 0 : class nsILayoutDebugger : public nsISupports {
25 : public:
26 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILAYOUT_DEBUGGER_IID)
27 :
28 : NS_IMETHOD SetShowFrameBorders(bool aEnable) = 0;
29 :
30 : NS_IMETHOD GetShowFrameBorders(bool* aResult) = 0;
31 :
32 : NS_IMETHOD SetShowEventTargetFrameBorder(bool aEnable) = 0;
33 :
34 : NS_IMETHOD GetShowEventTargetFrameBorder(bool* aResult) = 0;
35 : };
36 :
37 : NS_DEFINE_STATIC_IID_ACCESSOR(nsILayoutDebugger, NS_ILAYOUT_DEBUGGER_IID)
38 :
39 : #endif /* nsILayoutDebugger_h___ */
|