diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-13 16:23:34 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-14 10:37:21 +0000 |
commit | 38a9a29f4f9436cace7f0e7abf9c586057df8a4e (patch) | |
tree | c4e8c458dc595bc0ddb435708fa2229edfd00bd4 /chromium/third_party/blink/renderer/core/events/overscroll_event.h | |
parent | e684a3455bcc29a6e3e66a004e352dea4e1141e7 (diff) | |
download | qtwebengine-chromium-38a9a29f4f9436cace7f0e7abf9c586057df8a4e.tar.gz |
BASELINE: Update Chromium to 73.0.3683.37
Change-Id: I08c9af2948b645f671e5d933aca1f7a90ea372f2
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/events/overscroll_event.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/events/overscroll_event.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/events/overscroll_event.h b/chromium/third_party/blink/renderer/core/events/overscroll_event.h new file mode 100644 index 00000000000..ab7cffe0ab6 --- /dev/null +++ b/chromium/third_party/blink/renderer/core/events/overscroll_event.h @@ -0,0 +1,42 @@ +// 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_CORE_EVENTS_OVERSCROLL_EVENT_H_ +#define THIRD_PARTY_BLINK_RENDERER_CORE_EVENTS_OVERSCROLL_EVENT_H_ + +#include "third_party/blink/renderer/core/dom/events/event.h" +#include "third_party/blink/renderer/core/events/overscroll_event_init.h" + +namespace blink { + +class OverscrollEvent final : public Event { + DEFINE_WRAPPERTYPEINFO(); + + public: + static OverscrollEvent* Create(const AtomicString& type, + double delta_x, + double delta_y) { + return MakeGarbageCollected<OverscrollEvent>(type, delta_x, delta_y); + } + static OverscrollEvent* Create(const AtomicString& type, + const OverscrollEventInit* initializer) { + return MakeGarbageCollected<OverscrollEvent>(type, initializer); + } + + OverscrollEvent(const AtomicString&, double delta_x, double delta_y); + OverscrollEvent(const AtomicString&, const OverscrollEventInit*); + + double deltaX() const { return delta_x_; } + double deltaY() const { return delta_y_; } + + void Trace(blink::Visitor*) override; + + private: + double delta_x_ = 0; + double delta_y_ = 0; +}; + +} // namespace blink + +#endif // THIRD_PARTY_BLINK_RENDERER_CORE_EVENTS_OVERSCROLL_EVENT_H_ |