| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/media/framework_mojo/mojo_formatting.h" | 5 #include "services/media/framework_mojo/mojo_formatting.h" |
| 6 | 6 |
| 7 namespace mojo { | 7 namespace mojo { |
| 8 namespace media { | 8 namespace media { |
| 9 | 9 |
| 10 template <typename T> | 10 template <typename T> |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 if (!value) { | 252 if (!value) { |
| 253 return os << "<nullptr>" << std::endl; | 253 return os << "<nullptr>" << std::endl; |
| 254 } else { | 254 } else { |
| 255 os << std::endl; | 255 os << std::endl; |
| 256 } | 256 } |
| 257 | 257 |
| 258 os << indent; | 258 os << indent; |
| 259 return os << outdent; | 259 return os << outdent; |
| 260 } | 260 } |
| 261 | 261 |
| 262 std::ostream& operator<<(std::ostream& os, const TimelineQuadPtr& value) { | |
| 263 if (!value) { | |
| 264 return os << "<nullptr>" << std::endl; | |
| 265 } else { | |
| 266 os << std::endl; | |
| 267 } | |
| 268 | |
| 269 os << indent; | |
| 270 os << begl << "int64 reference_offset: " << value->reference_offset | |
| 271 << std::endl; | |
| 272 os << begl << "int64 target_offset: " << value->target_offset << std::endl; | |
| 273 os << begl << "int32 reference_delta: " << value->reference_delta | |
| 274 << std::endl; | |
| 275 os << begl << "uint32 target_delta: " << value->target_delta << std::endl; | |
| 276 return os << outdent; | |
| 277 } | |
| 278 | |
| 279 std::ostream& operator<<(std::ostream& os, const TimelineTransformPtr& value) { | 262 std::ostream& operator<<(std::ostream& os, const TimelineTransformPtr& value) { |
| 280 if (!value) { | 263 if (!value) { |
| 281 return os << "<nullptr>" << std::endl; | 264 return os << "<nullptr>" << std::endl; |
| 282 } else { | 265 } else { |
| 283 os << std::endl; | 266 os << std::endl; |
| 284 } | 267 } |
| 285 | 268 |
| 286 os << indent; | 269 os << indent; |
| 287 os << begl << "TimelineQuad quad: " << value->quad; | 270 os << begl << "int64 reference_time: " << value->reference_time |
| 288 os << begl << "uint32 reference_timeline_id: " << value->reference_timeline_id | |
| 289 << std::endl; | 271 << std::endl; |
| 290 os << begl << "uint32 target_timeline_id: " << value->target_timeline_id | 272 os << begl << "int64 subject_time: " << value->subject_time << std::endl; |
| 273 os << begl << "uint32 reference_delta: " << value->reference_delta |
| 291 << std::endl; | 274 << std::endl; |
| 275 os << begl << "uint32 subject_delta: " << value->subject_delta << std::endl; |
| 292 return os << outdent; | 276 return os << outdent; |
| 293 } | 277 } |
| 294 | 278 |
| 295 std::ostream& operator<<(std::ostream& os, const HttpHeaderPtr& value) { | 279 std::ostream& operator<<(std::ostream& os, const HttpHeaderPtr& value) { |
| 296 if (!value) { | 280 if (!value) { |
| 297 return os << "<nullptr>" << std::endl; | 281 return os << "<nullptr>" << std::endl; |
| 298 } else { | 282 } else { |
| 299 return os << value->name << ":" << value->value << std::endl; | 283 return os << value->name << ":" << value->value << std::endl; |
| 300 } | 284 } |
| 301 } | 285 } |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 case MediaState::PLAYING: | 395 case MediaState::PLAYING: |
| 412 return "PLAYING"; | 396 return "PLAYING"; |
| 413 case MediaState::ENDED: | 397 case MediaState::ENDED: |
| 414 return "ENDED"; | 398 return "ENDED"; |
| 415 } | 399 } |
| 416 return "UNKNOWN MEDIA STATE"; | 400 return "UNKNOWN MEDIA STATE"; |
| 417 } | 401 } |
| 418 | 402 |
| 419 } // namespace media | 403 } // namespace media |
| 420 } // namespace mojo | 404 } // namespace mojo |
| OLD | NEW |