| Index: content/public/renderer/android/synchronous_input_event_handler.h
|
| diff --git a/content/public/renderer/android/synchronous_input_event_handler.h b/content/public/renderer/android/synchronous_input_event_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d3e9cb585427345937a9221b3f8fb9519a398819
|
| --- /dev/null
|
| +++ b/content/public/renderer/android/synchronous_input_event_handler.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright (c) 2013 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_PUBLIC_COMMON_ANDROID_SYNCHRONOUS_INPUT_EVENT_HANDLER_H_
|
| +#define CONTENT_PUBLIC_COMMON_ANDROID_SYNCHRONOUS_INPUT_EVENT_HANDLER_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "content/common/content_export.h"
|
| +#include "content/public/common/input_event_ack_state.h"
|
| +
|
| +namespace WebKit {
|
| +class WebInputEvent;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +// Interface for embedders that wish to expose synchronous, in-process input
|
| +// even handling operations. Only meaningful when the
|
| +// kEnableSynchronousRendererCompositor flag is specified.
|
| +class CONTENT_EXPORT SynchronousInputEventHandler {
|
| + public:
|
| + virtual ~SynchronousInputEventHandler() {}
|
| +
|
| + virtual InputEventAckState HandleInputEvent(
|
| + int routing_id,
|
| + const WebKit::WebInputEvent* input_event) = 0;
|
| +
|
| + protected:
|
| + SynchronousInputEventHandler() {}
|
| +
|
| +private:
|
| + DISALLOW_COPY_AND_ASSIGN(SynchronousInputEventHandler);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_PUBLIC_COMMON_ANDROID_SYNCHRONOUS_INPUT_EVENT_HANDLER_H_
|
|
|