Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 BLIMP_COMMON_INPUT_INPUT_EVENT_CONVERSIONS_H_ | |
| 6 #define BLIMP_COMMON_INPUT_INPUT_EVENT_CONVERSIONS_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "blimp/common/blimp_common_export.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 class WebInputEvent; | |
| 13 } | |
| 14 | |
| 15 namespace blimp { | |
| 16 | |
| 17 class InputMessage; | |
| 18 | |
| 19 // Convert a blink::WebInputEvent to an InputMessage proto. | |
| 20 BLIMP_COMMON_EXPORT void WebInputEventToProto(const blink::WebInputEvent& event, | |
| 21 InputMessage* proto); | |
|
Wez
2015/11/16 21:25:47
In general there won't be a 1:1 correspondence bet
David Trainor- moved to gerrit
2015/11/17 01:05:00
Ah good idea.
| |
| 22 | |
| 23 // Convert an InputMessage proto to a blink::WebInputEvent. |nullptr| is | |
| 24 // returned if the event could not be deserialized. | |
| 25 BLIMP_COMMON_EXPORT scoped_ptr<blink::WebInputEvent> ProtoToWebInputEvent( | |
| 26 const InputMessage& proto); | |
| 27 | |
| 28 } // namespace blimp | |
| 29 | |
| 30 #endif // BLIMP_COMMON_INPUT_INPUT_EVENT_CONVERSIONS_H_ | |
| OLD | NEW |