WebKitThreadViewportAccessor.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2012 Research In Motion Limited. All rights reserved.
  3. */
  4. #ifndef WebKitThreadViewportAccessor_h
  5. #define WebKitThreadViewportAccessor_h
  6. #include <BlackBerryPlatformViewportAccessor.h>
  7. namespace BlackBerry {
  8. namespace Platform {
  9. class IntPoint;
  10. class IntSize;
  11. }
  12. namespace WebKit {
  13. class WebPagePrivate;
  14. class WebKitThreadViewportAccessor : public Platform::ViewportAccessor {
  15. public:
  16. WebKitThreadViewportAccessor(WebPagePrivate*);
  17. virtual ~WebKitThreadViewportAccessor() { }
  18. virtual BlackBerry::Platform::IntSize documentContentsSize() const;
  19. virtual BlackBerry::Platform::IntSize pixelContentsSize() const;
  20. virtual BlackBerry::Platform::IntPoint documentScrollPosition() const;
  21. virtual BlackBerry::Platform::IntPoint pixelScrollPosition() const;
  22. virtual BlackBerry::Platform::IntSize documentViewportSize() const;
  23. virtual BlackBerry::Platform::IntSize pixelViewportSize() const;
  24. virtual BlackBerry::Platform::IntPoint destinationSurfaceOffset() const;
  25. virtual double scale() const;
  26. private:
  27. Platform::ViewportAccessor* m_originalAccessor;
  28. WebPagePrivate* m_webPagePrivate;
  29. };
  30. } // namespace WebKit
  31. } // namespace BlackBerry
  32. #endif