mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-963: Add missing function names.
This commit is contained in:
@@ -148,7 +148,7 @@ angular.module('client').factory('ManagedDisplay', ['$rootScope',
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Store changes to display size
|
// Store changes to display size
|
||||||
display.onresize = function() {
|
display.onresize = function setClientSize() {
|
||||||
$rootScope.$apply(function updateClientSize() {
|
$rootScope.$apply(function updateClientSize() {
|
||||||
managedDisplay.size = new ManagedDisplay.Dimensions({
|
managedDisplay.size = new ManagedDisplay.Dimensions({
|
||||||
width : display.getWidth(),
|
width : display.getWidth(),
|
||||||
@@ -158,7 +158,7 @@ angular.module('client').factory('ManagedDisplay', ['$rootScope',
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Store changes to display cursor
|
// Store changes to display cursor
|
||||||
display.oncursor = function(canvas, x, y) {
|
display.oncursor = function setClientCursor(canvas, x, y) {
|
||||||
$rootScope.$apply(function updateClientCursor() {
|
$rootScope.$apply(function updateClientCursor() {
|
||||||
managedDisplay.cursor = new ManagedDisplay.Cursor({
|
managedDisplay.cursor = new ManagedDisplay.Cursor({
|
||||||
canvas : canvas,
|
canvas : canvas,
|
||||||
|
@@ -116,7 +116,7 @@ angular.module('client').factory('ManagedFileTransferState', [function defineMan
|
|||||||
* specified, the status code of the ManagedFileTransferState is not
|
* specified, the status code of the ManagedFileTransferState is not
|
||||||
* touched.
|
* touched.
|
||||||
*/
|
*/
|
||||||
ManagedFileTransferState.setStreamState = function(transferState, streamState, statusCode) {
|
ManagedFileTransferState.setStreamState = function setStreamState(transferState, streamState, statusCode) {
|
||||||
|
|
||||||
// Do not set state after an error is registered
|
// Do not set state after an error is registered
|
||||||
if (transferState.streamState === ManagedFileTransferState.StreamState.ERROR)
|
if (transferState.streamState === ManagedFileTransferState.StreamState.ERROR)
|
||||||
|
@@ -134,7 +134,7 @@ angular.module('client').factory('ManagedFileUpload', ['$rootScope', '$injector'
|
|||||||
|
|
||||||
// Construct reader for file
|
// Construct reader for file
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
reader.onloadend = function() {
|
reader.onloadend = function fileContentsLoaded() {
|
||||||
|
|
||||||
// Open file for writing
|
// Open file for writing
|
||||||
var stream = client.createFileStream(file.type, file.name);
|
var stream = client.createFileStream(file.type, file.name);
|
||||||
@@ -159,7 +159,7 @@ angular.module('client').factory('ManagedFileUpload', ['$rootScope', '$injector'
|
|||||||
|
|
||||||
// Invalidate stream on all errors
|
// Invalidate stream on all errors
|
||||||
// Continue upload when acknowledged
|
// Continue upload when acknowledged
|
||||||
stream.onack = function(status) {
|
stream.onack = function ackReceived(status) {
|
||||||
|
|
||||||
// Handle errors
|
// Handle errors
|
||||||
if (status.isError()) {
|
if (status.isError()) {
|
||||||
|
Reference in New Issue
Block a user