1
0

sharedminibrowser.h 615 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _SHAREDMINIBROWSER_H
  2. #define _SHAREDMINIBROWSER_H
  3. #include "../studio/skincb.h"
  4. class SkinMonitor;
  5. class SharedMiniBrowser {
  6. public:
  7. static void navigateUrl(const char *url);
  8. static void shutdown();
  9. static int m_inserted;
  10. static SkinMonitor *m_monitor;
  11. };
  12. class SkinMonitor : public SkinCallbackI {
  13. public:
  14. SkinMonitor() {
  15. WASABI_API_SYSCB->syscb_registerCallback(this);
  16. }
  17. virtual ~SkinMonitor() {
  18. WASABI_API_SYSCB->syscb_deregisterCallback(this);
  19. }
  20. virtual int skincb_onReset() {
  21. SharedMiniBrowser::m_inserted = 0;
  22. return 0;
  23. }
  24. };
  25. #endif // _SHAREDMINIBROWSER_H