| 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 notifications_mojom; | 5 library notifications_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 | 10 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 map["title"] = title; | 131 map["title"] = title; |
| 132 map["text"] = text; | 132 map["text"] = text; |
| 133 map["playSound"] = playSound; | 133 map["playSound"] = playSound; |
| 134 map["vibrate"] = vibrate; | 134 map["vibrate"] = vibrate; |
| 135 map["setLights"] = setLights; | 135 map["setLights"] = setLights; |
| 136 return map; | 136 return map; |
| 137 } | 137 } |
| 138 } | 138 } |
| 139 | 139 |
| 140 | 140 |
| 141 | |
| 142 | |
| 143 class _NotificationClientOnSelectedParams extends bindings.Struct { | 141 class _NotificationClientOnSelectedParams extends bindings.Struct { |
| 144 static const List<bindings.StructDataHeader> kVersions = const [ | 142 static const List<bindings.StructDataHeader> kVersions = const [ |
| 145 const bindings.StructDataHeader(8, 0) | 143 const bindings.StructDataHeader(8, 0) |
| 146 ]; | 144 ]; |
| 147 | 145 |
| 148 _NotificationClientOnSelectedParams() : super(kVersions.last.size); | 146 _NotificationClientOnSelectedParams() : super(kVersions.last.size); |
| 149 | 147 |
| 150 static _NotificationClientOnSelectedParams deserialize(bindings.Message messag
e) { | 148 static _NotificationClientOnSelectedParams deserialize(bindings.Message messag
e) { |
| 151 var decoder = new bindings.Decoder(message); | 149 var decoder = new bindings.Decoder(message); |
| 152 var result = decode(decoder); | 150 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 return "_NotificationClientOnSelectedParams("")"; | 189 return "_NotificationClientOnSelectedParams("")"; |
| 192 } | 190 } |
| 193 | 191 |
| 194 Map toJson() { | 192 Map toJson() { |
| 195 Map map = new Map(); | 193 Map map = new Map(); |
| 196 return map; | 194 return map; |
| 197 } | 195 } |
| 198 } | 196 } |
| 199 | 197 |
| 200 | 198 |
| 201 | |
| 202 | |
| 203 class _NotificationClientOnDismissedParams extends bindings.Struct { | 199 class _NotificationClientOnDismissedParams extends bindings.Struct { |
| 204 static const List<bindings.StructDataHeader> kVersions = const [ | 200 static const List<bindings.StructDataHeader> kVersions = const [ |
| 205 const bindings.StructDataHeader(8, 0) | 201 const bindings.StructDataHeader(8, 0) |
| 206 ]; | 202 ]; |
| 207 | 203 |
| 208 _NotificationClientOnDismissedParams() : super(kVersions.last.size); | 204 _NotificationClientOnDismissedParams() : super(kVersions.last.size); |
| 209 | 205 |
| 210 static _NotificationClientOnDismissedParams deserialize(bindings.Message messa
ge) { | 206 static _NotificationClientOnDismissedParams deserialize(bindings.Message messa
ge) { |
| 211 var decoder = new bindings.Decoder(message); | 207 var decoder = new bindings.Decoder(message); |
| 212 var result = decode(decoder); | 208 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 return "_NotificationClientOnDismissedParams("")"; | 247 return "_NotificationClientOnDismissedParams("")"; |
| 252 } | 248 } |
| 253 | 249 |
| 254 Map toJson() { | 250 Map toJson() { |
| 255 Map map = new Map(); | 251 Map map = new Map(); |
| 256 return map; | 252 return map; |
| 257 } | 253 } |
| 258 } | 254 } |
| 259 | 255 |
| 260 | 256 |
| 261 | |
| 262 | |
| 263 class _NotificationUpdateParams extends bindings.Struct { | 257 class _NotificationUpdateParams extends bindings.Struct { |
| 264 static const List<bindings.StructDataHeader> kVersions = const [ | 258 static const List<bindings.StructDataHeader> kVersions = const [ |
| 265 const bindings.StructDataHeader(16, 0) | 259 const bindings.StructDataHeader(16, 0) |
| 266 ]; | 260 ]; |
| 267 NotificationData notificationData = null; | 261 NotificationData notificationData = null; |
| 268 | 262 |
| 269 _NotificationUpdateParams() : super(kVersions.last.size); | 263 _NotificationUpdateParams() : super(kVersions.last.size); |
| 270 | 264 |
| 271 static _NotificationUpdateParams deserialize(bindings.Message message) { | 265 static _NotificationUpdateParams deserialize(bindings.Message message) { |
| 272 var decoder = new bindings.Decoder(message); | 266 var decoder = new bindings.Decoder(message); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 } | 320 } |
| 327 | 321 |
| 328 Map toJson() { | 322 Map toJson() { |
| 329 Map map = new Map(); | 323 Map map = new Map(); |
| 330 map["notificationData"] = notificationData; | 324 map["notificationData"] = notificationData; |
| 331 return map; | 325 return map; |
| 332 } | 326 } |
| 333 } | 327 } |
| 334 | 328 |
| 335 | 329 |
| 336 | |
| 337 | |
| 338 class _NotificationCancelParams extends bindings.Struct { | 330 class _NotificationCancelParams extends bindings.Struct { |
| 339 static const List<bindings.StructDataHeader> kVersions = const [ | 331 static const List<bindings.StructDataHeader> kVersions = const [ |
| 340 const bindings.StructDataHeader(8, 0) | 332 const bindings.StructDataHeader(8, 0) |
| 341 ]; | 333 ]; |
| 342 | 334 |
| 343 _NotificationCancelParams() : super(kVersions.last.size); | 335 _NotificationCancelParams() : super(kVersions.last.size); |
| 344 | 336 |
| 345 static _NotificationCancelParams deserialize(bindings.Message message) { | 337 static _NotificationCancelParams deserialize(bindings.Message message) { |
| 346 var decoder = new bindings.Decoder(message); | 338 var decoder = new bindings.Decoder(message); |
| 347 var result = decode(decoder); | 339 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 return "_NotificationCancelParams("")"; | 378 return "_NotificationCancelParams("")"; |
| 387 } | 379 } |
| 388 | 380 |
| 389 Map toJson() { | 381 Map toJson() { |
| 390 Map map = new Map(); | 382 Map map = new Map(); |
| 391 return map; | 383 return map; |
| 392 } | 384 } |
| 393 } | 385 } |
| 394 | 386 |
| 395 | 387 |
| 396 | |
| 397 | |
| 398 class _NotificationServicePostParams extends bindings.Struct { | 388 class _NotificationServicePostParams extends bindings.Struct { |
| 399 static const List<bindings.StructDataHeader> kVersions = const [ | 389 static const List<bindings.StructDataHeader> kVersions = const [ |
| 400 const bindings.StructDataHeader(32, 0) | 390 const bindings.StructDataHeader(32, 0) |
| 401 ]; | 391 ]; |
| 402 NotificationData notificationData = null; | 392 NotificationData notificationData = null; |
| 403 Object client = null; | 393 Object client = null; |
| 404 Object notification = null; | 394 Object notification = null; |
| 405 | 395 |
| 406 _NotificationServicePostParams() : super(kVersions.last.size); | 396 _NotificationServicePostParams() : super(kVersions.last.size); |
| 407 | 397 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 "client: $client" ", " | 475 "client: $client" ", " |
| 486 "notification: $notification" ")"; | 476 "notification: $notification" ")"; |
| 487 } | 477 } |
| 488 | 478 |
| 489 Map toJson() { | 479 Map toJson() { |
| 490 throw new bindings.MojoCodecError( | 480 throw new bindings.MojoCodecError( |
| 491 'Object containing handles cannot be encoded to JSON.'); | 481 'Object containing handles cannot be encoded to JSON.'); |
| 492 } | 482 } |
| 493 } | 483 } |
| 494 | 484 |
| 495 | |
| 496 | |
| 497 | |
| 498 const int _NotificationClient_onSelectedName = 0; | 485 const int _NotificationClient_onSelectedName = 0; |
| 499 const int _NotificationClient_onDismissedName = 1; | 486 const int _NotificationClient_onDismissedName = 1; |
| 500 | 487 |
| 501 | |
| 502 | |
| 503 class _NotificationClientServiceDescription implements service_describer.Service
Description { | 488 class _NotificationClientServiceDescription implements service_describer.Service
Description { |
| 504 dynamic getTopLevelInterface([Function responseFactory]) => | 489 dynamic getTopLevelInterface([Function responseFactory]) => |
| 505 responseFactory(null); | 490 responseFactory(null); |
| 506 | 491 |
| 507 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 492 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 508 responseFactory(null); | 493 responseFactory(null); |
| 509 | 494 |
| 510 dynamic getAllTypeDefinitions([Function responseFactory]) => | 495 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 511 responseFactory(null); | 496 responseFactory(null); |
| 512 } | 497 } |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 if (_cachedServiceDescription == null) { | 678 if (_cachedServiceDescription == null) { |
| 694 _cachedServiceDescription = new _NotificationClientServiceDescription(); | 679 _cachedServiceDescription = new _NotificationClientServiceDescription(); |
| 695 } | 680 } |
| 696 return _cachedServiceDescription; | 681 return _cachedServiceDescription; |
| 697 } | 682 } |
| 698 } | 683 } |
| 699 | 684 |
| 700 const int _Notification_updateName = 0; | 685 const int _Notification_updateName = 0; |
| 701 const int _Notification_cancelName = 1; | 686 const int _Notification_cancelName = 1; |
| 702 | 687 |
| 703 | |
| 704 | |
| 705 class _NotificationServiceDescription implements service_describer.ServiceDescri
ption { | 688 class _NotificationServiceDescription implements service_describer.ServiceDescri
ption { |
| 706 dynamic getTopLevelInterface([Function responseFactory]) => | 689 dynamic getTopLevelInterface([Function responseFactory]) => |
| 707 responseFactory(null); | 690 responseFactory(null); |
| 708 | 691 |
| 709 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 692 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 710 responseFactory(null); | 693 responseFactory(null); |
| 711 | 694 |
| 712 dynamic getAllTypeDefinitions([Function responseFactory]) => | 695 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 713 responseFactory(null); | 696 responseFactory(null); |
| 714 } | 697 } |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 static service_describer.ServiceDescription get serviceDescription { | 880 static service_describer.ServiceDescription get serviceDescription { |
| 898 if (_cachedServiceDescription == null) { | 881 if (_cachedServiceDescription == null) { |
| 899 _cachedServiceDescription = new _NotificationServiceDescription(); | 882 _cachedServiceDescription = new _NotificationServiceDescription(); |
| 900 } | 883 } |
| 901 return _cachedServiceDescription; | 884 return _cachedServiceDescription; |
| 902 } | 885 } |
| 903 } | 886 } |
| 904 | 887 |
| 905 const int _NotificationService_postName = 0; | 888 const int _NotificationService_postName = 0; |
| 906 | 889 |
| 907 | |
| 908 | |
| 909 class _NotificationServiceServiceDescription implements service_describer.Servic
eDescription { | 890 class _NotificationServiceServiceDescription implements service_describer.Servic
eDescription { |
| 910 dynamic getTopLevelInterface([Function responseFactory]) => | 891 dynamic getTopLevelInterface([Function responseFactory]) => |
| 911 responseFactory(null); | 892 responseFactory(null); |
| 912 | 893 |
| 913 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 894 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 914 responseFactory(null); | 895 responseFactory(null); |
| 915 | 896 |
| 916 dynamic getAllTypeDefinitions([Function responseFactory]) => | 897 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 917 responseFactory(null); | 898 responseFactory(null); |
| 918 } | 899 } |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 static service_describer.ServiceDescription get serviceDescription { | 1072 static service_describer.ServiceDescription get serviceDescription { |
| 1092 if (_cachedServiceDescription == null) { | 1073 if (_cachedServiceDescription == null) { |
| 1093 _cachedServiceDescription = new _NotificationServiceServiceDescription(); | 1074 _cachedServiceDescription = new _NotificationServiceServiceDescription(); |
| 1094 } | 1075 } |
| 1095 return _cachedServiceDescription; | 1076 return _cachedServiceDescription; |
| 1096 } | 1077 } |
| 1097 } | 1078 } |
| 1098 | 1079 |
| 1099 | 1080 |
| 1100 | 1081 |
| OLD | NEW |