blob: ca43958d947ae5905cd0498adba8caba67437b43 [file] [log] [blame]
// Copyright 2017 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 MouseWheelEventManager_h
#define MouseWheelEventManager_h
#include "base/macros.h"
#include "platform/heap/Handle.h"
#include "platform/heap/Visitor.h"
#include "public/platform/WebInputEventResult.h"
namespace blink {
class Document;
class LocalFrame;
class LocalFrameView;
class Node;
class WebMouseWheelEvent;
class MouseWheelEventManager final
: public GarbageCollectedFinalized<MouseWheelEventManager> {
explicit MouseWheelEventManager(LocalFrame&);
void Trace(blink::Visitor*);
void Clear();
WebInputEventResult HandleWheelEvent(const WebMouseWheelEvent&);
void ElementRemoved(Node* target);
Node* FindTargetNode(const WebMouseWheelEvent&,
const Document*,
const LocalFrameView*);
const Member<LocalFrame> frame_;
Member<Node> wheel_target_;
} // namespace blink
#endif // MouseWheelEventManager_h