1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/gonk/ParentProcessController.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef __mozilla_widget_DynamicToolbarController_h__ 1.10 +#define __mozilla_widget_DynamicToolbarController_h__ 1.11 + 1.12 +#include "mozilla/layers/GeckoContentController.h" 1.13 + 1.14 +namespace mozilla { 1.15 +namespace widget { 1.16 + 1.17 +class ParentProcessController : public mozilla::layers::GeckoContentController 1.18 +{ 1.19 + typedef mozilla::layers::FrameMetrics FrameMetrics; 1.20 + typedef mozilla::layers::ScrollableLayerGuid ScrollableLayerGuid; 1.21 + 1.22 +public: 1.23 + virtual void RequestContentRepaint(const FrameMetrics& aFrameMetrics) MOZ_OVERRIDE; 1.24 + virtual void AcknowledgeScrollUpdate(const FrameMetrics::ViewID& aViewId, 1.25 + const uint32_t& aScrollGeneration) MOZ_OVERRIDE; 1.26 + virtual void PostDelayedTask(Task* aTask, int aDelayMs) MOZ_OVERRIDE; 1.27 + 1.28 + // No-ops 1.29 + virtual void HandleDoubleTap(const CSSPoint& aPoint, 1.30 + int32_t aModifiers, 1.31 + const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {} 1.32 + virtual void HandleSingleTap(const CSSPoint& aPoint, 1.33 + int32_t aModifiers, 1.34 + const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {} 1.35 + virtual void HandleLongTap(const CSSPoint& aPoint, 1.36 + int32_t aModifiers, 1.37 + const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {} 1.38 + virtual void HandleLongTapUp(const CSSPoint& aPoint, 1.39 + int32_t aModifiers, 1.40 + const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {} 1.41 + 1.42 + virtual void SendAsyncScrollDOMEvent(bool aIsRoot, 1.43 + const CSSRect &aContentRect, 1.44 + const CSSSize &aScrollableSize) MOZ_OVERRIDE {} 1.45 +}; 1.46 + 1.47 +} 1.48 +} 1.49 + 1.50 +#endif /*__mozilla_widget_DynamicToolbarController_h__ */