Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. 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)
  2. : m_parentFrame(parentFrame)
  3. , m_plugin(plugin)
  4. , m_element(element)
  5. , m_isStarted(false)
  6. , m_url(url)
  7. , m_baseURL(m_parentFrame->loader()->completeURL(m_parentFrame->document()->baseURL().string()))
  8. , m_status(PluginStatusLoadedSuccessfully)
  9. , m_requestTimer(this, &PluginView::requestTimerFired)
  10. , m_invalidateTimer(this, &PluginView::invalidateTimerFired)
  11. , m_popPopupsStateTimer(this, &PluginView::popPopupsStateTimerFired)
  12. , m_lifeSupportTimer(this, &PluginView::lifeSupportTimerFired)
  13. , m_mode(loadManually ? NP_FULL : NP_EMBED)
  14. , m_paramNames(0)
  15. , m_paramValues(0)
  16. , m_mimeType(mimeType)
  17. #if defined(XP_MACOSX)
  18. , m_isWindowed(false)
  19. #else
  20. , m_isWindowed(true)
  21. #endif
  22. , m_isTransparent(false)
  23. , m_haveInitialized(false)
  24. , m_isWaitingToStart(false)
  25. #if defined(XP_UNIX)
  26. , m_needsXEmbed(false)
  27. #endif
  28. #if OS(WINDOWS) && ENABLE(NETSCAPE_PLUGIN_API)
  29. , m_pluginWndProc(0)
  30. , m_lastMessage(0)
  31. , m_isCallingPluginWndProc(false)
  32. , m_wmPrintHDC(0)
  33. , m_haveUpdatedPluginWidget(false)
  34. #endif
  35. #if (PLATFORM(QT) && OS(WINDOWS)) || defined(XP_MACOSX)
  36. , m_window(0)
  37. #endif
  38. #if defined(XP_MACOSX)
  39. , m_drawingModel(NPDrawingModel(-1))
  40. , m_eventModel(NPEventModel(-1))
  41. , m_contextRef(0)
  42. , m_fakeWindow(0)
  43. #endif
  44. #if defined(XP_UNIX) && ENABLE(NETSCAPE_PLUGIN_API)
  45. , m_hasPendingGeometryChange(true)
  46. , m_drawable(0)
  47. , m_visual(0)
  48. , m_colormap(0)
  49. , m_pluginDisplay(0)
  50. #endif
  51. , m_loadManually(loadManually)
  52. , m_manualStream(0)
  53. , m_isJavaScriptPaused(false)
  54. , m_isHalted(false)
  55. , m_hasBeenHalted(false)
  56. {
  57. if (!m_plugin) {
  58. m_status = PluginStatusCanNotFindPlugin;
  59. return;
  60. }
  61.  
  62. m_instance = &m_instanceStruct;
  63. m_instance->ndata = this;
  64. m_instance->pdata = 0;
  65.  
  66. instanceMap().add(m_instance, this);
  67.  
  68. setParameters(paramNames, paramValues);
  69.  
  70. memset(&m_npWindow, 0, sizeof(m_npWindow));
  71. #if defined(XP_MACOSX)
  72. memset(&m_npCgContext, 0, sizeof(m_npCgContext));
  73. #endif
  74.  
  75. g_webview = NULL;
  76.  
  77. resize(size);
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement