1 /* -*- Mode: c++; c-basic-offset: 2; tab-width: 20; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef AndroidContentController_h__
7 #define AndroidContentController_h__
9 #include "mozilla/layers/ChromeProcessController.h"
10 #include "mozilla/EventForwards.h" // for Modifiers
11 #include "mozilla/StaticPtr.h"
12 #include "mozilla/TimeStamp.h"
19 class IAPZCTreeManager
;
23 class AndroidContentController final
24 : public mozilla::layers::ChromeProcessController
{
26 AndroidContentController(nsWindow
* aWindow
,
27 mozilla::layers::APZEventState
* aAPZEventState
,
28 mozilla::layers::IAPZCTreeManager
* aAPZCTreeManager
)
29 : mozilla::layers::ChromeProcessController(aWindow
, aAPZEventState
,
31 mAndroidWindow(aWindow
) {}
33 // ChromeProcessController methods
34 virtual void Destroy() override
;
35 void UpdateOverscrollVelocity(const ScrollableLayerGuid
& aGuid
,
36 const float aX
, const float aY
,
37 const bool aIsRootContent
) override
;
38 void UpdateOverscrollOffset(const ScrollableLayerGuid
& aGuid
, const float aX
,
40 const bool aIsRootContent
) override
;
41 void NotifyAPZStateChange(const ScrollableLayerGuid
& aGuid
,
42 APZStateChange aChange
, int aArg
) override
;
45 nsWindow
* mAndroidWindow
;
49 } // namespace mozilla