blob: 578b2bbbe10b6aa3a1e8e6d6a65992adbfce3ee1 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_TOUCH_ACTION_RECT_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_TOUCH_ACTION_RECT_H_
#include "third_party/blink/renderer/platform/geometry/int_rect.h"
#include "third_party/blink/renderer/platform/graphics/touch_action.h"
#include "third_party/blink/renderer/platform/platform_export.h"
namespace blink {
struct PLATFORM_EXPORT TouchActionRect {
IntRect rect;
TouchAction allowed_touch_action = TouchAction::kNone;
bool operator==(const TouchActionRect& rhs) const {
return rect == rhs.rect && allowed_touch_action == rhs.allowed_touch_action;
}
bool operator!=(const TouchActionRect& rhs) const { return !(*this == rhs); }
String ToString() const;
};
PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const TouchActionRect&);
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_TOUCH_ACTION_RECT_H_