cleanup: Use JSDoc for documentation comments
It's a better fit than gtk-doc, and eslint can validate that they are complete and use correct syntax. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
077d8f33fb
commit
61210fdae1
@ -618,18 +618,22 @@ var GnomeShellMountOpHandler = class {
|
||||
|
||||
/**
|
||||
* AskPassword:
|
||||
* @id: an opaque ID identifying the object for which the operation is requested
|
||||
* The ID must be unique in the context of the calling process.
|
||||
* @message: the message to display
|
||||
* @icon_name: the name of an icon to display
|
||||
* @default_user: the default username for display
|
||||
* @default_domain: the default domain for display
|
||||
* @flags: a set of GAskPasswordFlags
|
||||
* @response: a GMountOperationResult
|
||||
* @response_details: a dictionary containing the response details as
|
||||
* entered by the user. The dictionary MAY contain the following properties:
|
||||
* @param {Array} params
|
||||
* {string} id: an opaque ID identifying the object for which
|
||||
* the operation is requested
|
||||
* {string} message: the message to display
|
||||
* {string} icon_name: the name of an icon to display
|
||||
* {string} default_user: the default username for display
|
||||
* {string} default_domain: the default domain for display
|
||||
* {Gio.AskPasswordFlags} flags: a set of GAskPasswordFlags
|
||||
* {Gio.MountOperationResults} response: a GMountOperationResult
|
||||
* {Object} response_details: a dictionary containing response details as
|
||||
* entered by the user. The dictionary MAY contain the following
|
||||
* properties:
|
||||
* - "password" -> (s): a password to be used to complete the mount operation
|
||||
* - "password_save" -> (u): a GPasswordSave
|
||||
* @param {Gio.DBusMethodInvocation} invocation
|
||||
* The ID must be unique in the context of the calling process.
|
||||
*
|
||||
* The dialog will stay visible until clients call the Close() method, or
|
||||
* another dialog becomes visible.
|
||||
@ -673,16 +677,14 @@ var GnomeShellMountOpHandler = class {
|
||||
|
||||
/**
|
||||
* AskQuestion:
|
||||
* @id: an opaque ID identifying the object for which the operation is requested
|
||||
* @param {Array} params - params
|
||||
* {string} id: an opaque ID identifying the object for which
|
||||
* the operation is requested
|
||||
* The ID must be unique in the context of the calling process.
|
||||
* @message: the message to display
|
||||
* @icon_name: the name of an icon to display
|
||||
* @choices: an array of choice strings
|
||||
* GetResponse:
|
||||
* @response: a GMountOperationResult
|
||||
* @response_details: a dictionary containing the response details as
|
||||
* entered by the user. The dictionary MAY contain the following properties:
|
||||
* - "choice" -> (i): the chosen answer among the array of strings passed in
|
||||
* {string} message: the message to display
|
||||
* {string} icon_name: the name of an icon to display
|
||||
* {string[]} choices: an array of choice strings
|
||||
* @param {Gio.DBusMethodInvocation} invocation - invocation
|
||||
*
|
||||
* The dialog will stay visible until clients call the Close() method, or
|
||||
* another dialog becomes visible.
|
||||
@ -711,16 +713,15 @@ var GnomeShellMountOpHandler = class {
|
||||
|
||||
/**
|
||||
* ShowProcesses:
|
||||
* @id: an opaque ID identifying the object for which the operation is requested
|
||||
* @param {Array} params - params
|
||||
* {string} id: an opaque ID identifying the object for which
|
||||
* the operation is requested
|
||||
* The ID must be unique in the context of the calling process.
|
||||
* @message: the message to display
|
||||
* @icon_name: the name of an icon to display
|
||||
* @application_pids: the PIDs of the applications to display
|
||||
* @choices: an array of choice strings
|
||||
* @response: a GMountOperationResult
|
||||
* @response_details: a dictionary containing the response details as
|
||||
* entered by the user. The dictionary MAY contain the following properties:
|
||||
* - "choice" -> (i): the chosen answer among the array of strings passed in
|
||||
* {string} message: the message to display
|
||||
* {string} icon_name: the name of an icon to display
|
||||
* {number[]} application_pids: the PIDs of the applications to display
|
||||
* {string[]} choices: an array of choice strings
|
||||
* @param {Gio.DBusMethodInvocation} invocation - invocation
|
||||
*
|
||||
* The dialog will stay visible until clients call the Close() method, or
|
||||
* another dialog becomes visible.
|
||||
@ -759,6 +760,8 @@ var GnomeShellMountOpHandler = class {
|
||||
|
||||
/**
|
||||
* Close:
|
||||
* @param {Array} _params - params
|
||||
* @param {Gio.DBusMethodInvocation} _invocation - invocation
|
||||
*
|
||||
* Closes a dialog previously opened by AskPassword, AskQuestion or ShowProcesses.
|
||||
* If no dialog is open, does nothing.
|
||||
|
Reference in New Issue
Block a user