h_browser.h 882 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __HOOK_BROWSER_H
  3. #define __HOOK_BROWSER_H
  4. #include "h_guiobject.h"
  5. #define H_BROWSER_PARENT H_GuiObject
  6. class H_Browser : public H_BROWSER_PARENT {
  7. public:
  8. H_Browser(ScriptObject *o);
  9. H_Browser();
  10. virtual ~H_Browser();
  11. virtual void H_hook(ScriptObject *o);
  12. ScriptObject *getHookedObject();
  13. virtual int eventCallback(ScriptObject *object, int dlfid, scriptVar **params, int nparams);
  14. virtual void hook_onBeforeNavigate(const wchar_t *url, int flags, const wchar_t *targetframename) { }
  15. virtual void hook_onDocumentComplete(const wchar_t *url) { }
  16. virtual void hook_onMediaLink(const wchar_t *url) { }
  17. private:
  18. ScriptObject *obj;
  19. int inited;
  20. static int loaded;
  21. static int onbeforenavigate_id;
  22. static int ondocumentcomplete_id;
  23. static int onmedialink_id;
  24. };
  25. #endif