| 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 | 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; |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 314 |
| 315 | 315 |
| 316 | 316 |
| 317 const int _NavigatorHost_requestNavigateName = 0; | 317 const int _NavigatorHost_requestNavigateName = 0; |
| 318 const int _NavigatorHost_requestNavigateHistoryName = 1; | 318 const int _NavigatorHost_requestNavigateHistoryName = 1; |
| 319 const int _NavigatorHost_didNavigateLocallyName = 2; | 319 const int _NavigatorHost_didNavigateLocallyName = 2; |
| 320 | 320 |
| 321 | 321 |
| 322 | 322 |
| 323 class _NavigatorHostServiceDescription implements service_describer.ServiceDescr
iption { | 323 class _NavigatorHostServiceDescription implements service_describer.ServiceDescr
iption { |
| 324 dynamic getTopLevelInterface([Function responseFactory]) => null; | 324 dynamic getTopLevelInterface([Function responseFactory]) => |
| 325 responseFactory(null); |
| 325 | 326 |
| 326 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 327 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 328 responseFactory(null); |
| 327 | 329 |
| 328 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 330 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 331 responseFactory(null); |
| 329 } | 332 } |
| 330 | 333 |
| 331 abstract class NavigatorHost { | 334 abstract class NavigatorHost { |
| 332 static const String serviceName = "mojo::NavigatorHost"; | 335 static const String serviceName = "mojo::NavigatorHost"; |
| 333 void requestNavigate(Target target, url_request_mojom.UrlRequest request); | 336 void requestNavigate(Target target, url_request_mojom.UrlRequest request); |
| 334 void requestNavigateHistory(int delta); | 337 void requestNavigateHistory(int delta); |
| 335 void didNavigateLocally(String url); | 338 void didNavigateLocally(String url); |
| 336 } | 339 } |
| 337 | 340 |
| 338 | 341 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 _impl = d; | 523 _impl = d; |
| 521 } | 524 } |
| 522 | 525 |
| 523 String toString() { | 526 String toString() { |
| 524 var superString = super.toString(); | 527 var superString = super.toString(); |
| 525 return "NavigatorHostStub($superString)"; | 528 return "NavigatorHostStub($superString)"; |
| 526 } | 529 } |
| 527 | 530 |
| 528 int get version => 0; | 531 int get version => 0; |
| 529 | 532 |
| 530 service_describer.ServiceDescription get serviceDescription => | 533 static service_describer.ServiceDescription _cachedServiceDescription; |
| 531 new _NavigatorHostServiceDescription(); | 534 static service_describer.ServiceDescription get serviceDescription { |
| 535 if (_cachedServiceDescription == null) { |
| 536 _cachedServiceDescription = new _NavigatorHostServiceDescription(); |
| 537 } |
| 538 return _cachedServiceDescription; |
| 539 } |
| 532 } | 540 } |
| 533 | 541 |
| 534 | 542 |
| 535 | 543 |
| OLD | NEW |