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

Unified Diff: blimp/net/input_message_generator.cc

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/engine/session/tab.cc ('k') | blimp/net/input_message_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/input_message_generator.cc
diff --git a/blimp/net/input_message_generator.cc b/blimp/net/input_message_generator.cc
index fb5864f8d7cb3ee932a31a1fa8d5b421a1e210a0..4131ea7c772abfbe6342f9b8e6450f6a76e3d789 100644
--- a/blimp/net/input_message_generator.cc
+++ b/blimp/net/input_message_generator.cc
@@ -19,7 +19,7 @@ void CommonWebGestureToProto(const blink::WebGestureEvent& event,
InputMessage::Type type,
InputMessage* proto) {
proto->set_type(type);
- proto->set_timestamp_seconds(event.timeStampSeconds);
+ proto->set_timestamp_seconds(event.timeStampSeconds());
GestureCommon* common = proto->mutable_gesture_common();
common->set_x(event.x);
@@ -152,7 +152,7 @@ std::unique_ptr<BlimpMessage> InputMessageGenerator::GenerateMessage(
InputMessage* details;
std::unique_ptr<BlimpMessage> message = CreateBlimpMessage(&details);
- switch (event.type) {
+ switch (event.type()) {
case blink::WebInputEvent::Type::GestureScrollBegin:
GestureScrollBeginToProto(event, details);
break;
@@ -215,7 +215,7 @@ std::unique_ptr<BlimpMessage> InputMessageGenerator::GenerateMessage(
case blink::WebInputEvent::Type::TouchEnd:
case blink::WebInputEvent::Type::TouchCancel:
case blink::WebInputEvent::Type::TouchScrollStarted:
- DVLOG(1) << "Unsupported WebInputEvent type " << event.type;
+ DVLOG(1) << "Unsupported WebInputEvent type " << event.type();
return nullptr;
}
« no previous file with comments | « blimp/engine/session/tab.cc ('k') | blimp/net/input_message_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698