| 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 media_player_mojom; | 5 library media_player_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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 | 407 |
| 408 | 408 |
| 409 | 409 |
| 410 const int _MediaPlayer_playName = 0; | 410 const int _MediaPlayer_playName = 0; |
| 411 const int _MediaPlayer_pauseName = 1; | 411 const int _MediaPlayer_pauseName = 1; |
| 412 const int _MediaPlayer_getStatusName = 2; | 412 const int _MediaPlayer_getStatusName = 2; |
| 413 | 413 |
| 414 | 414 |
| 415 | 415 |
| 416 class _MediaPlayerServiceDescription implements service_describer.ServiceDescrip
tion { | 416 class _MediaPlayerServiceDescription implements service_describer.ServiceDescrip
tion { |
| 417 dynamic getTopLevelInterface([Function responseFactory]) => null; | 417 dynamic getTopLevelInterface([Function responseFactory]) => |
| 418 responseFactory(null); |
| 418 | 419 |
| 419 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 420 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 421 responseFactory(null); |
| 420 | 422 |
| 421 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 423 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 424 responseFactory(null); |
| 422 } | 425 } |
| 423 | 426 |
| 424 abstract class MediaPlayer { | 427 abstract class MediaPlayer { |
| 425 static const String serviceName = null; | 428 static const String serviceName = null; |
| 426 void play(); | 429 void play(); |
| 427 void pause(); | 430 void pause(); |
| 428 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]); | 431 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]); |
| 429 } | 432 } |
| 430 | 433 |
| 431 | 434 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 _impl = d; | 656 _impl = d; |
| 654 } | 657 } |
| 655 | 658 |
| 656 String toString() { | 659 String toString() { |
| 657 var superString = super.toString(); | 660 var superString = super.toString(); |
| 658 return "MediaPlayerStub($superString)"; | 661 return "MediaPlayerStub($superString)"; |
| 659 } | 662 } |
| 660 | 663 |
| 661 int get version => 0; | 664 int get version => 0; |
| 662 | 665 |
| 663 service_describer.ServiceDescription get serviceDescription => | 666 static service_describer.ServiceDescription _cachedServiceDescription; |
| 664 new _MediaPlayerServiceDescription(); | 667 static service_describer.ServiceDescription get serviceDescription { |
| 668 if (_cachedServiceDescription == null) { |
| 669 _cachedServiceDescription = new _MediaPlayerServiceDescription(); |
| 670 } |
| 671 return _cachedServiceDescription; |
| 672 } |
| 665 } | 673 } |
| 666 | 674 |
| 667 | 675 |
| 668 | 676 |
| OLD | NEW |