layout/inspector/inFlasher.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/inspector/inFlasher.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,47 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef __inFlasher_h__
     1.9 +#define __inFlasher_h__
    1.10 +
    1.11 +#include "inIFlasher.h"
    1.12 +#include "nsCoord.h"
    1.13 +#include "nsColor.h"
    1.14 +
    1.15 +class nsRenderingContext;
    1.16 +
    1.17 +#define BOUND_INNER 0
    1.18 +#define BOUND_OUTER 1
    1.19 +
    1.20 +#define DIR_VERTICAL 0
    1.21 +#define DIR_HORIZONTAL 1
    1.22 +
    1.23 +class inFlasher : public inIFlasher
    1.24 +{
    1.25 +public:
    1.26 +  NS_DECL_ISUPPORTS
    1.27 +  NS_DECL_INIFLASHER
    1.28 +
    1.29 +  inFlasher();
    1.30 +  virtual ~inFlasher();
    1.31 +
    1.32 +protected:
    1.33 +  void DrawOutline(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight,
    1.34 +                   nsRenderingContext* aRenderContext,
    1.35 +                   bool aDrawBegin, bool aDrawEnd);
    1.36 +  void DrawLine(nscoord aX, nscoord aY, nscoord aLength,
    1.37 +                bool aDir, bool aBounds,
    1.38 +                nsRenderingContext* aRenderContext);
    1.39 +
    1.40 +  nscolor mColor;
    1.41 +
    1.42 +  uint16_t mThickness;
    1.43 +  bool mInvert;
    1.44 +};
    1.45 +
    1.46 +// {9286E71A-621A-4b91-851E-9984C1A2E81A}
    1.47 +#define IN_FLASHER_CID \
    1.48 +{ 0x9286e71a, 0x621a, 0x4b91, { 0x85, 0x1e, 0x99, 0x84, 0xc1, 0xa2, 0xe8, 0x1a } }
    1.49 +
    1.50 +#endif // __inFlasher_h__

mercurial