AndroidAPZ.h (1060B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef mozilla_layers_AndroidAPZ_h_ 8 #define mozilla_layers_AndroidAPZ_h_ 9 10 #include "AsyncPanZoomAnimation.h" 11 #include "AsyncPanZoomController.h" 12 13 namespace mozilla { 14 namespace layers { 15 16 class AndroidSpecificState : public PlatformSpecificStateBase { 17 public: 18 virtual AndroidSpecificState* AsAndroidSpecificState() override { 19 return this; 20 } 21 22 virtual AsyncPanZoomAnimation* CreateFlingAnimation( 23 AsyncPanZoomController& aApzc, const FlingHandoffState& aHandoffState, 24 float aPLPPI) override; 25 virtual UniquePtr<VelocityTracker> CreateVelocityTracker( 26 Axis* aAxis) override; 27 28 static void InitializeGlobalState(); 29 }; 30 31 } // namespace layers 32 } // namespace mozilla 33 34 #endif // mozilla_layers_AndroidAPZ_h_