| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/chromoting_param_traits.h" | 5 #include "remoting/host/chromoting_param_traits.h" |
| 6 | 6 |
| 7 #include "base/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 | 8 |
| 9 namespace IPC { | 9 namespace IPC { |
| 10 | 10 |
| 11 // static | 11 // static |
| 12 void ParamTraits<webrtc::DesktopVector>::Write(Message* m, | 12 void ParamTraits<webrtc::DesktopVector>::Write(Message* m, |
| 13 const webrtc::DesktopVector& p) { | 13 const webrtc::DesktopVector& p) { |
| 14 m->WriteInt(p.x()); | 14 m->WriteInt(p.x()); |
| 15 m->WriteInt(p.y()); | 15 m->WriteInt(p.y()); |
| 16 } | 16 } |
| 17 | 17 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void ParamTraits<remoting::ScreenResolution>::Log( | 118 void ParamTraits<remoting::ScreenResolution>::Log( |
| 119 const remoting::ScreenResolution& p, | 119 const remoting::ScreenResolution& p, |
| 120 std::string* l) { | 120 std::string* l) { |
| 121 l->append(base::StringPrintf("webrtc::ScreenResolution(%d, %d, %d, %d)", | 121 l->append(base::StringPrintf("webrtc::ScreenResolution(%d, %d, %d, %d)", |
| 122 p.dimensions().width(), p.dimensions().height(), | 122 p.dimensions().width(), p.dimensions().height(), |
| 123 p.dpi().x(), p.dpi().y())); | 123 p.dpi().x(), p.dpi().y())); |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace IPC | 126 } // namespace IPC |
| 127 | 127 |
| OLD | NEW |