| 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 <stdint.h> |
| 8 |
| 7 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 8 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 10 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| 9 | 11 |
| 10 namespace IPC { | 12 namespace IPC { |
| 11 | 13 |
| 12 // static | 14 // static |
| 13 void ParamTraits<webrtc::DesktopVector>::Write(Message* m, | 15 void ParamTraits<webrtc::DesktopVector>::Write(Message* m, |
| 14 const webrtc::DesktopVector& p) { | 16 const webrtc::DesktopVector& p) { |
| 15 m->WriteInt(p.x()); | 17 m->WriteInt(p.x()); |
| 16 m->WriteInt(p.y()); | 18 m->WriteInt(p.y()); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 void ParamTraits<remoting::ScreenResolution>::Log( | 184 void ParamTraits<remoting::ScreenResolution>::Log( |
| 183 const remoting::ScreenResolution& p, | 185 const remoting::ScreenResolution& p, |
| 184 std::string* l) { | 186 std::string* l) { |
| 185 l->append(base::StringPrintf("webrtc::ScreenResolution(%d, %d, %d, %d)", | 187 l->append(base::StringPrintf("webrtc::ScreenResolution(%d, %d, %d, %d)", |
| 186 p.dimensions().width(), p.dimensions().height(), | 188 p.dimensions().width(), p.dimensions().height(), |
| 187 p.dpi().x(), p.dpi().y())); | 189 p.dpi().x(), p.dpi().y())); |
| 188 } | 190 } |
| 189 | 191 |
| 190 } // namespace IPC | 192 } // namespace IPC |
| 191 | 193 |
| OLD | NEW |