Adds WebPG functionality to gmail
| webpg. | Adds WebPG functionality to gmail |
| Functions | |
| setup | Sets up the required observers and creates instances to reusable objects |
| getCanvasFrame | Retrieves the gmail UI message editor iframe |
| getCanvasFrame | Retrieves the gmail UI message editor document |
| refreshText | Refresh the button text and style to reflect the present state |
| overrideSave | Modifies the behavior of the gmail Save button to perform certains tasks when saved |
| overrideSend | Modifies the behavior of the gmail SEND button to perform certain tasks prior to sending the email |
| checkRecipients | Checks the keyring for the required keys when performing GnuPG methods that require them |
| displayStatusLine | Adds a status message line to the gmail UI to display information |
| removeStatusLine | Removes the status message line from the gmail UI |
| handleFailure | Determines the details of a GnuPG operation failure and adds status message to the UI |
| emulateMouseClick | Creates an synthetic mouseclick event for activating the standard gmail UI buttons |
| getRecipients | Retrieves the recipients in the TO, CC and BCC fields |
| addSendOptionBtn | Creates the WebPG actions menu and adds it to the gmail UI |
| getContents | Retrieves the contents of the gmail UI message editor |
| setContents | Sets the contents of the gmail UI message editor |
| clean | Strips out or replaces extra HTML markup added by the editor |
| gmailChanges | Called when the DOM changes. |
Sets up the required observers and creates instances to reusable objects
setup: function( navDiv )
Retrieves the gmail UI message editor iframe
getCanvasFrame: function()
Refresh the button text and style to reflect the present state
refreshText: function( e )
Modifies the behavior of the gmail Save button to perform certains tasks when saved
overrideSave: function()
Modifies the behavior of the gmail SEND button to perform certain tasks prior to sending the email
overrideSend: function()
Checks the keyring for the required keys when performing GnuPG methods that require them
checkRecipients: function( callback )
Adds a status message line to the gmail UI to display information
displayStatusLine: function( message )
Removes the status message line from the gmail UI
removeStatusLine: function()
Determines the details of a GnuPG operation failure and adds status message to the UI
handleFailure: function( result, recipKeys )
Creates an synthetic mouseclick event for activating the standard gmail UI buttons
emulateMouseClick: function( button )
Retrieves the recipients in the TO, CC and BCC fields
getRecipients: function()
Creates the WebPG actions menu and adds it to the gmail UI
addSendOptionBtn: function( navDiv )
Retrieves the contents of the gmail UI message editor
getContents: function( editor )
Sets the contents of the gmail UI message editor
setContents: function( editor, message )
Strips out or replaces extra HTML markup added by the editor
clean: function( text )
Called when the DOM changes.
function gmailChanges( e )