/work/obj-fuzz/dist/include/mozilla/layers/APZCTreeManagerParent.h
Line | Count | Source (jump to first uncovered line) |
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_APZCTreeManagerParent_h |
8 | | #define mozilla_layers_APZCTreeManagerParent_h |
9 | | |
10 | | #include "mozilla/layers/PAPZCTreeManagerParent.h" |
11 | | |
12 | | namespace mozilla { |
13 | | namespace layers { |
14 | | |
15 | | class APZCTreeManager; |
16 | | class APZUpdater; |
17 | | |
18 | | class APZCTreeManagerParent |
19 | | : public PAPZCTreeManagerParent |
20 | | { |
21 | | public: |
22 | | |
23 | | APZCTreeManagerParent(LayersId aLayersId, |
24 | | RefPtr<APZCTreeManager> aAPZCTreeManager, |
25 | | RefPtr<APZUpdater> mAPZUpdater); |
26 | | virtual ~APZCTreeManagerParent(); |
27 | | |
28 | 0 | LayersId GetLayersId() const { return mLayersId; } |
29 | | |
30 | | /** |
31 | | * Called when the layer tree that this protocol is connected to |
32 | | * is adopted by another compositor, and we need to switch APZCTreeManagers. |
33 | | */ |
34 | | void ChildAdopted(RefPtr<APZCTreeManager> aAPZCTreeManager, |
35 | | RefPtr<APZUpdater> aAPZUpdater); |
36 | | |
37 | | mozilla::ipc::IPCResult |
38 | | RecvSetKeyboardMap(const KeyboardMap& aKeyboardMap) override; |
39 | | |
40 | | mozilla::ipc::IPCResult |
41 | | RecvZoomToRect( |
42 | | const ScrollableLayerGuid& aGuid, |
43 | | const CSSRect& aRect, |
44 | | const uint32_t& aFlags) override; |
45 | | |
46 | | mozilla::ipc::IPCResult |
47 | | RecvContentReceivedInputBlock( |
48 | | const uint64_t& aInputBlockId, |
49 | | const bool& aPreventDefault) override; |
50 | | |
51 | | mozilla::ipc::IPCResult |
52 | | RecvSetTargetAPZC( |
53 | | const uint64_t& aInputBlockId, |
54 | | nsTArray<ScrollableLayerGuid>&& aTargets) override; |
55 | | |
56 | | mozilla::ipc::IPCResult |
57 | | RecvUpdateZoomConstraints( |
58 | | const ScrollableLayerGuid& aGuid, |
59 | | const MaybeZoomConstraints& aConstraints) override; |
60 | | |
61 | | mozilla::ipc::IPCResult |
62 | | RecvSetDPI(const float& aDpiValue) override; |
63 | | |
64 | | mozilla::ipc::IPCResult |
65 | | RecvSetAllowedTouchBehavior( |
66 | | const uint64_t& aInputBlockId, |
67 | | nsTArray<TouchBehaviorFlags>&& aValues) override; |
68 | | |
69 | | mozilla::ipc::IPCResult |
70 | | RecvStartScrollbarDrag( |
71 | | const ScrollableLayerGuid& aGuid, |
72 | | const AsyncDragMetrics& aDragMetrics) override; |
73 | | |
74 | | mozilla::ipc::IPCResult |
75 | | RecvStartAutoscroll( |
76 | | const ScrollableLayerGuid& aGuid, |
77 | | const ScreenPoint& aAnchorLocation) override; |
78 | | |
79 | | mozilla::ipc::IPCResult |
80 | | RecvStopAutoscroll(const ScrollableLayerGuid& aGuid) override; |
81 | | |
82 | | mozilla::ipc::IPCResult |
83 | | RecvSetLongTapEnabled(const bool& aTapGestureEnabled) override; |
84 | | |
85 | | void |
86 | 0 | ActorDestroy(ActorDestroyReason aWhy) override { } |
87 | | |
88 | | private: |
89 | | LayersId mLayersId; |
90 | | RefPtr<APZCTreeManager> mTreeManager; |
91 | | RefPtr<APZUpdater> mUpdater; |
92 | | }; |
93 | | |
94 | | } // namespace layers |
95 | | } // namespace mozilla |
96 | | |
97 | | #endif // mozilla_layers_APZCTreeManagerParent_h |