|
@@ -140,7 +140,9 @@ pub enum Cmd {
|
|
error: String,
|
|
error: String,
|
|
},
|
|
},
|
|
/// The set webview title API.
|
|
/// The set webview title API.
|
|
- SetTitle { title: String },
|
|
|
|
|
|
+ SetTitle {
|
|
|
|
+ title: String,
|
|
|
|
+ },
|
|
/// The execute script API.
|
|
/// The execute script API.
|
|
Execute {
|
|
Execute {
|
|
command: String,
|
|
command: String,
|
|
@@ -149,7 +151,9 @@ pub enum Cmd {
|
|
error: String,
|
|
error: String,
|
|
},
|
|
},
|
|
/// The open URL in browser API
|
|
/// The open URL in browser API
|
|
- Open { uri: String },
|
|
|
|
|
|
+ Open {
|
|
|
|
+ uri: String,
|
|
|
|
+ },
|
|
ValidateSalt {
|
|
ValidateSalt {
|
|
salt: String,
|
|
salt: String,
|
|
callback: String,
|
|
callback: String,
|
|
@@ -178,6 +182,15 @@ pub enum Cmd {
|
|
callback: String,
|
|
callback: String,
|
|
error: String,
|
|
error: String,
|
|
},
|
|
},
|
|
|
|
+ MessageDialog {
|
|
|
|
+ message: String,
|
|
|
|
+ },
|
|
|
|
+ AskDialog {
|
|
|
|
+ title: Option<String>,
|
|
|
|
+ message: String,
|
|
|
|
+ callback: String,
|
|
|
|
+ error: String,
|
|
|
|
+ },
|
|
/// The HTTP request API.
|
|
/// The HTTP request API.
|
|
HttpRequest {
|
|
HttpRequest {
|
|
options: Box<HttpRequestOptions>,
|
|
options: Box<HttpRequestOptions>,
|
|
@@ -194,7 +207,10 @@ pub enum Cmd {
|
|
error: String,
|
|
error: String,
|
|
},
|
|
},
|
|
/// The get CLI matches API.
|
|
/// The get CLI matches API.
|
|
- CliMatches { callback: String, error: String },
|
|
|
|
|
|
+ CliMatches {
|
|
|
|
+ callback: String,
|
|
|
|
+ error: String,
|
|
|
|
+ },
|
|
/// The show notification API.
|
|
/// The show notification API.
|
|
Notification {
|
|
Notification {
|
|
options: NotificationOptions,
|
|
options: NotificationOptions,
|
|
@@ -202,7 +218,13 @@ pub enum Cmd {
|
|
error: String,
|
|
error: String,
|
|
},
|
|
},
|
|
/// The request notification permission API.
|
|
/// The request notification permission API.
|
|
- RequestNotificationPermission { callback: String, error: String },
|
|
|
|
|
|
+ RequestNotificationPermission {
|
|
|
|
+ callback: String,
|
|
|
|
+ error: String,
|
|
|
|
+ },
|
|
/// The notification permission check API.
|
|
/// The notification permission check API.
|
|
- IsNotificationPermissionGranted { callback: String, error: String },
|
|
|
|
|
|
+ IsNotificationPermissionGranted {
|
|
|
|
+ callback: String,
|
|
|
|
+ error: String,
|
|
|
|
+ },
|
|
}
|
|
}
|