layout/tools/layout-debug/src/nsLayoutDebuggingTools.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/tools/layout-debug/src/nsLayoutDebuggingTools.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +// vim:cindent:tabstop=4:expandtab:shiftwidth=4:
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef nsLayoutDebuggingTools_h
    1.11 +#define nsLayoutDebuggingTools_h
    1.12 +
    1.13 +#include "nsILayoutDebuggingTools.h"
    1.14 +#include "nsIDocShell.h"
    1.15 +#include "nsCOMPtr.h"
    1.16 +
    1.17 +class nsLayoutDebuggingTools : public nsILayoutDebuggingTools {
    1.18 +
    1.19 +public:
    1.20 +    nsLayoutDebuggingTools();
    1.21 +    virtual ~nsLayoutDebuggingTools();
    1.22 +
    1.23 +    NS_DECL_ISUPPORTS
    1.24 +
    1.25 +    NS_DECL_NSILAYOUTDEBUGGINGTOOLS
    1.26 +
    1.27 +protected:
    1.28 +    void ForceRefresh();
    1.29 +    nsresult GetBoolPref(const char * aPrefName, bool *aValue);
    1.30 +    nsresult SetBoolPrefAndRefresh(const char * aPrefName, bool aNewValue);
    1.31 +
    1.32 +    nsCOMPtr<nsIDocShell> mDocShell;
    1.33 +
    1.34 +    bool mEditorMode;
    1.35 +    bool mVisualDebugging;
    1.36 +    bool mVisualEventDebugging;
    1.37 +    bool mPaintFlashing;
    1.38 +    bool mPaintDumping;
    1.39 +    bool mInvalidateDumping;
    1.40 +    bool mEventDumping;
    1.41 +    bool mMotionEventDumping;
    1.42 +    bool mCrossingEventDumping;
    1.43 +    bool mReflowCounts;
    1.44 +};
    1.45 +
    1.46 +#endif

mercurial