OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv
ed. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 virtual RenderWidget* existingRenderWidget() const = 0; | 119 virtual RenderWidget* existingRenderWidget() const = 0; |
120 virtual void updateWidgetInternal() = 0; | 120 virtual void updateWidgetInternal() = 0; |
121 | 121 |
122 enum DisplayState { | 122 enum DisplayState { |
123 Restarting, | 123 Restarting, |
124 RestartingWithPendingMouseClick, | 124 RestartingWithPendingMouseClick, |
125 Playing | 125 Playing |
126 }; | 126 }; |
127 DisplayState displayState() const { return m_displayState; } | 127 DisplayState displayState() const { return m_displayState; } |
128 void setDisplayState(DisplayState state) { m_displayState = state; } | 128 void setDisplayState(DisplayState state) { m_displayState = state; } |
129 const String loadedMimeType() const; | |
130 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p
aramNames, const Vector<String>& paramValues, bool useFallback, bool requireRend
erer); | 129 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p
aramNames, const Vector<String>& paramValues, bool useFallback, bool requireRend
erer); |
131 bool pluginIsLoadable(const KURL&, const String& mimeType); | 130 bool pluginIsLoadable(const KURL&, const String& mimeType); |
132 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType)
; | 131 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType)
; |
133 | 132 |
134 mutable RefPtr<SharedPersistent<v8::Object> > m_pluginWrapper; | 133 mutable RefPtr<SharedPersistent<v8::Object> > m_pluginWrapper; |
135 NPObject* m_NPObject; | 134 NPObject* m_NPObject; |
136 bool m_isCapturingMouseEvents; | 135 bool m_isCapturingMouseEvents; |
137 bool m_needsWidgetUpdate; | 136 bool m_needsWidgetUpdate; |
138 bool m_shouldPreferPlugInsForImages; | 137 bool m_shouldPreferPlugInsForImages; |
139 DisplayState m_displayState; | 138 DisplayState m_displayState; |
(...skipping 14 matching lines...) Expand all Loading... |
154 inline bool isHTMLPlugInElement(const HTMLElement& element) | 153 inline bool isHTMLPlugInElement(const HTMLElement& element) |
155 { | 154 { |
156 return element.isPluginElement(); | 155 return element.isPluginElement(); |
157 } | 156 } |
158 | 157 |
159 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 158 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
160 | 159 |
161 } // namespace WebCore | 160 } // namespace WebCore |
162 | 161 |
163 #endif // HTMLPlugInElement_h | 162 #endif // HTMLPlugInElement_h |
OLD | NEW |