michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: * interface for rendering objects whose state is saved in michael@0: * session-history (back-forward navigation) michael@0: */ michael@0: michael@0: #ifndef _nsIStatefulFrame_h michael@0: #define _nsIStatefulFrame_h michael@0: michael@0: #include "nsQueryFrame.h" michael@0: michael@0: class nsPresState; michael@0: michael@0: class nsIStatefulFrame michael@0: { michael@0: public: michael@0: NS_DECL_QUERYFRAME_TARGET(nsIStatefulFrame) michael@0: michael@0: // Save the state for this frame. If this method succeeds, the caller is michael@0: // responsible for deleting the resulting state when done with it. michael@0: NS_IMETHOD SaveState(nsPresState** aState) = 0; michael@0: michael@0: // Restore the state for this frame from aState michael@0: NS_IMETHOD RestoreState(nsPresState* aState) = 0; michael@0: }; michael@0: michael@0: #endif /* _nsIStatefulFrame_h */