qwebscriptworld_p.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. Copyright (C) 2010 Robert Hogan <robert@roberthogan.net>
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Library General Public
  5. License as published by the Free Software Foundation; either
  6. version 2 of the License, or (at your option) any later version.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Library General Public License for more details.
  11. You should have received a copy of the GNU Library General Public License
  12. along with this library; see the file COPYING.LIB. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  14. Boston, MA 02110-1301, USA.
  15. */
  16. #ifndef _QWEBSCRIPTWORLD_P_H_
  17. #define _QWEBSCRIPTWORLD_P_H_
  18. #include <wtf/RefPtr.h>
  19. namespace WebCore {
  20. class DOMWrapperWorld;
  21. }
  22. class QWebScriptWorldPrivate : public QSharedData {
  23. public:
  24. QWebScriptWorldPrivate(WTF::PassRefPtr<WebCore::DOMWrapperWorld> o)
  25. {
  26. Q_ASSERT(o);
  27. world = o;
  28. }
  29. ~QWebScriptWorldPrivate()
  30. {
  31. }
  32. WTF::RefPtr<WebCore::DOMWrapperWorld> world;
  33. };
  34. #endif