2013-09-16 14:45:31 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef __mozilla_widget_DynamicToolbarController_h__
|
|
|
|
#define __mozilla_widget_DynamicToolbarController_h__
|
|
|
|
|
|
|
|
#include "mozilla/layers/GeckoContentController.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace widget {
|
|
|
|
|
|
|
|
class ParentProcessController : public mozilla::layers::GeckoContentController
|
|
|
|
{
|
|
|
|
typedef mozilla::layers::FrameMetrics FrameMetrics;
|
2014-02-07 09:13:50 -08:00
|
|
|
typedef mozilla::layers::ScrollableLayerGuid ScrollableLayerGuid;
|
2013-09-16 14:45:31 -07:00
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void RequestContentRepaint(const FrameMetrics& aFrameMetrics) MOZ_OVERRIDE;
|
2014-02-05 14:43:20 -08:00
|
|
|
virtual void AcknowledgeScrollUpdate(const FrameMetrics::ViewID& aViewId,
|
|
|
|
const uint32_t& aScrollGeneration) MOZ_OVERRIDE;
|
2013-09-16 14:45:31 -07:00
|
|
|
virtual void PostDelayedTask(Task* aTask, int aDelayMs) MOZ_OVERRIDE;
|
|
|
|
|
|
|
|
// No-ops
|
2014-03-12 12:27:45 -07:00
|
|
|
virtual void HandleDoubleTap(const CSSPoint& aPoint,
|
2014-02-07 09:13:50 -08:00
|
|
|
int32_t aModifiers,
|
|
|
|
const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {}
|
2014-03-12 12:27:45 -07:00
|
|
|
virtual void HandleSingleTap(const CSSPoint& aPoint,
|
2014-02-07 09:13:50 -08:00
|
|
|
int32_t aModifiers,
|
|
|
|
const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {}
|
2014-03-12 12:27:45 -07:00
|
|
|
virtual void HandleLongTap(const CSSPoint& aPoint,
|
2014-02-07 09:13:50 -08:00
|
|
|
int32_t aModifiers,
|
|
|
|
const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {}
|
2014-03-12 12:27:45 -07:00
|
|
|
virtual void HandleLongTapUp(const CSSPoint& aPoint,
|
2014-02-07 09:13:50 -08:00
|
|
|
int32_t aModifiers,
|
|
|
|
const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {}
|
2013-12-11 16:39:06 -08:00
|
|
|
|
2013-09-16 14:45:31 -07:00
|
|
|
virtual void SendAsyncScrollDOMEvent(bool aIsRoot,
|
|
|
|
const CSSRect &aContentRect,
|
|
|
|
const CSSSize &aScrollableSize) MOZ_OVERRIDE {}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /*__mozilla_widget_DynamicToolbarController_h__ */
|