| Index: blimp/common/input/input_event_conversions.h
|
| diff --git a/blimp/common/input/input_event_conversions.h b/blimp/common/input/input_event_conversions.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d58b96e26151829a794a110479460bd270c42879
|
| --- /dev/null
|
| +++ b/blimp/common/input/input_event_conversions.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2015 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 BLIMP_COMMON_INPUT_INPUT_EVENT_CONVERSIONS_H_
|
| +#define BLIMP_COMMON_INPUT_INPUT_EVENT_CONVERSIONS_H_
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "blimp/common/blimp_common_export.h"
|
| +
|
| +namespace blink {
|
| +class WebInputEvent;
|
| +}
|
| +
|
| +namespace blimp {
|
| +
|
| +class InputMessage;
|
| +
|
| +// Convert a blink::WebInputEvent to an InputMessage proto.
|
| +BLIMP_COMMON_EXPORT void WebInputEventToProto(const blink::WebInputEvent& event,
|
| + InputMessage* proto);
|
| +
|
| +// Convert an InputMessage proto to a blink::WebInputEvent. |nullptr| is
|
| +// returned if the event could not be deserialized.
|
| +BLIMP_COMMON_EXPORT scoped_ptr<blink::WebInputEvent> ProtoToWebInputEvent(
|
| + const InputMessage& proto);
|
| +
|
| +} // namespace blimp
|
| +
|
| +#endif // BLIMP_COMMON_INPUT_INPUT_EVENT_CONVERSIONS_H_
|
|
|