blob: c7c8a8fdefc13091c7a28a1f632aa96884932560 [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 CurrentInputEvent_h
#define CurrentInputEvent_h
namespace blink {
class WebFrameWidgetImpl;
class WebInputEvent;
class WebViewImpl;
class CurrentInputEvent {
// Gets the "current" input event - event that is currently being processed by
// either blink::WebViewImpl::HandleInputEventInternal or by
// blink::WebFrameWidgetImpl::HandleInputEventInternal
static const WebInputEvent* Get() { return current_input_event_; }
friend class WebViewImpl;
friend class WebFrameWidgetImpl;
static const WebInputEvent* current_input_event_;
} // namespace blink