diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-24 12:15:48 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 13:30:04 +0000 |
commit | b014812705fc80bff0a5c120dfcef88f349816dc (patch) | |
tree | 25a2e2d9fa285f1add86aa333389a839f81a39ae /chromium/third_party/blink/renderer/platform/graphics/paint/hit_test_data.h | |
parent | 9f4560b1027ae06fdb497023cdcaf91b8511fa74 (diff) | |
download | qtwebengine-chromium-b014812705fc80bff0a5c120dfcef88f349816dc.tar.gz |
BASELINE: Update Chromium to 68.0.3440.125
Change-Id: I23f19369e01f688e496f5bf179abb521ad73874f
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/graphics/paint/hit_test_data.h')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/graphics/paint/hit_test_data.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/platform/graphics/paint/hit_test_data.h b/chromium/third_party/blink/renderer/platform/graphics/paint/hit_test_data.h new file mode 100644 index 00000000000..48d154d8fca --- /dev/null +++ b/chromium/third_party/blink/renderer/platform/graphics/paint/hit_test_data.h @@ -0,0 +1,41 @@ +// 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_PAINT_HIT_TEST_DATA_H_ +#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_PAINT_HIT_TEST_DATA_H_ + +#include "third_party/blink/renderer/platform/geometry/float_rect.h" +#include "third_party/blink/renderer/platform/geometry/region.h" +#include "third_party/blink/renderer/platform/graphics/touch_action_rect.h" +#include "third_party/blink/renderer/platform/platform_export.h" + +namespace blink { + +struct PLATFORM_EXPORT HitTestData { + FloatRect border_rect; + TouchActionRect touch_action_rect = + TouchActionRect(LayoutRect(), cc::kTouchActionNone); + Region wheel_event_handler_region; + Region non_fast_scrollable_region; + + HitTestData() = default; + HitTestData(const HitTestData& other) + : border_rect(other.border_rect), + touch_action_rect(other.touch_action_rect), + wheel_event_handler_region(other.wheel_event_handler_region), + non_fast_scrollable_region(other.non_fast_scrollable_region) {} + + bool operator==(const HitTestData& rhs) const { + return border_rect == rhs.border_rect && + touch_action_rect == rhs.touch_action_rect && + wheel_event_handler_region == rhs.wheel_event_handler_region && + non_fast_scrollable_region == rhs.non_fast_scrollable_region; + } + + bool operator!=(const HitTestData& rhs) const { return !(*this == rhs); } +}; + +} // namespace blink + +#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_PAINT_HIT_TEST_DATA_H_ |