Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | #ifndef nsBoxObject_h_ |
michael@0 | 6 | #define nsBoxObject_h_ |
michael@0 | 7 | |
michael@0 | 8 | #include "mozilla/Attributes.h" |
michael@0 | 9 | #include "nsCOMPtr.h" |
michael@0 | 10 | #include "nsIBoxObject.h" |
michael@0 | 11 | #include "nsPIBoxObject.h" |
michael@0 | 12 | #include "nsPoint.h" |
michael@0 | 13 | #include "nsAutoPtr.h" |
michael@0 | 14 | #include "nsHashKeys.h" |
michael@0 | 15 | #include "nsInterfaceHashtable.h" |
michael@0 | 16 | #include "nsCycleCollectionParticipant.h" |
michael@0 | 17 | |
michael@0 | 18 | class nsIFrame; |
michael@0 | 19 | class nsIDocShell; |
michael@0 | 20 | struct nsIntRect; |
michael@0 | 21 | class nsIPresShell; |
michael@0 | 22 | |
michael@0 | 23 | class nsBoxObject : public nsPIBoxObject |
michael@0 | 24 | { |
michael@0 | 25 | NS_DECL_CYCLE_COLLECTING_ISUPPORTS |
michael@0 | 26 | NS_DECL_CYCLE_COLLECTION_CLASS(nsBoxObject) |
michael@0 | 27 | NS_DECL_NSIBOXOBJECT |
michael@0 | 28 | |
michael@0 | 29 | public: |
michael@0 | 30 | nsBoxObject(); |
michael@0 | 31 | virtual ~nsBoxObject(); |
michael@0 | 32 | |
michael@0 | 33 | // nsPIBoxObject |
michael@0 | 34 | virtual nsresult Init(nsIContent* aContent) MOZ_OVERRIDE; |
michael@0 | 35 | virtual void Clear() MOZ_OVERRIDE; |
michael@0 | 36 | virtual void ClearCachedValues() MOZ_OVERRIDE; |
michael@0 | 37 | |
michael@0 | 38 | nsIFrame* GetFrame(bool aFlushLayout); |
michael@0 | 39 | nsIPresShell* GetPresShell(bool aFlushLayout); |
michael@0 | 40 | nsresult GetOffsetRect(nsIntRect& aRect); |
michael@0 | 41 | nsresult GetScreenPosition(nsIntPoint& aPoint); |
michael@0 | 42 | |
michael@0 | 43 | // Given a parent frame and a child frame, find the frame whose |
michael@0 | 44 | // next sibling is the given child frame and return its element |
michael@0 | 45 | static nsresult GetPreviousSibling(nsIFrame* aParentFrame, nsIFrame* aFrame, |
michael@0 | 46 | nsIDOMElement** aResult); |
michael@0 | 47 | |
michael@0 | 48 | protected: |
michael@0 | 49 | |
michael@0 | 50 | nsAutoPtr<nsInterfaceHashtable<nsStringHashKey,nsISupports> > mPropertyTable; //[OWNER] |
michael@0 | 51 | |
michael@0 | 52 | nsIContent* mContent; // [WEAK] |
michael@0 | 53 | }; |
michael@0 | 54 | |
michael@0 | 55 | #endif |