Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: blimp/common/input/input_event_conversions.h

Issue 1426993008: Serialize a subset of WebInputEvents to protobufs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « blimp/common/DEPS ('k') | blimp/common/input/input_event_conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « blimp/common/DEPS ('k') | blimp/common/input/input_event_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698