Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: mojo/dart/packages/mojo_services/lib/activity/activity.mojom.dart

Issue 1648803006: Expose Service Describer in Dart mojo package (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase Retest and Update Mojoms Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 get serviceDescription =>
1972 new _ActivityServiceDescription(); 1975 new _ActivityServiceDescription();
1973 } 1976 }
1974 1977
1975 const int _PathService_getAppDataDirName = 0; 1978 const int _PathService_getAppDataDirName = 0;
1976 const int _PathService_getFilesDirName = 1; 1979 const int _PathService_getFilesDirName = 1;
1977 const int _PathService_getCacheDirName = 2; 1980 const int _PathService_getCacheDirName = 2;
1978 1981
1979 1982
1980 1983
1981 class _PathServiceServiceDescription implements service_describer.ServiceDescrip tion { 1984 class _PathServiceServiceDescription implements service_describer.ServiceDescrip tion {
1982 dynamic getTopLevelInterface([Function responseFactory]) => null; 1985 dynamic getTopLevelInterface([Function responseFactory]) =>
1986 responseFactory(null);
1983 1987
1984 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 1988 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
1989 responseFactory(null);
1985 1990
1986 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 1991 dynamic getAllTypeDefinitions([Function responseFactory]) =>
1992 responseFactory(null);
1987 } 1993 }
1988 1994
1989 abstract class PathService { 1995 abstract class PathService {
1990 static const String serviceName = "activity::PathService"; 1996 static const String serviceName = "activity::PathService";
1991 dynamic getAppDataDir([Function responseFactory = null]); 1997 dynamic getAppDataDir([Function responseFactory = null]);
1992 dynamic getFilesDir([Function responseFactory = null]); 1998 dynamic getFilesDir([Function responseFactory = null]);
1993 dynamic getCacheDir([Function responseFactory = null]); 1999 dynamic getCacheDir([Function responseFactory = null]);
1994 } 2000 }
1995 2001
1996 2002
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 _impl = d; 2306 _impl = d;
2301 } 2307 }
2302 2308
2303 String toString() { 2309 String toString() {
2304 var superString = super.toString(); 2310 var superString = super.toString();
2305 return "PathServiceStub($superString)"; 2311 return "PathServiceStub($superString)";
2306 } 2312 }
2307 2313
2308 int get version => 0; 2314 int get version => 0;
2309 2315
2310 service_describer.ServiceDescription get serviceDescription => 2316 static service_describer.ServiceDescription get serviceDescription =>
2311 new _PathServiceServiceDescription(); 2317 new _PathServiceServiceDescription();
2312 } 2318 }
2313 2319
2314 const int _UserFeedback_performHapticFeedbackName = 0; 2320 const int _UserFeedback_performHapticFeedbackName = 0;
2315 const int _UserFeedback_performAuralFeedbackName = 1; 2321 const int _UserFeedback_performAuralFeedbackName = 1;
2316 2322
2317 2323
2318 2324
2319 class _UserFeedbackServiceDescription implements service_describer.ServiceDescri ption { 2325 class _UserFeedbackServiceDescription implements service_describer.ServiceDescri ption {
2320 dynamic getTopLevelInterface([Function responseFactory]) => null; 2326 dynamic getTopLevelInterface([Function responseFactory]) =>
2327 responseFactory(null);
2321 2328
2322 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 2329 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
2330 responseFactory(null);
2323 2331
2324 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 2332 dynamic getAllTypeDefinitions([Function responseFactory]) =>
2333 responseFactory(null);
2325 } 2334 }
2326 2335
2327 abstract class UserFeedback { 2336 abstract class UserFeedback {
2328 static const String serviceName = null; 2337 static const String serviceName = null;
2329 void performHapticFeedback(HapticFeedbackType type); 2338 void performHapticFeedback(HapticFeedbackType type);
2330 void performAuralFeedback(AuralFeedbackType type); 2339 void performAuralFeedback(AuralFeedbackType type);
2331 } 2340 }
2332 2341
2333 2342
2334 class _UserFeedbackProxyImpl extends bindings.Proxy { 2343 class _UserFeedbackProxyImpl extends bindings.Proxy {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2500 _impl = d; 2509 _impl = d;
2501 } 2510 }
2502 2511
2503 String toString() { 2512 String toString() {
2504 var superString = super.toString(); 2513 var superString = super.toString();
2505 return "UserFeedbackStub($superString)"; 2514 return "UserFeedbackStub($superString)";
2506 } 2515 }
2507 2516
2508 int get version => 0; 2517 int get version => 0;
2509 2518
2510 service_describer.ServiceDescription get serviceDescription => 2519 static service_describer.ServiceDescription get serviceDescription =>
2511 new _UserFeedbackServiceDescription(); 2520 new _UserFeedbackServiceDescription();
2512 } 2521 }
2513 2522
2514 2523
2515 2524
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698