BackingStoreVisualizationViewportAccessor.h 1.4 KB

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