| 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 view_manager_mojom; | 5 library view_manager_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_services/mojo/ui/views.mojom.dart' as views_mojom; | 10 import 'package:mojo_services/mojo/ui/views.mojom.dart' as views_mojom; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 "label: $label" ")"; | 117 "label: $label" ")"; |
| 118 } | 118 } |
| 119 | 119 |
| 120 Map toJson() { | 120 Map toJson() { |
| 121 throw new bindings.MojoCodecError( | 121 throw new bindings.MojoCodecError( |
| 122 'Object containing handles cannot be encoded to JSON.'); | 122 'Object containing handles cannot be encoded to JSON.'); |
| 123 } | 123 } |
| 124 } | 124 } |
| 125 | 125 |
| 126 | 126 |
| 127 | |
| 128 | |
| 129 class _ViewManagerCreateViewTreeParams extends bindings.Struct { | 127 class _ViewManagerCreateViewTreeParams extends bindings.Struct { |
| 130 static const List<bindings.StructDataHeader> kVersions = const [ | 128 static const List<bindings.StructDataHeader> kVersions = const [ |
| 131 const bindings.StructDataHeader(32, 0) | 129 const bindings.StructDataHeader(32, 0) |
| 132 ]; | 130 ]; |
| 133 Object viewTree = null; | 131 Object viewTree = null; |
| 134 Object viewTreeListener = null; | 132 Object viewTreeListener = null; |
| 135 String label = null; | 133 String label = null; |
| 136 | 134 |
| 137 _ViewManagerCreateViewTreeParams() : super(kVersions.last.size); | 135 _ViewManagerCreateViewTreeParams() : super(kVersions.last.size); |
| 138 | 136 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 "viewTreeListener: $viewTreeListener" ", " | 213 "viewTreeListener: $viewTreeListener" ", " |
| 216 "label: $label" ")"; | 214 "label: $label" ")"; |
| 217 } | 215 } |
| 218 | 216 |
| 219 Map toJson() { | 217 Map toJson() { |
| 220 throw new bindings.MojoCodecError( | 218 throw new bindings.MojoCodecError( |
| 221 'Object containing handles cannot be encoded to JSON.'); | 219 'Object containing handles cannot be encoded to JSON.'); |
| 222 } | 220 } |
| 223 } | 221 } |
| 224 | 222 |
| 225 | |
| 226 | |
| 227 | |
| 228 const int _ViewManager_createViewName = 0; | 223 const int _ViewManager_createViewName = 0; |
| 229 const int _ViewManager_createViewTreeName = 1; | 224 const int _ViewManager_createViewTreeName = 1; |
| 230 | 225 |
| 231 | |
| 232 | |
| 233 class _ViewManagerServiceDescription implements service_describer.ServiceDescrip
tion { | 226 class _ViewManagerServiceDescription implements service_describer.ServiceDescrip
tion { |
| 234 dynamic getTopLevelInterface([Function responseFactory]) => | 227 dynamic getTopLevelInterface([Function responseFactory]) => |
| 235 responseFactory(null); | 228 responseFactory(null); |
| 236 | 229 |
| 237 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 230 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 238 responseFactory(null); | 231 responseFactory(null); |
| 239 | 232 |
| 240 dynamic getAllTypeDefinitions([Function responseFactory]) => | 233 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 241 responseFactory(null); | 234 responseFactory(null); |
| 242 } | 235 } |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 static service_describer.ServiceDescription get serviceDescription { | 426 static service_describer.ServiceDescription get serviceDescription { |
| 434 if (_cachedServiceDescription == null) { | 427 if (_cachedServiceDescription == null) { |
| 435 _cachedServiceDescription = new _ViewManagerServiceDescription(); | 428 _cachedServiceDescription = new _ViewManagerServiceDescription(); |
| 436 } | 429 } |
| 437 return _cachedServiceDescription; | 430 return _cachedServiceDescription; |
| 438 } | 431 } |
| 439 } | 432 } |
| 440 | 433 |
| 441 | 434 |
| 442 | 435 |
| OLD | NEW |