CefBridgeDataExchange.BridgeNet.d.ts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. declare namespace CefBridgeDataExchange {
  2. interface DataExchangeResultBase {
  3. Success: boolean;
  4. }
  5. interface DataExchangeResultBaseFunc extends Function {
  6. prototype: DataExchangeResultBase;
  7. new (): DataExchangeResultBase;
  8. }
  9. var DataExchangeResultBase: DataExchangeResultBaseFunc;
  10. interface DataExchangeException extends System.Exception {
  11. NativeStackTrace: string | null;
  12. }
  13. interface DataExchangeExceptionFunc extends Function {
  14. prototype: DataExchangeException;
  15. new (message: string | null, nativeStackTrace: string | null): DataExchangeException;
  16. }
  17. var DataExchangeException: DataExchangeExceptionFunc;
  18. interface DataExchangeServiceFactory {
  19. Create<TInterface>(TInterface: {prototype: TInterface}): TInterface;
  20. Create$1<TInterface>(TInterface: {prototype: TInterface}, serviceName: string | null): TInterface;
  21. }
  22. interface DataExchangeServiceFactoryFunc extends Function {
  23. prototype: DataExchangeServiceFactory;
  24. new (dataExchangeDispatcher: CefBridgeDataExchange.ExternalDataExchangeDispatcher | null): DataExchangeServiceFactory;
  25. }
  26. var DataExchangeServiceFactory: DataExchangeServiceFactoryFunc;
  27. interface DevUtils {
  28. }
  29. interface DevUtilsFunc extends Function {
  30. prototype: DevUtils;
  31. new (): DevUtils;
  32. LogDebug(msg: any | null): void;
  33. }
  34. var DevUtils: DevUtilsFunc;
  35. interface IDataExchangeDispatcher {
  36. CefBridgeDataExchange$IDataExchangeDispatcher$InvokeService(serviceName: string | null, actionName: string | null, inputJson: string | null): string | null;
  37. InvokeService(serviceName: string | null, actionName: string | null, inputJson: string | null): string | null;
  38. }
  39. interface DataExchangeDataResult$1<T> extends CefBridgeDataExchange.DataExchangeResultBase {
  40. Data: T;
  41. }
  42. interface DataExchangeDataResult$1Func extends Function {
  43. <T>($T: Bridge.TypeRef<T>): {
  44. prototype: DataExchangeDataResult$1<T>;
  45. $ctor1: {
  46. new (data: T): DataExchangeDataResult$1<T>
  47. };
  48. new (): DataExchangeDataResult$1<T>;
  49. ctor: {
  50. new (): DataExchangeDataResult$1<T>
  51. };
  52. }
  53. }
  54. var DataExchangeDataResult$1: DataExchangeDataResult$1Func;
  55. interface DataExchangeErrorResult extends CefBridgeDataExchange.DataExchangeResultBase {
  56. Message: string | null;
  57. StackTrace: string | null;
  58. }
  59. interface DataExchangeErrorResultFunc extends Function {
  60. prototype: DataExchangeErrorResult;
  61. $ctor1: {
  62. new (message: string | null, StackTrace: string | null): DataExchangeErrorResult
  63. };
  64. new (): DataExchangeErrorResult;
  65. ctor: {
  66. new (): DataExchangeErrorResult
  67. };
  68. }
  69. var DataExchangeErrorResult: DataExchangeErrorResultFunc;
  70. interface ExternalDataExchangeDispatcher extends CefBridgeDataExchange.IDataExchangeDispatcher {
  71. }
  72. interface ExternalDataExchangeDispatcherFunc extends Function {
  73. prototype: ExternalDataExchangeDispatcher;
  74. new (): ExternalDataExchangeDispatcher;
  75. }
  76. var ExternalDataExchangeDispatcher: ExternalDataExchangeDispatcherFunc;
  77. }