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 #include "base/memory/scoped_vector.h" |
| 12 #include "content/common/input/input_event_disposition.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 class EventPacket; |
| 17 |
| 18 class InputQueueClient { |
| 19 public: |
| 20 virtual ~InputQueueClient() {} |
| 21 |
| 22 // Used by the flush process for sending batched events to the desired target. |
| 23 virtual void Deliver(const EventPacket& packet) = 0; |
| 24 |
| 25 // Signalled when the InputQueue has received and dispatched |
| 26 // event ACK's from the previous flush. |
| 27 virtual void DidFinishFlush() = 0; |
| 28 |
| 29 // Signalled when the InputQueue receives an input event. |
| 30 virtual void SetNeedsFlush() = 0; |
| 31 }; |
| 32 |
| 33 } // namespace content |
| 34 |
| 35 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_QUEUE_CLIENT_H_ |
OLD | NEW |