1
0

browserEvent.h 776 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef NULLSOFT_ONLINEMEDIA_PLUGIN_BROWSER_EVENT_HANDLER_HEADER
  2. #define NULLSOFT_ONLINEMEDIA_PLUGIN_BROWSER_EVENT_HANDLER_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <ifc_ombrowserevent.h>
  7. class BrowserEvent : public ifc_ombrowserevent
  8. {
  9. protected:
  10. BrowserEvent();
  11. ~BrowserEvent();
  12. public:
  13. static HRESULT CreateInstance(BrowserEvent **instance);
  14. public:
  15. /* Dispatchable */
  16. size_t AddRef();
  17. size_t Release();
  18. int QueryInterface(GUID interface_guid, void **object);
  19. /* ifc_ombrowserevent */
  20. void WindowCreate(HWND hwnd, const GUID *windowType);
  21. void WindowClose(HWND hwnd, const GUID *windowType);
  22. protected:
  23. ULONG ref;
  24. protected:
  25. RECVS_DISPATCH;
  26. };
  27. #endif //NULLSOFT_ONLINEMEDIA_PLUGIN_BROWSER_EVENT_HANDLER_HEADER