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

Unified Diff: remoting/client/simple_client.cc

Issue 2963003: Changing UpdateStreamPacket protobuf definition for chromoting (Closed)
Patch Set: fixed comments Created 10 years, 5 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 | « remoting/client/decoder_verbatim_unittest.cc ('k') | remoting/client/x11_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/simple_client.cc
diff --git a/remoting/client/simple_client.cc b/remoting/client/simple_client.cc
index 98074bf46c64bdcc9eda75826ebf71ab2555fad4..d1dd6e2478af3e4ff7bf0f54a532340217df7333 100644
--- a/remoting/client/simple_client.cc
+++ b/remoting/client/simple_client.cc
@@ -86,9 +86,13 @@ class SimpleHostEventCallback : public HostConnection::HostEventCallback {
void HandleUpdateStreamPacketMessage(HostMessage* host_msg) {
const UpdateStreamPacketMessage& msg = host_msg->update_stream_packet();
- std::cout << "UpdateStreamPacket (" << msg.header().x()
- << ", " << msg.header().y() << ") ["
- << msg.header().width() << " x " << msg.header().height() << "]"
+ if (!msg.has_begin_rect())
+ return;
+
+ std::cout << "UpdateStreamPacket (" << msg.begin_rect().x()
+ << ", " << msg.begin_rect().y() << ") ["
+ << msg.begin_rect().width() << " x "
+ << msg.begin_rect().height() << "]"
<< std::endl;
}
« no previous file with comments | « remoting/client/decoder_verbatim_unittest.cc ('k') | remoting/client/x11_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698