Commit a6072822 authored by Oleg Korshul's avatar Oleg Korshul

refactoring...

parent 62ea2bbc
...@@ -2377,6 +2377,38 @@ namespace NSEditorApi ...@@ -2377,6 +2377,38 @@ namespace NSEditorApi
pEvent->Release(); pEvent->Release();
} }
}; };
class CAscCefMenuEvent : public CAscMenuEvent
{
public:
int m_nSenderId;
public:
CAscCefMenuEvent(int nType = -1) : CAscMenuEvent(nType)
{
m_nSenderId = -1;
}
virtual ~CAscCefMenuEvent()
{
}
LINK_PROPERTY_INT(SenderId)
};
class CAscCefMenuEventListener
{
public:
// memory release!!!
virtual void OnEvent(CAscCefMenuEvent* pEvent)
{
if (NULL != pEvent)
pEvent->Release();
}
virtual bool IsSupportEvent(int nEventType)
{
return true;
}
};
} }
namespace NSEditorApi namespace NSEditorApi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment