michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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: #ifndef nsIPercentHeightObserver_h___ michael@0: #define nsIPercentHeightObserver_h___ michael@0: michael@0: #include "nsQueryFrame.h" michael@0: michael@0: struct nsHTMLReflowState; michael@0: michael@0: /** michael@0: * This interface is supported by frames that need to provide computed height michael@0: * values to children during reflow which would otherwise not happen. Currently only michael@0: * table cells support this. michael@0: */ michael@0: class nsIPercentHeightObserver michael@0: { michael@0: public: michael@0: NS_DECL_QUERYFRAME_TARGET(nsIPercentHeightObserver) michael@0: michael@0: // Notify the observer that aReflowState has no computed height, but it has a percent height michael@0: virtual void NotifyPercentHeight(const nsHTMLReflowState& aReflowState) = 0; michael@0: michael@0: // Ask the observer if it should observe aReflowState.frame michael@0: virtual bool NeedsToObserve(const nsHTMLReflowState& aReflowState) = 0; michael@0: }; michael@0: michael@0: #endif // nsIPercentHeightObserver_h___