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 surfaces_mojom; | 5 library surfaces_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 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 } | 1274 } |
1275 | 1275 |
1276 | 1276 |
1277 | 1277 |
1278 | 1278 |
1279 const int _ResourceReturner_returnResourcesName = 0; | 1279 const int _ResourceReturner_returnResourcesName = 0; |
1280 | 1280 |
1281 | 1281 |
1282 | 1282 |
1283 class _ResourceReturnerServiceDescription implements service_describer.ServiceDe
scription { | 1283 class _ResourceReturnerServiceDescription implements service_describer.ServiceDe
scription { |
1284 dynamic getTopLevelInterface([Function responseFactory]) => null; | 1284 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1285 responseFactory(null); |
1285 | 1286 |
1286 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 1287 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1288 responseFactory(null); |
1287 | 1289 |
1288 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 1290 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1291 responseFactory(null); |
1289 } | 1292 } |
1290 | 1293 |
1291 abstract class ResourceReturner { | 1294 abstract class ResourceReturner { |
1292 static const String serviceName = null; | 1295 static const String serviceName = null; |
1293 void returnResources(List<ReturnedResource> resources); | 1296 void returnResources(List<ReturnedResource> resources); |
1294 } | 1297 } |
1295 | 1298 |
1296 | 1299 |
1297 class _ResourceReturnerProxyImpl extends bindings.Proxy { | 1300 class _ResourceReturnerProxyImpl extends bindings.Proxy { |
1298 _ResourceReturnerProxyImpl.fromEndpoint( | 1301 _ResourceReturnerProxyImpl.fromEndpoint( |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 _impl = d; | 1452 _impl = d; |
1450 } | 1453 } |
1451 | 1454 |
1452 String toString() { | 1455 String toString() { |
1453 var superString = super.toString(); | 1456 var superString = super.toString(); |
1454 return "ResourceReturnerStub($superString)"; | 1457 return "ResourceReturnerStub($superString)"; |
1455 } | 1458 } |
1456 | 1459 |
1457 int get version => 0; | 1460 int get version => 0; |
1458 | 1461 |
1459 service_describer.ServiceDescription get serviceDescription => | 1462 static service_describer.ServiceDescription _cachedServiceDescription; |
1460 new _ResourceReturnerServiceDescription(); | 1463 static service_describer.ServiceDescription get serviceDescription { |
| 1464 if (_cachedServiceDescription == null) { |
| 1465 _cachedServiceDescription = new _ResourceReturnerServiceDescription(); |
| 1466 } |
| 1467 return _cachedServiceDescription; |
| 1468 } |
1461 } | 1469 } |
1462 | 1470 |
1463 const int _Surface_getIdNamespaceName = 0; | 1471 const int _Surface_getIdNamespaceName = 0; |
1464 const int _Surface_setResourceReturnerName = 1; | 1472 const int _Surface_setResourceReturnerName = 1; |
1465 const int _Surface_createSurfaceName = 2; | 1473 const int _Surface_createSurfaceName = 2; |
1466 const int _Surface_submitFrameName = 3; | 1474 const int _Surface_submitFrameName = 3; |
1467 const int _Surface_destroySurfaceName = 4; | 1475 const int _Surface_destroySurfaceName = 4; |
1468 | 1476 |
1469 | 1477 |
1470 | 1478 |
1471 class _SurfaceServiceDescription implements service_describer.ServiceDescription
{ | 1479 class _SurfaceServiceDescription implements service_describer.ServiceDescription
{ |
1472 dynamic getTopLevelInterface([Function responseFactory]) => null; | 1480 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1481 responseFactory(null); |
1473 | 1482 |
1474 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 1483 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1484 responseFactory(null); |
1475 | 1485 |
1476 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 1486 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1487 responseFactory(null); |
1477 } | 1488 } |
1478 | 1489 |
1479 abstract class Surface { | 1490 abstract class Surface { |
1480 static const String serviceName = "mojo::Surface"; | 1491 static const String serviceName = "mojo::Surface"; |
1481 dynamic getIdNamespace([Function responseFactory = null]); | 1492 dynamic getIdNamespace([Function responseFactory = null]); |
1482 void setResourceReturner(Object returner); | 1493 void setResourceReturner(Object returner); |
1483 void createSurface(int idLocal); | 1494 void createSurface(int idLocal); |
1484 dynamic submitFrame(int idLocal,Frame frame,[Function responseFactory = null])
; | 1495 dynamic submitFrame(int idLocal,Frame frame,[Function responseFactory = null])
; |
1485 void destroySurface(int idLocal); | 1496 void destroySurface(int idLocal); |
1486 } | 1497 } |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1780 _impl = d; | 1791 _impl = d; |
1781 } | 1792 } |
1782 | 1793 |
1783 String toString() { | 1794 String toString() { |
1784 var superString = super.toString(); | 1795 var superString = super.toString(); |
1785 return "SurfaceStub($superString)"; | 1796 return "SurfaceStub($superString)"; |
1786 } | 1797 } |
1787 | 1798 |
1788 int get version => 0; | 1799 int get version => 0; |
1789 | 1800 |
1790 service_describer.ServiceDescription get serviceDescription => | 1801 static service_describer.ServiceDescription _cachedServiceDescription; |
1791 new _SurfaceServiceDescription(); | 1802 static service_describer.ServiceDescription get serviceDescription { |
| 1803 if (_cachedServiceDescription == null) { |
| 1804 _cachedServiceDescription = new _SurfaceServiceDescription(); |
| 1805 } |
| 1806 return _cachedServiceDescription; |
| 1807 } |
1792 } | 1808 } |
1793 | 1809 |
1794 | 1810 |
1795 | 1811 |
OLD | NEW |