|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
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/. */ |
|
5 |
|
6 #ifndef __mozilla_widget_DynamicToolbarController_h__ |
|
7 #define __mozilla_widget_DynamicToolbarController_h__ |
|
8 |
|
9 #include "mozilla/layers/GeckoContentController.h" |
|
10 |
|
11 namespace mozilla { |
|
12 namespace widget { |
|
13 |
|
14 class ParentProcessController : public mozilla::layers::GeckoContentController |
|
15 { |
|
16 typedef mozilla::layers::FrameMetrics FrameMetrics; |
|
17 typedef mozilla::layers::ScrollableLayerGuid ScrollableLayerGuid; |
|
18 |
|
19 public: |
|
20 virtual void RequestContentRepaint(const FrameMetrics& aFrameMetrics) MOZ_OVERRIDE; |
|
21 virtual void AcknowledgeScrollUpdate(const FrameMetrics::ViewID& aViewId, |
|
22 const uint32_t& aScrollGeneration) MOZ_OVERRIDE; |
|
23 virtual void PostDelayedTask(Task* aTask, int aDelayMs) MOZ_OVERRIDE; |
|
24 |
|
25 // No-ops |
|
26 virtual void HandleDoubleTap(const CSSPoint& aPoint, |
|
27 int32_t aModifiers, |
|
28 const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {} |
|
29 virtual void HandleSingleTap(const CSSPoint& aPoint, |
|
30 int32_t aModifiers, |
|
31 const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {} |
|
32 virtual void HandleLongTap(const CSSPoint& aPoint, |
|
33 int32_t aModifiers, |
|
34 const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {} |
|
35 virtual void HandleLongTapUp(const CSSPoint& aPoint, |
|
36 int32_t aModifiers, |
|
37 const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {} |
|
38 |
|
39 virtual void SendAsyncScrollDOMEvent(bool aIsRoot, |
|
40 const CSSRect &aContentRect, |
|
41 const CSSSize &aScrollableSize) MOZ_OVERRIDE {} |
|
42 }; |
|
43 |
|
44 } |
|
45 } |
|
46 |
|
47 #endif /*__mozilla_widget_DynamicToolbarController_h__ */ |