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_PUBLIC_COMMON_ANDROID_SYNCHRONOUS_INPUT_EVENT_HANDLER_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_ANDROID_SYNCHRONOUS_INPUT_EVENT_HANDLER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" |
| 10 #include "content/public/common/input_event_ack_state.h" |
| 11 |
| 12 namespace WebKit { |
| 13 class WebInputEvent; |
| 14 } |
| 15 |
| 16 namespace content { |
| 17 |
| 18 // Interface for embedders that wish to expose synchronous, in-process input |
| 19 // even handling operations. Only meaningful when the |
| 20 // kEnableSynchronousRendererCompositor flag is specified. |
| 21 class CONTENT_EXPORT SynchronousInputEventHandler { |
| 22 public: |
| 23 virtual ~SynchronousInputEventHandler() {} |
| 24 |
| 25 virtual InputEventAckState HandleInputEvent( |
| 26 int routing_id, |
| 27 const WebKit::WebInputEvent* input_event) = 0; |
| 28 |
| 29 protected: |
| 30 SynchronousInputEventHandler() {} |
| 31 |
| 32 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(SynchronousInputEventHandler); |
| 34 }; |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_PUBLIC_COMMON_ANDROID_SYNCHRONOUS_INPUT_EVENT_HANDLER_H_ |
OLD | NEW |