chromium/cc/input/touch_action.h

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CC_INPUT_TOUCH_ACTION_H_
#define CC_INPUT_TOUCH_ACTION_H_

#include <cstdlib>

#include "base/notreached.h"

namespace cc {

// The current touch action specifies what accelerated browser operations
// (panning and zooming) are currently permitted via touch input.
// See http://www.w3.org/TR/pointerevents/#the-touch-action-css-property.
// This is intended to be the single canonical definition of the enum, it's used
// elsewhere in both Blink and content since touch action logic spans those
// subsystems.
const size_t kTouchActionBits =;

enum class TouchAction {};

inline TouchAction operator|(TouchAction a, TouchAction b) {}

inline TouchAction& operator|=(TouchAction& a, TouchAction b) {}

inline TouchAction operator&(TouchAction a, TouchAction b) {}

inline TouchAction& operator&=(TouchAction& a, TouchAction b) {}

inline TouchAction operator~(TouchAction touch_action) {}

inline const char* TouchActionToString(TouchAction touch_action) {}

}  // namespace cc

#endif  // CC_INPUT_TOUCH_ACTION_H_