Bug 913114 - Fix ref counting in winrt widget's GeckoContentController. r=bbondy
[gecko.git] / widget / windows / winrt / APZController.h
blob8542b2fd94f18a5651204aaf2868d253676b8ff0
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #pragma once
7 #include "mozwrlbase.h"
9 #include "mozilla/layers/GeckoContentController.h"
10 #include "FrameMetrics.h"
11 #include "Units.h"
13 namespace mozilla {
14 namespace widget {
15 namespace winrt {
17 class APZController : public mozilla::layers::GeckoContentController
19 typedef mozilla::layers::FrameMetrics FrameMetrics;
21 public:
22 virtual void RequestContentRepaint(const FrameMetrics& aFrameMetrics);
23 virtual void HandleDoubleTap(const mozilla::CSSIntPoint& aPoint);
24 virtual void HandleSingleTap(const mozilla::CSSIntPoint& aPoint);
25 virtual void HandleLongTap(const mozilla::CSSIntPoint& aPoint);
26 virtual void SendAsyncScrollDOMEvent(FrameMetrics::ViewID aScrollId, const mozilla::CSSRect &aContentRect, const mozilla::CSSSize &aScrollableSize);
27 virtual void PostDelayedTask(Task* aTask, int aDelayMs);
28 virtual void HandlePanBegin();
29 virtual void HandlePanEnd();
32 } } }