| Index: content/renderer/input/non_blocking_event_queue.h
|
| diff --git a/content/renderer/input/non_blocking_event_queue.h b/content/renderer/input/non_blocking_event_queue.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8af865e7869db0494a84b5a5dd6bf28e58fa82ed
|
| --- /dev/null
|
| +++ b/content/renderer/input/non_blocking_event_queue.h
|
| @@ -0,0 +1,46 @@
|
| +// Copyright 2016 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 CONTENT_RENDERER_INPUT_NON_BLOCKING_EVENT_QUEUE_H_
|
| +#define CONTENT_RENDERER_INPUT_NON_BLOCKING_EVENT_QUEUE_H_
|
| +
|
| +#include <deque>
|
| +#include "content/common/content_export.h"
|
| +#include "content/common/input/event_with_latency_info.h"
|
| +#include "content/common/input/web_input_event_queue.h"
|
| +#include "third_party/WebKit/public/web/WebInputEvent.h"
|
| +#include "ui/events/latency_info.h"
|
| +
|
| +namespace content {
|
| +
|
| +class NonBlockingEventQueueClient {
|
| + public:
|
| + virtual void SendNonBlockingEvent(int routing_id,
|
| + const blink::WebInputEvent* event,
|
| + const ui::LatencyInfo& latency);
|
| +};
|
| +
|
| +class CONTENT_EXPORT NonBlockingEventQueue {
|
| + public:
|
| + NonBlockingEventQueue(int routing_id, NonBlockingEventQueueClient* client);
|
| + ~NonBlockingEventQueue();
|
| +
|
| + void HandleEvent(const blink::WebInputEvent* event,
|
| + const ui::LatencyInfo& latency);
|
| +
|
| + void EventHandled(blink::WebInputEvent::Type type);
|
| +
|
| + private:
|
| + friend class NonBlockingEventQueueTest;
|
| + int routing_id_;
|
| + NonBlockingEventQueueClient* client_;
|
| + WebInputEventQueue<MouseWheelEventWithLatencyInfo> wheel_events_;
|
| + WebInputEventQueue<TouchEventWithLatencyInfo> touch_events_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(NonBlockingEventQueue);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_INPUT_NON_BLOCKING_EVENT_QUEUE_H_
|
|
|