| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_QUEUE_CLIENT_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_QUEUE_CLIENT_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class EventPacket; |
| 15 |
| 16 class InputQueueClient { |
| 17 public: |
| 18 virtual ~InputQueueClient() {} |
| 19 |
| 20 // Used by the flush process for sending batched events to the desired target. |
| 21 virtual void Deliver(const EventPacket& packet) = 0; |
| 22 |
| 23 // Signalled when the InputQueue has received and dispatched |
| 24 // event ACK's from the previous flush. |
| 25 virtual void DidFlush() = 0; |
| 26 |
| 27 // Signalled when the InputQueue receives an input event. |
| 28 virtual void SetNeedsFlush() = 0; |
| 29 |
| 30 // Dispatch an ack'ed event to the client. Returned events will be inserted |
| 31 // into the current flush stream. |
| 32 virtual std::vector<InputEvent> OnInputEventAck( |
| 33 const InputEvent& acked_event) = 0; |
| 34 }; |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_QUEUE_CLIENT_H_ |
| OLD | NEW |