1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/generic/nsIStatefulFrame.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 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 +/* 1.9 + * interface for rendering objects whose state is saved in 1.10 + * session-history (back-forward navigation) 1.11 + */ 1.12 + 1.13 +#ifndef _nsIStatefulFrame_h 1.14 +#define _nsIStatefulFrame_h 1.15 + 1.16 +#include "nsQueryFrame.h" 1.17 + 1.18 +class nsPresState; 1.19 + 1.20 +class nsIStatefulFrame 1.21 +{ 1.22 + public: 1.23 + NS_DECL_QUERYFRAME_TARGET(nsIStatefulFrame) 1.24 + 1.25 + // Save the state for this frame. If this method succeeds, the caller is 1.26 + // responsible for deleting the resulting state when done with it. 1.27 + NS_IMETHOD SaveState(nsPresState** aState) = 0; 1.28 + 1.29 + // Restore the state for this frame from aState 1.30 + NS_IMETHOD RestoreState(nsPresState* aState) = 0; 1.31 +}; 1.32 + 1.33 +#endif /* _nsIStatefulFrame_h */