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 activity_mojom; | 5 library activity_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 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1712 const int _Activity_getUserFeedbackName = 0; | 1712 const int _Activity_getUserFeedbackName = 0; |
1713 const int _Activity_startActivityName = 1; | 1713 const int _Activity_startActivityName = 1; |
1714 const int _Activity_finishCurrentActivityName = 2; | 1714 const int _Activity_finishCurrentActivityName = 2; |
1715 const int _Activity_setTaskDescriptionName = 3; | 1715 const int _Activity_setTaskDescriptionName = 3; |
1716 const int _Activity_setSystemUiVisibilityName = 4; | 1716 const int _Activity_setSystemUiVisibilityName = 4; |
1717 const int _Activity_setRequestedOrientationName = 5; | 1717 const int _Activity_setRequestedOrientationName = 5; |
1718 | 1718 |
1719 | 1719 |
1720 | 1720 |
1721 class _ActivityServiceDescription implements service_describer.ServiceDescriptio
n { | 1721 class _ActivityServiceDescription implements service_describer.ServiceDescriptio
n { |
1722 dynamic getTopLevelInterface([Function responseFactory]) => null; | 1722 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1723 responseFactory(null); |
1723 | 1724 |
1724 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 1725 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1726 responseFactory(null); |
1725 | 1727 |
1726 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 1728 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1729 responseFactory(null); |
1727 } | 1730 } |
1728 | 1731 |
1729 abstract class Activity { | 1732 abstract class Activity { |
1730 static const String serviceName = "activity::Activity"; | 1733 static const String serviceName = "activity::Activity"; |
1731 void getUserFeedback(Object userFeedback); | 1734 void getUserFeedback(Object userFeedback); |
1732 void startActivity(Intent intent); | 1735 void startActivity(Intent intent); |
1733 void finishCurrentActivity(); | 1736 void finishCurrentActivity(); |
1734 void setTaskDescription(TaskDescription description); | 1737 void setTaskDescription(TaskDescription description); |
1735 void setSystemUiVisibility(SystemUiVisibility visibility); | 1738 void setSystemUiVisibility(SystemUiVisibility visibility); |
1736 void setRequestedOrientation(ScreenOrientation orientation); | 1739 void setRequestedOrientation(ScreenOrientation orientation); |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1961 _impl = d; | 1964 _impl = d; |
1962 } | 1965 } |
1963 | 1966 |
1964 String toString() { | 1967 String toString() { |
1965 var superString = super.toString(); | 1968 var superString = super.toString(); |
1966 return "ActivityStub($superString)"; | 1969 return "ActivityStub($superString)"; |
1967 } | 1970 } |
1968 | 1971 |
1969 int get version => 0; | 1972 int get version => 0; |
1970 | 1973 |
1971 service_describer.ServiceDescription get serviceDescription => | 1974 static service_describer.ServiceDescription _cachedServiceDescription; |
1972 new _ActivityServiceDescription(); | 1975 static service_describer.ServiceDescription get serviceDescription { |
| 1976 if (_cachedServiceDescription == null) { |
| 1977 _cachedServiceDescription = new _ActivityServiceDescription(); |
| 1978 } |
| 1979 return _cachedServiceDescription; |
| 1980 } |
1973 } | 1981 } |
1974 | 1982 |
1975 const int _PathService_getAppDataDirName = 0; | 1983 const int _PathService_getAppDataDirName = 0; |
1976 const int _PathService_getFilesDirName = 1; | 1984 const int _PathService_getFilesDirName = 1; |
1977 const int _PathService_getCacheDirName = 2; | 1985 const int _PathService_getCacheDirName = 2; |
1978 | 1986 |
1979 | 1987 |
1980 | 1988 |
1981 class _PathServiceServiceDescription implements service_describer.ServiceDescrip
tion { | 1989 class _PathServiceServiceDescription implements service_describer.ServiceDescrip
tion { |
1982 dynamic getTopLevelInterface([Function responseFactory]) => null; | 1990 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1991 responseFactory(null); |
1983 | 1992 |
1984 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 1993 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1994 responseFactory(null); |
1985 | 1995 |
1986 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 1996 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1997 responseFactory(null); |
1987 } | 1998 } |
1988 | 1999 |
1989 abstract class PathService { | 2000 abstract class PathService { |
1990 static const String serviceName = "activity::PathService"; | 2001 static const String serviceName = "activity::PathService"; |
1991 dynamic getAppDataDir([Function responseFactory = null]); | 2002 dynamic getAppDataDir([Function responseFactory = null]); |
1992 dynamic getFilesDir([Function responseFactory = null]); | 2003 dynamic getFilesDir([Function responseFactory = null]); |
1993 dynamic getCacheDir([Function responseFactory = null]); | 2004 dynamic getCacheDir([Function responseFactory = null]); |
1994 } | 2005 } |
1995 | 2006 |
1996 | 2007 |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2300 _impl = d; | 2311 _impl = d; |
2301 } | 2312 } |
2302 | 2313 |
2303 String toString() { | 2314 String toString() { |
2304 var superString = super.toString(); | 2315 var superString = super.toString(); |
2305 return "PathServiceStub($superString)"; | 2316 return "PathServiceStub($superString)"; |
2306 } | 2317 } |
2307 | 2318 |
2308 int get version => 0; | 2319 int get version => 0; |
2309 | 2320 |
2310 service_describer.ServiceDescription get serviceDescription => | 2321 static service_describer.ServiceDescription _cachedServiceDescription; |
2311 new _PathServiceServiceDescription(); | 2322 static service_describer.ServiceDescription get serviceDescription { |
| 2323 if (_cachedServiceDescription == null) { |
| 2324 _cachedServiceDescription = new _PathServiceServiceDescription(); |
| 2325 } |
| 2326 return _cachedServiceDescription; |
| 2327 } |
2312 } | 2328 } |
2313 | 2329 |
2314 const int _UserFeedback_performHapticFeedbackName = 0; | 2330 const int _UserFeedback_performHapticFeedbackName = 0; |
2315 const int _UserFeedback_performAuralFeedbackName = 1; | 2331 const int _UserFeedback_performAuralFeedbackName = 1; |
2316 | 2332 |
2317 | 2333 |
2318 | 2334 |
2319 class _UserFeedbackServiceDescription implements service_describer.ServiceDescri
ption { | 2335 class _UserFeedbackServiceDescription implements service_describer.ServiceDescri
ption { |
2320 dynamic getTopLevelInterface([Function responseFactory]) => null; | 2336 dynamic getTopLevelInterface([Function responseFactory]) => |
| 2337 responseFactory(null); |
2321 | 2338 |
2322 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 2339 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 2340 responseFactory(null); |
2323 | 2341 |
2324 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 2342 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 2343 responseFactory(null); |
2325 } | 2344 } |
2326 | 2345 |
2327 abstract class UserFeedback { | 2346 abstract class UserFeedback { |
2328 static const String serviceName = null; | 2347 static const String serviceName = null; |
2329 void performHapticFeedback(HapticFeedbackType type); | 2348 void performHapticFeedback(HapticFeedbackType type); |
2330 void performAuralFeedback(AuralFeedbackType type); | 2349 void performAuralFeedback(AuralFeedbackType type); |
2331 } | 2350 } |
2332 | 2351 |
2333 | 2352 |
2334 class _UserFeedbackProxyImpl extends bindings.Proxy { | 2353 class _UserFeedbackProxyImpl extends bindings.Proxy { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2500 _impl = d; | 2519 _impl = d; |
2501 } | 2520 } |
2502 | 2521 |
2503 String toString() { | 2522 String toString() { |
2504 var superString = super.toString(); | 2523 var superString = super.toString(); |
2505 return "UserFeedbackStub($superString)"; | 2524 return "UserFeedbackStub($superString)"; |
2506 } | 2525 } |
2507 | 2526 |
2508 int get version => 0; | 2527 int get version => 0; |
2509 | 2528 |
2510 service_describer.ServiceDescription get serviceDescription => | 2529 static service_describer.ServiceDescription _cachedServiceDescription; |
2511 new _UserFeedbackServiceDescription(); | 2530 static service_describer.ServiceDescription get serviceDescription { |
| 2531 if (_cachedServiceDescription == null) { |
| 2532 _cachedServiceDescription = new _UserFeedbackServiceDescription(); |
| 2533 } |
| 2534 return _cachedServiceDescription; |
| 2535 } |
2512 } | 2536 } |
2513 | 2537 |
2514 | 2538 |
2515 | 2539 |
OLD | NEW |