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 "chrome/browser/media/router/mojo/media_router_struct_traits.h" | 5 #include "components/media_router/mojo/media_router_struct_traits.h" |
6 | 6 |
7 #include "chrome/browser/media/router/media_source.h" | 7 #include "components/media_router/media_source.h" |
8 #include "net/interfaces/ip_address_struct_traits.h" | 8 #include "net/interfaces/ip_address_struct_traits.h" |
9 #include "url/mojo/url_gurl_struct_traits.h" | 9 #include "url/mojo/url_gurl_struct_traits.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 | 12 |
13 // static | 13 // static |
14 bool StructTraits<media_router::mojom::IssueDataView, media_router::IssueInfo>:: | 14 bool StructTraits<media_router::mojom::IssueDataView, media_router::IssueInfo>:: |
15 Read(media_router::mojom::IssueDataView data, | 15 Read(media_router::mojom::IssueDataView data, |
16 media_router::IssueInfo* out) { | 16 media_router::IssueInfo* out) { |
17 if (!data.ReadTitle(&out->title)) | 17 if (!data.ReadTitle(&out->title)) |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 out->set_local(data.is_local()); | 205 out->set_local(data.is_local()); |
206 out->set_for_display(data.for_display()); | 206 out->set_for_display(data.for_display()); |
207 out->set_incognito(data.is_incognito()); | 207 out->set_incognito(data.is_incognito()); |
208 out->set_offscreen_presentation(data.is_offscreen_presentation()); | 208 out->set_offscreen_presentation(data.is_offscreen_presentation()); |
209 | 209 |
210 return true; | 210 return true; |
211 } | 211 } |
212 | 212 |
213 } // namespace mojo | 213 } // namespace mojo |
OLD | NEW |