2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* interface for rendering objects for replaced elements implemented by
|
|
|
|
* a plugin
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsIObjectFrame_h___
|
|
|
|
#define nsIObjectFrame_h___
|
|
|
|
|
|
|
|
#include "nsIFrame.h"
|
|
|
|
|
2011-05-17 18:48:34 -07:00
|
|
|
class nsNPAPIPluginInstance;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-01-12 11:20:59 -08:00
|
|
|
class nsIObjectFrame : public nsQueryFrame
|
|
|
|
{
|
2007-03-22 10:30:00 -07:00
|
|
|
public:
|
2009-09-12 09:49:24 -07:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsIObjectFrame)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-05-17 18:48:34 -07:00
|
|
|
NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance** aPluginInstance) = 0;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-07-21 17:45:00 -07:00
|
|
|
/**
|
|
|
|
* Get the native widget for the plugin, if any.
|
|
|
|
*/
|
|
|
|
virtual nsIWidget* GetWidget() = 0;
|
2011-08-18 13:08:38 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Update plugin active state. Frame should update if it is on an active tab
|
|
|
|
* or not and forward that information to the plugin to make it possible to
|
|
|
|
* throttle down plugin instance in non active case.
|
|
|
|
*/
|
2011-09-28 23:19:26 -07:00
|
|
|
virtual void SetIsDocumentActive(bool aIsActive) = 0;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsIObjectFrame_h___ */
|