1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/nsFrameTraversal.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 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 +#ifndef NSFRAMETRAVERSAL_H 1.9 +#define NSFRAMETRAVERSAL_H 1.10 + 1.11 +#include "mozilla/Attributes.h" 1.12 +#include "nsIFrameTraversal.h" 1.13 + 1.14 +class nsIFrame; 1.15 + 1.16 +nsresult NS_NewFrameTraversal(nsIFrameEnumerator **aEnumerator, 1.17 + nsPresContext* aPresContext, 1.18 + nsIFrame *aStart, 1.19 + nsIteratorType aType, 1.20 + bool aVisual, 1.21 + bool aLockInScrollView, 1.22 + bool aFollowOOFs); 1.23 + 1.24 +nsresult NS_CreateFrameTraversal(nsIFrameTraversal** aResult); 1.25 + 1.26 +class nsFrameTraversal : public nsIFrameTraversal 1.27 +{ 1.28 +public: 1.29 + nsFrameTraversal(); 1.30 + virtual ~nsFrameTraversal(); 1.31 + 1.32 + NS_DECL_ISUPPORTS 1.33 + 1.34 + NS_IMETHOD NewFrameTraversal(nsIFrameEnumerator **aEnumerator, 1.35 + nsPresContext* aPresContext, 1.36 + nsIFrame *aStart, 1.37 + int32_t aType, 1.38 + bool aVisual, 1.39 + bool aLockInScrollView, 1.40 + bool aFollowOOFs) MOZ_OVERRIDE; 1.41 +}; 1.42 + 1.43 +#endif //NSFRAMETRAVERSAL_H