2017-10-27 20:33:53 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04: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 22:29:03 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* interface for rendering objects for replaced elements implemented by
|
|
|
|
* a plugin
|
|
|
|
*/
|
|
|
|
|
2001-02-17 04:54:26 +03:00
|
|
|
#ifndef nsIObjectFrame_h___
|
|
|
|
#define nsIObjectFrame_h___
|
|
|
|
|
2013-08-31 01:17:07 +04: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 21:42:36 +04:00
|
|
|
|
2011-05-18 05:48:34 +04:00
|
|
|
class nsNPAPIPluginInstance;
|
2013-08-31 01:17:07 +04:00
|
|
|
class nsIWidget;
|
2001-02-17 04:54:26 +03:00
|
|
|
|
2009-01-12 22:20:59 +03:00
|
|
|
class nsIObjectFrame : public nsQueryFrame {
|
2001-02-17 04:54:26 +03:00
|
|
|
public:
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsIObjectFrame)
|
2001-02-17 04:54:26 +03:00
|
|
|
|
2018-11-20 04:20:17 +03:00
|
|
|
virtual nsNPAPIPluginInstance* GetPluginInstance() = 0;
|
2005-09-21 23:14:30 +04:00
|
|
|
|
2009-07-22 04:45:00 +04:00
|
|
|
/**
|
|
|
|
* Get the native widget for the plugin, if any.
|
|
|
|
*/
|
|
|
|
virtual nsIWidget* GetWidget() = 0;
|
2011-08-19 00:08:38 +04: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 10:19:26 +04:00
|
|
|
virtual void SetIsDocumentActive(bool aIsActive) = 0;
|
2001-02-17 04:54:26 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsIObjectFrame_h___ */
|