michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: // vim:cindent:tabstop=4:expandtab:shiftwidth=4: michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsLayoutDebuggingTools_h michael@0: #define nsLayoutDebuggingTools_h michael@0: michael@0: #include "nsILayoutDebuggingTools.h" michael@0: #include "nsIDocShell.h" michael@0: #include "nsCOMPtr.h" michael@0: michael@0: class nsLayoutDebuggingTools : public nsILayoutDebuggingTools { michael@0: michael@0: public: michael@0: nsLayoutDebuggingTools(); michael@0: virtual ~nsLayoutDebuggingTools(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: NS_DECL_NSILAYOUTDEBUGGINGTOOLS michael@0: michael@0: protected: michael@0: void ForceRefresh(); michael@0: nsresult GetBoolPref(const char * aPrefName, bool *aValue); michael@0: nsresult SetBoolPrefAndRefresh(const char * aPrefName, bool aNewValue); michael@0: michael@0: nsCOMPtr mDocShell; michael@0: michael@0: bool mEditorMode; michael@0: bool mVisualDebugging; michael@0: bool mVisualEventDebugging; michael@0: bool mPaintFlashing; michael@0: bool mPaintDumping; michael@0: bool mInvalidateDumping; michael@0: bool mEventDumping; michael@0: bool mMotionEventDumping; michael@0: bool mCrossingEventDumping; michael@0: bool mReflowCounts; michael@0: }; michael@0: michael@0: #endif