InRegionScroller.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (C) 2011, 2012 Research In Motion Limited. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef InRegionScroller_h
  19. #define InRegionScroller_h
  20. #include "BlackBerryGlobal.h"
  21. #include <BlackBerryPlatformMisc.h>
  22. #include <BlackBerryPlatformPrimitives.h>
  23. #include <interaction/ScrollViewBase.h>
  24. namespace BlackBerry {
  25. namespace WebKit {
  26. class InRegionScrollerPrivate;
  27. class TouchEventHandler;
  28. class WebPagePrivate;
  29. class SelectionHandler;
  30. class BLACKBERRY_EXPORT InRegionScroller {
  31. public:
  32. InRegionScroller(WebPagePrivate*);
  33. ~InRegionScroller();
  34. bool setDocumentScrollPositionCompositingThread(unsigned camouflagedLayer, const Platform::IntPoint& documentScrollPosition);
  35. bool setDocumentScrollPositionWebKitThread(unsigned camouflagedLayer, const Platform::IntPoint& documentScrollPosition,
  36. bool acceleratedScrolling, Platform::ScrollViewBase::ScrollTarget);
  37. private:
  38. friend class WebPagePrivate;
  39. friend class TouchEventHandler;
  40. friend class SelectionHandler;
  41. InRegionScrollerPrivate *d;
  42. DISABLE_COPY(InRegionScroller)
  43. };
  44. }
  45. }
  46. #endif