typedef std::map<JSContextRef, JSPageSessionPtr> PagesSessionsSet;
PagesSessionsSet m_sessions;
+ unsigned int m_windowHandle;
public:
Impl();
CustomEventType eventType,
void* data);
+ unsigned int windowHandle() const;
+ void setWindowHandle(unsigned int handle);
+
static bool s_sanityCheck;
};
return; \
}
-PluginLogic::Impl::Impl()
+PluginLogic::Impl::Impl() :
+ m_windowHandle(0)
{
s_sanityCheck = true;
m_impl->unloadFrame(context);
}
+unsigned int PluginLogic::windowHandle() const
+{
+ return m_impl->windowHandle();
+}
+
+void PluginLogic::setWindowHandle(unsigned int handle)
+{
+ m_impl->setWindowHandle(handle);
+}
+
PluginLogic::PluginLogic() : m_impl(new PluginLogic::Impl())
{}
sessionIt->second->dispatchJavaScriptEvent(eventType, data);
}
+
+unsigned int PluginLogic::Impl::windowHandle() const
+{
+ PLUGIN_LOGIC_SANITY_CHECK
+ return m_windowHandle;
+}
+
+void PluginLogic::Impl::setWindowHandle(unsigned int handle)
+{
+ PLUGIN_LOGIC_SANITY_CHECK
+ LogDebug("XWindow handle " << handle);
+ m_windowHandle = handle;
+}