Bug 1869647 - Mark hasStorageAccess.sub.https.window.html as intermittent after wpt...
[gecko.git] / widget / android / AndroidContentController.h
blob04640deb4e029fb93b3ab441f3a3df8ab41eb004
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"
13 #include "nsTArray.h"
14 #include "nsWindow.h"
16 namespace mozilla {
17 namespace layers {
18 class APZEventState;
19 class IAPZCTreeManager;
20 } // namespace layers
21 namespace widget {
23 class AndroidContentController final
24 : public mozilla::layers::ChromeProcessController {
25 public:
26 AndroidContentController(nsWindow* aWindow,
27 mozilla::layers::APZEventState* aAPZEventState,
28 mozilla::layers::IAPZCTreeManager* aAPZCTreeManager)
29 : mozilla::layers::ChromeProcessController(aWindow, aAPZEventState,
30 aAPZCTreeManager),
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,
39 const float aY,
40 const bool aIsRootContent) override;
41 void NotifyAPZStateChange(const ScrollableLayerGuid& aGuid,
42 APZStateChange aChange, int aArg,
43 Maybe<uint64_t> aInputBlockId) override;
45 private:
46 nsWindow* mAndroidWindow;
49 } // namespace widget
50 } // namespace mozilla
52 #endif