2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00: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/. */
|
2006-03-29 18:29:03 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* interface for rendering objects for replaced elements implemented by
|
|
|
|
* a plugin
|
|
|
|
*/
|
|
|
|
|
2001-02-17 01:54:26 +00:00
|
|
|
#ifndef nsIObjectFrame_h___
|
|
|
|
#define nsIObjectFrame_h___
|
|
|
|
|
2013-08-30 21:17:07 +00:00
|
|
|
#include "nsQueryFrame.h"
|
Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 17:42:36 +00:00
|
|
|
|
2011-05-18 01:48:34 +00:00
|
|
|
class nsNPAPIPluginInstance;
|
2013-08-30 21:17:07 +00:00
|
|
|
class nsIWidget;
|
2001-02-17 01:54:26 +00:00
|
|
|
|
2009-01-12 19:20:59 +00:00
|
|
|
class nsIObjectFrame : public nsQueryFrame
|
|
|
|
{
|
2001-02-17 01:54:26 +00:00
|
|
|
public:
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsIObjectFrame)
|
2001-02-17 01:54:26 +00:00
|
|
|
|
2011-05-18 01:48:34 +00:00
|
|
|
NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance** aPluginInstance) = 0;
|
2005-09-21 19:14:30 +00:00
|
|
|
|
2009-07-22 00:45:00 +00:00
|
|
|
/**
|
|
|
|
* Get the native widget for the plugin, if any.
|
|
|
|
*/
|
|
|
|
virtual nsIWidget* GetWidget() = 0;
|
2011-08-18 20:08:38 +00: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-29 06:19:26 +00:00
|
|
|
virtual void SetIsDocumentActive(bool aIsActive) = 0;
|
2001-02-17 01:54:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsIObjectFrame_h___ */
|