Files
palemoon27/gfx/layers/apz/src/APZUtils.h
T
2024-07-23 16:31:40 +08:00

44 lines
1.0 KiB
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=8 et tw=80 : */
/* 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_layers_APZUtils_h
#define mozilla_layers_APZUtils_h
#include <stdint.h> // for uint32_t
#include <mozilla/TypedEnum.h>
namespace mozilla {
namespace layers {
enum HitTestResult {
HitNothing,
HitLayer,
HitDispatchToContentRegion,
};
enum CancelAnimationFlags : uint32_t {
Default = 0, /* Cancel all animations */
ExcludeOverscroll = 1 /* Don't clear overscroll */
};
MOZ_BEGIN_ENUM_CLASS(ScrollSource)
// scrollTo() or something similar.
DOM,
// Touch-screen or trackpad with gesture support.
Touch,
// Mouse wheel.
Wheel
MOZ_END_ENUM_CLASS(ScrollSource)
typedef uint32_t TouchBehaviorFlags;
}
}
#endif // mozilla_layers_APZUtils_h