Sha256: a75012221d8f70cffa57af1f2b306243dbd488da0770afc62146dbdcc3979fec

Contents?: true

Size: 1.5 KB

Versions: 14

Compression:

Stored size: 1.5 KB

Contents

#include "stdafx.h"
#include "EngineEventListner.h"
#include "../../../shared/common/RhodesApp.h"

namespace rho
{
	namespace engineeventlistner
	{
		void CEngineEventMngr::setEngineType(eEngineType eEngType)
		{
			m_eEngType = eEngType;
			
		}
		void CEngineEventMngr::registerExtension(const String& strName, IEngineEventListner* pExt)
		{
			m_hashExtensions.put(strName, pExt);
		}
		eEngineType CEngineEventMngr::getEngineType()
		{
			return m_eEngType;
		}
		void CEngineEventMngr::injectDOMElements()
		{
			for ( HashtablePtr<String, IEngineEventListner*>::iterator it = m_hashExtensions.begin(); it != m_hashExtensions.end(); ++it )
			{
				(it->second)->injectDOMElements();
			}
		}
		void CEngineEventMngr::setEngineInterface(IDOMInjectorEngineInterface* pEngineIf)
		{
			m_pEngineIf = pEngineIf;
		}
		bool CEngineEventMngr::executAnonymousJs(wchar_t* szFunctionText)
		{
			int nTabID = RHODESAPP().getExtManager().getCurrentTabID();
			if(m_pEngineIf)
			{
				return m_pEngineIf->executAnonymousJs(szFunctionText, nTabID);
			}

		}
		void CEngineEventMngr::onBeforeNavigate(const wchar_t* onBeforeNavigate)
		{
			for ( HashtablePtr<String, IEngineEventListner*>::iterator it = m_hashExtensions.begin(); it != m_hashExtensions.end(); ++it )
			{
				(it->second)->onBeforeNavigate(onBeforeNavigate);
			}
		}
		void CEngineEventListner::injectDOMElements()
		{
			//default implementation
		}
		void CEngineEventListner::onBeforeNavigate(const wchar_t* szUrlBeingNavigatedTo)
		{
			//default implementation
		}

	}
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rhodes-7.6.0 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-7.5.1 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-7.4.1 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-7.1.17 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-6.2.0 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-6.0.11 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-5.5.18 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-5.5.17 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-5.5.15 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-5.5.0.22 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-5.5.2 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-5.5.0.7 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-5.5.0.3 platform/wm/rhodes/browser/EngineEventListner.cpp
rhodes-5.5.0 platform/wm/rhodes/browser/EngineEventListner.cpp