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: /* michael@0: * interface for rendering objects for replaced elements implemented by michael@0: * a plugin michael@0: */ michael@0: michael@0: #ifndef nsIObjectFrame_h___ michael@0: #define nsIObjectFrame_h___ michael@0: michael@0: #include "nsQueryFrame.h" michael@0: michael@0: class nsNPAPIPluginInstance; michael@0: class nsIWidget; michael@0: michael@0: class nsIObjectFrame : public nsQueryFrame michael@0: { michael@0: public: michael@0: NS_DECL_QUERYFRAME_TARGET(nsIObjectFrame) michael@0: michael@0: NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance** aPluginInstance) = 0; michael@0: michael@0: /** michael@0: * Get the native widget for the plugin, if any. michael@0: */ michael@0: virtual nsIWidget* GetWidget() = 0; michael@0: michael@0: /** michael@0: * Update plugin active state. Frame should update if it is on an active tab michael@0: * or not and forward that information to the plugin to make it possible to michael@0: * throttle down plugin instance in non active case. michael@0: */ michael@0: virtual void SetIsDocumentActive(bool aIsActive) = 0; michael@0: }; michael@0: michael@0: #endif /* nsIObjectFrame_h___ */