| 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 authentication_mojom; | 5 library authentication_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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 75 } |
| 76 | 76 |
| 77 Map toJson() { | 77 Map toJson() { |
| 78 Map map = new Map(); | 78 Map map = new Map(); |
| 79 map["returnLastSelected"] = returnLastSelected; | 79 map["returnLastSelected"] = returnLastSelected; |
| 80 return map; | 80 return map; |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 | 84 |
| 85 | |
| 86 | |
| 87 class AuthenticationServiceSelectAccountResponseParams extends bindings.Struct { | 85 class AuthenticationServiceSelectAccountResponseParams extends bindings.Struct { |
| 88 static const List<bindings.StructDataHeader> kVersions = const [ | 86 static const List<bindings.StructDataHeader> kVersions = const [ |
| 89 const bindings.StructDataHeader(24, 0) | 87 const bindings.StructDataHeader(24, 0) |
| 90 ]; | 88 ]; |
| 91 String username = null; | 89 String username = null; |
| 92 String error = null; | 90 String error = null; |
| 93 | 91 |
| 94 AuthenticationServiceSelectAccountResponseParams() : super(kVersions.last.size
); | 92 AuthenticationServiceSelectAccountResponseParams() : super(kVersions.last.size
); |
| 95 | 93 |
| 96 static AuthenticationServiceSelectAccountResponseParams deserialize(bindings.M
essage message) { | 94 static AuthenticationServiceSelectAccountResponseParams deserialize(bindings.M
essage message) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 161 |
| 164 Map toJson() { | 162 Map toJson() { |
| 165 Map map = new Map(); | 163 Map map = new Map(); |
| 166 map["username"] = username; | 164 map["username"] = username; |
| 167 map["error"] = error; | 165 map["error"] = error; |
| 168 return map; | 166 return map; |
| 169 } | 167 } |
| 170 } | 168 } |
| 171 | 169 |
| 172 | 170 |
| 173 | |
| 174 | |
| 175 class _AuthenticationServiceGetOAuth2TokenParams extends bindings.Struct { | 171 class _AuthenticationServiceGetOAuth2TokenParams extends bindings.Struct { |
| 176 static const List<bindings.StructDataHeader> kVersions = const [ | 172 static const List<bindings.StructDataHeader> kVersions = const [ |
| 177 const bindings.StructDataHeader(24, 0) | 173 const bindings.StructDataHeader(24, 0) |
| 178 ]; | 174 ]; |
| 179 String username = null; | 175 String username = null; |
| 180 List<String> scopes = null; | 176 List<String> scopes = null; |
| 181 | 177 |
| 182 _AuthenticationServiceGetOAuth2TokenParams() : super(kVersions.last.size); | 178 _AuthenticationServiceGetOAuth2TokenParams() : super(kVersions.last.size); |
| 183 | 179 |
| 184 static _AuthenticationServiceGetOAuth2TokenParams deserialize(bindings.Message
message) { | 180 static _AuthenticationServiceGetOAuth2TokenParams deserialize(bindings.Message
message) { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 262 |
| 267 Map toJson() { | 263 Map toJson() { |
| 268 Map map = new Map(); | 264 Map map = new Map(); |
| 269 map["username"] = username; | 265 map["username"] = username; |
| 270 map["scopes"] = scopes; | 266 map["scopes"] = scopes; |
| 271 return map; | 267 return map; |
| 272 } | 268 } |
| 273 } | 269 } |
| 274 | 270 |
| 275 | 271 |
| 276 | |
| 277 | |
| 278 class AuthenticationServiceGetOAuth2TokenResponseParams extends bindings.Struct
{ | 272 class AuthenticationServiceGetOAuth2TokenResponseParams extends bindings.Struct
{ |
| 279 static const List<bindings.StructDataHeader> kVersions = const [ | 273 static const List<bindings.StructDataHeader> kVersions = const [ |
| 280 const bindings.StructDataHeader(24, 0) | 274 const bindings.StructDataHeader(24, 0) |
| 281 ]; | 275 ]; |
| 282 String token = null; | 276 String token = null; |
| 283 String error = null; | 277 String error = null; |
| 284 | 278 |
| 285 AuthenticationServiceGetOAuth2TokenResponseParams() : super(kVersions.last.siz
e); | 279 AuthenticationServiceGetOAuth2TokenResponseParams() : super(kVersions.last.siz
e); |
| 286 | 280 |
| 287 static AuthenticationServiceGetOAuth2TokenResponseParams deserialize(bindings.
Message message) { | 281 static AuthenticationServiceGetOAuth2TokenResponseParams deserialize(bindings.
Message message) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 348 |
| 355 Map toJson() { | 349 Map toJson() { |
| 356 Map map = new Map(); | 350 Map map = new Map(); |
| 357 map["token"] = token; | 351 map["token"] = token; |
| 358 map["error"] = error; | 352 map["error"] = error; |
| 359 return map; | 353 return map; |
| 360 } | 354 } |
| 361 } | 355 } |
| 362 | 356 |
| 363 | 357 |
| 364 | |
| 365 | |
| 366 class _AuthenticationServiceClearOAuth2TokenParams extends bindings.Struct { | 358 class _AuthenticationServiceClearOAuth2TokenParams extends bindings.Struct { |
| 367 static const List<bindings.StructDataHeader> kVersions = const [ | 359 static const List<bindings.StructDataHeader> kVersions = const [ |
| 368 const bindings.StructDataHeader(16, 0) | 360 const bindings.StructDataHeader(16, 0) |
| 369 ]; | 361 ]; |
| 370 String token = null; | 362 String token = null; |
| 371 | 363 |
| 372 _AuthenticationServiceClearOAuth2TokenParams() : super(kVersions.last.size); | 364 _AuthenticationServiceClearOAuth2TokenParams() : super(kVersions.last.size); |
| 373 | 365 |
| 374 static _AuthenticationServiceClearOAuth2TokenParams deserialize(bindings.Messa
ge message) { | 366 static _AuthenticationServiceClearOAuth2TokenParams deserialize(bindings.Messa
ge message) { |
| 375 var decoder = new bindings.Decoder(message); | 367 var decoder = new bindings.Decoder(message); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 "token: $token" ")"; | 419 "token: $token" ")"; |
| 428 } | 420 } |
| 429 | 421 |
| 430 Map toJson() { | 422 Map toJson() { |
| 431 Map map = new Map(); | 423 Map map = new Map(); |
| 432 map["token"] = token; | 424 map["token"] = token; |
| 433 return map; | 425 return map; |
| 434 } | 426 } |
| 435 } | 427 } |
| 436 | 428 |
| 437 | |
| 438 | |
| 439 | |
| 440 const int _AuthenticationService_selectAccountName = 0; | 429 const int _AuthenticationService_selectAccountName = 0; |
| 441 const int _AuthenticationService_getOAuth2TokenName = 1; | 430 const int _AuthenticationService_getOAuth2TokenName = 1; |
| 442 const int _AuthenticationService_clearOAuth2TokenName = 2; | 431 const int _AuthenticationService_clearOAuth2TokenName = 2; |
| 443 | 432 |
| 444 | |
| 445 | |
| 446 class _AuthenticationServiceServiceDescription implements service_describer.Serv
iceDescription { | 433 class _AuthenticationServiceServiceDescription implements service_describer.Serv
iceDescription { |
| 447 dynamic getTopLevelInterface([Function responseFactory]) => | 434 dynamic getTopLevelInterface([Function responseFactory]) => |
| 448 responseFactory(null); | 435 responseFactory(null); |
| 449 | 436 |
| 450 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 437 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 451 responseFactory(null); | 438 responseFactory(null); |
| 452 | 439 |
| 453 dynamic getAllTypeDefinitions([Function responseFactory]) => | 440 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 454 responseFactory(null); | 441 responseFactory(null); |
| 455 } | 442 } |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 static service_describer.ServiceDescription get serviceDescription { | 730 static service_describer.ServiceDescription get serviceDescription { |
| 744 if (_cachedServiceDescription == null) { | 731 if (_cachedServiceDescription == null) { |
| 745 _cachedServiceDescription = new _AuthenticationServiceServiceDescription()
; | 732 _cachedServiceDescription = new _AuthenticationServiceServiceDescription()
; |
| 746 } | 733 } |
| 747 return _cachedServiceDescription; | 734 return _cachedServiceDescription; |
| 748 } | 735 } |
| 749 } | 736 } |
| 750 | 737 |
| 751 | 738 |
| 752 | 739 |
| OLD | NEW |