| 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 navigation_mojom; | 5 library navigation_mojom; |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'package:mojo/bindings.dart' as bindings; | 7 import 'package:mojo/bindings.dart' as bindings; |
| 8 import 'package:mojo/core.dart' as core; | 8 import 'package:mojo/core.dart' as core; |
| 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; | 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
| 10 import 'package:mojo/mojo/url_request.mojom.dart' as url_request_mojom; | 10 import 'package:mojo/mojo/url_request.mojom.dart' as url_request_mojom; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 default: | 63 default: |
| 64 return null; | 64 return null; |
| 65 } | 65 } |
| 66 } | 66 } |
| 67 | 67 |
| 68 int toJson() => mojoEnumValue; | 68 int toJson() => mojoEnumValue; |
| 69 } | 69 } |
| 70 | 70 |
| 71 | 71 |
| 72 | 72 |
| 73 | |
| 74 | |
| 75 class _NavigatorHostRequestNavigateParams extends bindings.Struct { | 73 class _NavigatorHostRequestNavigateParams extends bindings.Struct { |
| 76 static const List<bindings.StructDataHeader> kVersions = const [ | 74 static const List<bindings.StructDataHeader> kVersions = const [ |
| 77 const bindings.StructDataHeader(24, 0) | 75 const bindings.StructDataHeader(24, 0) |
| 78 ]; | 76 ]; |
| 79 Target target = null; | 77 Target target = null; |
| 80 url_request_mojom.UrlRequest request = null; | 78 url_request_mojom.UrlRequest request = null; |
| 81 | 79 |
| 82 _NavigatorHostRequestNavigateParams() : super(kVersions.last.size); | 80 _NavigatorHostRequestNavigateParams() : super(kVersions.last.size); |
| 83 | 81 |
| 84 static _NavigatorHostRequestNavigateParams deserialize(bindings.Message messag
e) { | 82 static _NavigatorHostRequestNavigateParams deserialize(bindings.Message messag
e) { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 "request: $request" ")"; | 152 "request: $request" ")"; |
| 155 } | 153 } |
| 156 | 154 |
| 157 Map toJson() { | 155 Map toJson() { |
| 158 throw new bindings.MojoCodecError( | 156 throw new bindings.MojoCodecError( |
| 159 'Object containing handles cannot be encoded to JSON.'); | 157 'Object containing handles cannot be encoded to JSON.'); |
| 160 } | 158 } |
| 161 } | 159 } |
| 162 | 160 |
| 163 | 161 |
| 164 | |
| 165 | |
| 166 class _NavigatorHostRequestNavigateHistoryParams extends bindings.Struct { | 162 class _NavigatorHostRequestNavigateHistoryParams extends bindings.Struct { |
| 167 static const List<bindings.StructDataHeader> kVersions = const [ | 163 static const List<bindings.StructDataHeader> kVersions = const [ |
| 168 const bindings.StructDataHeader(16, 0) | 164 const bindings.StructDataHeader(16, 0) |
| 169 ]; | 165 ]; |
| 170 int delta = 0; | 166 int delta = 0; |
| 171 | 167 |
| 172 _NavigatorHostRequestNavigateHistoryParams() : super(kVersions.last.size); | 168 _NavigatorHostRequestNavigateHistoryParams() : super(kVersions.last.size); |
| 173 | 169 |
| 174 static _NavigatorHostRequestNavigateHistoryParams deserialize(bindings.Message
message) { | 170 static _NavigatorHostRequestNavigateHistoryParams deserialize(bindings.Message
message) { |
| 175 var decoder = new bindings.Decoder(message); | 171 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 } | 224 } |
| 229 | 225 |
| 230 Map toJson() { | 226 Map toJson() { |
| 231 Map map = new Map(); | 227 Map map = new Map(); |
| 232 map["delta"] = delta; | 228 map["delta"] = delta; |
| 233 return map; | 229 return map; |
| 234 } | 230 } |
| 235 } | 231 } |
| 236 | 232 |
| 237 | 233 |
| 238 | |
| 239 | |
| 240 class _NavigatorHostDidNavigateLocallyParams extends bindings.Struct { | 234 class _NavigatorHostDidNavigateLocallyParams extends bindings.Struct { |
| 241 static const List<bindings.StructDataHeader> kVersions = const [ | 235 static const List<bindings.StructDataHeader> kVersions = const [ |
| 242 const bindings.StructDataHeader(16, 0) | 236 const bindings.StructDataHeader(16, 0) |
| 243 ]; | 237 ]; |
| 244 String url = null; | 238 String url = null; |
| 245 | 239 |
| 246 _NavigatorHostDidNavigateLocallyParams() : super(kVersions.last.size); | 240 _NavigatorHostDidNavigateLocallyParams() : super(kVersions.last.size); |
| 247 | 241 |
| 248 static _NavigatorHostDidNavigateLocallyParams deserialize(bindings.Message mes
sage) { | 242 static _NavigatorHostDidNavigateLocallyParams deserialize(bindings.Message mes
sage) { |
| 249 var decoder = new bindings.Decoder(message); | 243 var decoder = new bindings.Decoder(message); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 "url: $url" ")"; | 295 "url: $url" ")"; |
| 302 } | 296 } |
| 303 | 297 |
| 304 Map toJson() { | 298 Map toJson() { |
| 305 Map map = new Map(); | 299 Map map = new Map(); |
| 306 map["url"] = url; | 300 map["url"] = url; |
| 307 return map; | 301 return map; |
| 308 } | 302 } |
| 309 } | 303 } |
| 310 | 304 |
| 311 | |
| 312 | |
| 313 | |
| 314 const int _NavigatorHost_requestNavigateName = 0; | 305 const int _NavigatorHost_requestNavigateName = 0; |
| 315 const int _NavigatorHost_requestNavigateHistoryName = 1; | 306 const int _NavigatorHost_requestNavigateHistoryName = 1; |
| 316 const int _NavigatorHost_didNavigateLocallyName = 2; | 307 const int _NavigatorHost_didNavigateLocallyName = 2; |
| 317 | 308 |
| 318 | |
| 319 | |
| 320 class _NavigatorHostServiceDescription implements service_describer.ServiceDescr
iption { | 309 class _NavigatorHostServiceDescription implements service_describer.ServiceDescr
iption { |
| 321 dynamic getTopLevelInterface([Function responseFactory]) => | 310 dynamic getTopLevelInterface([Function responseFactory]) => |
| 322 responseFactory(null); | 311 responseFactory(null); |
| 323 | 312 |
| 324 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 313 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 325 responseFactory(null); | 314 responseFactory(null); |
| 326 | 315 |
| 327 dynamic getAllTypeDefinitions([Function responseFactory]) => | 316 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 328 responseFactory(null); | 317 responseFactory(null); |
| 329 } | 318 } |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 static service_describer.ServiceDescription get serviceDescription { | 520 static service_describer.ServiceDescription get serviceDescription { |
| 532 if (_cachedServiceDescription == null) { | 521 if (_cachedServiceDescription == null) { |
| 533 _cachedServiceDescription = new _NavigatorHostServiceDescription(); | 522 _cachedServiceDescription = new _NavigatorHostServiceDescription(); |
| 534 } | 523 } |
| 535 return _cachedServiceDescription; | 524 return _cachedServiceDescription; |
| 536 } | 525 } |
| 537 } | 526 } |
| 538 | 527 |
| 539 | 528 |
| 540 | 529 |
| OLD | NEW |