HTMLPlugInElement.h [plain text]
#ifndef HTMLPlugInElement_h
#define HTMLPlugInElement_h
#include "HTMLFrameOwnerElement.h"
#include "ScriptInstance.h"
#if ENABLE(NETSCAPE_PLUGIN_API)
struct NPObject;
#endif
namespace WebCore {
class RenderEmbeddedObject;
class RenderWidget;
class Widget;
class HTMLPlugInElement : public HTMLFrameOwnerElement {
public:
virtual ~HTMLPlugInElement();
PassScriptInstance getInstance();
Widget* pluginWidget();
#if ENABLE(NETSCAPE_PLUGIN_API)
NPObject* getNPObject();
#endif
bool isCapturingMouseEvents() const { return m_isCapturingMouseEvents; }
void setIsCapturingMouseEvents(bool capturing) { m_isCapturingMouseEvents = capturing; }
bool canContainRangeEndPoint() const { return false; }
protected:
HTMLPlugInElement(const QualifiedName& tagName, Document*);
virtual void detach();
virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
bool m_inBeforeLoadEventHandler;
bool guardedDispatchBeforeLoadEvent(const String& sourceURL);
private:
bool dispatchBeforeLoadEvent(const String& sourceURL);
virtual void defaultEventHandler(Event*);
virtual RenderWidget* renderWidgetForJSBindings() = 0;
private:
mutable ScriptInstance m_instance;
#if ENABLE(NETSCAPE_PLUGIN_API)
NPObject* m_NPObject;
#endif
bool m_isCapturingMouseEvents;
};
}
#endif // HTMLPlugInElement_h