layout/xul/nsPIBoxObject.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/nsPIBoxObject.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     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 +#ifndef nsPIBoxObject_h___
    1.10 +#define nsPIBoxObject_h___
    1.11 +
    1.12 +#include "nsIBoxObject.h"
    1.13 +
    1.14 +// {2b8bb262-1b0f-4572-ba87-5d4ae4954445}
    1.15 +#define NS_PIBOXOBJECT_IID \
    1.16 +{ 0x2b8bb262, 0x1b0f, 0x4572, \
    1.17 +  { 0xba, 0x87, 0x5d, 0x4a, 0xe4, 0x95, 0x44, 0x45 } }
    1.18 +
    1.19 +
    1.20 +class nsIContent;
    1.21 +
    1.22 +class nsPIBoxObject : public nsIBoxObject
    1.23 +{
    1.24 +public:
    1.25 +  NS_DECLARE_STATIC_IID_ACCESSOR(NS_PIBOXOBJECT_IID)
    1.26 +
    1.27 +  virtual nsresult Init(nsIContent* aContent) = 0;
    1.28 +
    1.29 +  // Drop the weak ref to the content node as needed
    1.30 +  virtual void Clear() = 0;
    1.31 +
    1.32 +  // The values cached by the implementation of this interface should be
    1.33 +  // cleared when this method is called.
    1.34 +  virtual void ClearCachedValues() = 0;
    1.35 +};
    1.36 +
    1.37 +NS_DEFINE_STATIC_IID_ACCESSOR(nsPIBoxObject, NS_PIBOXOBJECT_IID)
    1.38 +
    1.39 +#endif
    1.40 +

mercurial