1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/nsILayoutDebugger.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; 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 +/* XPCOM interface for layout-debug extension to reach layout internals */ 1.10 + 1.11 +#ifndef nsILayoutDebugger_h___ 1.12 +#define nsILayoutDebugger_h___ 1.13 + 1.14 +#include "nsISupports.h" 1.15 + 1.16 +class nsIDocument; 1.17 +class nsIPresShell; 1.18 + 1.19 +/* a6cf90f8-15b3-11d2-932e-00805f8add32 */ 1.20 +#define NS_ILAYOUT_DEBUGGER_IID \ 1.21 + { 0xa6cf90f8, 0x15b3, 0x11d2,{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}} 1.22 + 1.23 +/** 1.24 + * API for access and control of layout debugging 1.25 + */ 1.26 +class nsILayoutDebugger : public nsISupports { 1.27 +public: 1.28 + NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILAYOUT_DEBUGGER_IID) 1.29 + 1.30 + NS_IMETHOD SetShowFrameBorders(bool aEnable) = 0; 1.31 + 1.32 + NS_IMETHOD GetShowFrameBorders(bool* aResult) = 0; 1.33 + 1.34 + NS_IMETHOD SetShowEventTargetFrameBorder(bool aEnable) = 0; 1.35 + 1.36 + NS_IMETHOD GetShowEventTargetFrameBorder(bool* aResult) = 0; 1.37 + 1.38 + NS_IMETHOD GetContentSize(nsIDocument* aDocument, 1.39 + int32_t* aSizeInBytesResult) = 0; 1.40 + 1.41 + NS_IMETHOD GetFrameSize(nsIPresShell* aPresentation, 1.42 + int32_t* aSizeInBytesResult) = 0; 1.43 + 1.44 + NS_IMETHOD GetStyleSize(nsIPresShell* aPresentation, 1.45 + int32_t* aSizeInBytesResult) = 0; 1.46 +}; 1.47 + 1.48 +NS_DEFINE_STATIC_IID_ACCESSOR(nsILayoutDebugger, NS_ILAYOUT_DEBUGGER_IID) 1.49 + 1.50 +#endif /* nsILayoutDebugger_h___ */