| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 library surface_id_mojom; | 5 library surface_id_mojom; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
| 10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| 11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 11 | 12 |
| 12 | 13 |
| 13 | 14 |
| 15 |
| 14 class SurfaceId extends bindings.Struct { | 16 class SurfaceId extends bindings.Struct { |
| 15 static const List<bindings.StructDataHeader> kVersions = const [ | 17 static const List<bindings.StructDataHeader> kVersions = const [ |
| 16 const bindings.StructDataHeader(16, 0) | 18 const bindings.StructDataHeader(16, 0) |
| 17 ]; | 19 ]; |
| 18 int local = 0; | 20 int local = 0; |
| 19 int idNamespace = 0; | 21 int idNamespace = 0; |
| 20 | 22 |
| 21 SurfaceId() : super(kVersions.last.size); | 23 SurfaceId() : super(kVersions.last.size); |
| 22 | 24 |
| 23 static SurfaceId deserialize(bindings.Message message) { | 25 static SurfaceId deserialize(bindings.Message message) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 82 |
| 81 Map toJson() { | 83 Map toJson() { |
| 82 Map map = new Map(); | 84 Map map = new Map(); |
| 83 map["local"] = local; | 85 map["local"] = local; |
| 84 map["idNamespace"] = idNamespace; | 86 map["idNamespace"] = idNamespace; |
| 85 return map; | 87 return map; |
| 86 } | 88 } |
| 87 } | 89 } |
| 88 | 90 |
| 89 | 91 |
| 92 |
| 93 |
| 94 |
| 95 |
| OLD | NEW |