Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PluginView::PluginView(Frame* parentFrame, const IntSize& size, PluginPackage* plugin, Element* element, const KURL& url, const Vector<String>& paramNames, const Vector<String>& paramValues, const String& mimeType, bool loadManually)
- : m_parentFrame(parentFrame)
- , m_plugin(plugin)
- , m_element(element)
- , m_isStarted(false)
- , m_url(url)
- , m_baseURL(m_parentFrame->loader()->completeURL(m_parentFrame->document()->baseURL().string()))
- , m_status(PluginStatusLoadedSuccessfully)
- , m_requestTimer(this, &PluginView::requestTimerFired)
- , m_invalidateTimer(this, &PluginView::invalidateTimerFired)
- , m_popPopupsStateTimer(this, &PluginView::popPopupsStateTimerFired)
- , m_lifeSupportTimer(this, &PluginView::lifeSupportTimerFired)
- , m_mode(loadManually ? NP_FULL : NP_EMBED)
- , m_paramNames(0)
- , m_paramValues(0)
- , m_mimeType(mimeType)
- #if defined(XP_MACOSX)
- , m_isWindowed(false)
- #else
- , m_isWindowed(true)
- #endif
- , m_isTransparent(false)
- , m_haveInitialized(false)
- , m_isWaitingToStart(false)
- #if defined(XP_UNIX)
- , m_needsXEmbed(false)
- #endif
- #if OS(WINDOWS) && ENABLE(NETSCAPE_PLUGIN_API)
- , m_pluginWndProc(0)
- , m_lastMessage(0)
- , m_isCallingPluginWndProc(false)
- , m_wmPrintHDC(0)
- , m_haveUpdatedPluginWidget(false)
- #endif
- #if (PLATFORM(QT) && OS(WINDOWS)) || defined(XP_MACOSX)
- , m_window(0)
- #endif
- #if defined(XP_MACOSX)
- , m_drawingModel(NPDrawingModel(-1))
- , m_eventModel(NPEventModel(-1))
- , m_contextRef(0)
- , m_fakeWindow(0)
- #endif
- #if defined(XP_UNIX) && ENABLE(NETSCAPE_PLUGIN_API)
- , m_hasPendingGeometryChange(true)
- , m_drawable(0)
- , m_visual(0)
- , m_colormap(0)
- , m_pluginDisplay(0)
- #endif
- , m_loadManually(loadManually)
- , m_manualStream(0)
- , m_isJavaScriptPaused(false)
- , m_isHalted(false)
- , m_hasBeenHalted(false)
- {
- if (!m_plugin) {
- m_status = PluginStatusCanNotFindPlugin;
- return;
- }
- m_instance = &m_instanceStruct;
- m_instance->ndata = this;
- m_instance->pdata = 0;
- instanceMap().add(m_instance, this);
- setParameters(paramNames, paramValues);
- memset(&m_npWindow, 0, sizeof(m_npWindow));
- #if defined(XP_MACOSX)
- memset(&m_npCgContext, 0, sizeof(m_npCgContext));
- #endif
- g_webview = NULL;
- resize(size);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement