Home
last modified time | relevance | path

Searched refs:onError (Results 1 – 25 of 128) sorted by relevance

123456

/external/chromium_org/remoting/webapp/
Dhost_daemon_facade.js73 remoting.HostDaemonFacade.PendingReply = function(type, onDone, onError) { argument
76 this.onError = onError;
128 function(message, onDone, onError) { argument
130 onError(this.error_);
136 message.type + 'Response', onDone, onError);
171 reply.onError(remoting.Error.UNEXPECTED);
293 pendingReplies[/** @type {number} */(id)].onError(this.error_);
305 function(onDone, onError) { argument
306 this.postMessage_({type: 'getHostName'}, onDone, onError);
320 function(hostId, pin, onDone, onError) { argument
[all …]
Dhost_controller.js110 remoting.HostController.prototype.getConsent = function(onDone, onError) { argument
111 this.hostDaemonFacade_.getUsageStatsConsent(onDone, onError);
125 onError) { argument
149 onError(error);
214 onError);
249 onError);
257 onError);
262 onError(remoting.Error.REGISTRATION_FAILED);
311 null, hostName, privateKey, publicKey, hostClientId), onError);
324 onHostClientId.bind(null, hostName, privateKey, publicKey), onError);
[all …]
Didentity.js47 remoting.Identity.prototype.callWithToken = function(onOk, onError) { argument
48 this.pendingCallbacks_.push(new remoting.Identity.Callbacks(onOk, onError));
83 remoting.Identity.prototype.getEmail = function(onOk, onError) { argument
93 remoting.OAuth2Api.getEmail.bind(null, onResponse, onError), onError);
132 callback.onError(remoting.Error.NOT_AUTHENTICATED);
161 remoting.Identity.Callbacks = function(onOk, onError) { argument
165 this.onError = onError;
Doauth2_api.js72 onDone, onError, clientId, clientSecret, refreshToken) { argument
85 onError(remoting.Error.UNEXPECTED);
90 onError(remoting.OAuth2Api.interpretXhrStatus_(xhr.status));
120 onDone, onError, clientId, clientSecret, code, redirectUri) { argument
134 onError(remoting.Error.UNEXPECTED);
139 onError(remoting.OAuth2Api.interpretXhrStatus_(xhr.status));
164 remoting.OAuth2Api.getEmail = function(onDone, onError, token) { argument
174 onError(remoting.Error.UNEXPECTED);
179 onError(remoting.OAuth2Api.interpretXhrStatus_(xhr.status));
Dthird_party_host_permissions.js40 onOk, onError) { argument
54 that.showPermissionConfirmation_(onOk, onError);
67 function(onOk, onError) { argument
80 that.requestPermission_(onOk, onError);
96 onOk, onError) { argument
104 onError();
Dwcs_loader.js53 remoting.WcsLoader.prototype.start = function(token, onReady, onError) { argument
57 onError(remoting.Error.UNEXPECTED);
80 onError(error);
118 remoting.WcsLoader.prototype.validateToken = function(token, onOk, onError) { argument
138 onError(error);
Doauth2.js303 var onError = function(error) { function
308 this.onTokens_.bind(this, onDone), onError,
323 remoting.OAuth2.prototype.callWithToken = function(onOk, onError) { argument
328 this.onAccessToken_.bind(this, onOk), onError,
335 onError(remoting.Error.NOT_AUTHENTICATED);
348 remoting.OAuth2.prototype.getEmail = function(onOk, onError) { argument
363 remoting.OAuth2Api.getEmail.bind(null, onResponse, onError), onError);
Dhost_setup_dialog.js199 function onError(error) { function
210 this.hostController_.getConsent(onGetConsent, onError);
351 var onError = function(error) { function
377 hostInstallDialog.show(onDone, onError);
407 function onError(error) { function
415 onError);
442 function onError(error) { function
449 this.hostController_.updatePin(flow.pin, onPinUpdated, onError);
479 function onError(error) { function
486 this.hostController_.stop(onHostStopped, onError);
/external/chromium_org/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/
Dbackground.js35 function onUnmountRequested(options, onSuccess, onError) { argument
37 onError('IN_USE');
49 onError('FAILED');
53 function onGetMetadataRequested(options, onSuccess, onError) { argument
61 }, onError);
64 function onReadDirectoryRequested(options, onSuccess, onError) { argument
69 onError('NOT_FOUND');
73 onError('NOT_A_DIRECTORY');
93 }, onError);
96 function onOpenFileRequested(options, onSuccess, onError) { argument
[all …]
/external/chromium_org/chrome/common/extensions/docs/examples/api/fileSystemProvider/basic/
Dbackground.js30 function onGetMetadataRequested(options, onSuccess, onError) { argument
32 onError('NOT_FOUND');
37 function onReadDirectoryRequested(options, onSuccess, onError) { argument
39 onError('NOT_FOUND');
43 onError('NOT_A_DIRECTORY');
65 function onOpenFileRequested(options, onSuccess, onError) { argument
67 onError('INVALID_OPERATION');
74 function onCloseFileRequested(options, onSuccess, onError) { argument
76 onError('INVALID_OPERATION');
83 function onReadFileRequested(options, onSuccess, onError) { argument
[all …]
/external/chromium_org/native_client_sdk/src/examples/api/file_io/
Dtest.js42 function waitForLog(logMessage, onLogChanged, onError) { argument
61 if (onError) {
63 onError();
80 function clickExecuteButtonAndWaitForLog(logMessage, onLogChanged, onError) { argument
81 waitForLog(logMessage, onLogChanged, onError);
102 function saveFile(filename, fileText, onFileSaved, onError) { argument
106 clickExecuteButtonAndWaitForLog('Save success', onFileSaved, onError);
109 function loadFile(filename, onFileLoaded, onError) { argument
113 clickExecuteButtonAndWaitForLog('Load success', onFileLoaded, onError);
116 function deleteFile(filename, onFileDeleted, onError) { argument
[all …]
/external/chromium_org/remoting/webapp/unittests/
Dxmpp_stream_parser_unittest.js10 var onError = null;
16 onError = sinon.spy();
21 parser.setCallbacks(onStanza, onError);
58 sinon.assert.calledWith(onError);
64 sinon.assert.calledWith(onError);
69 sinon.assert.calledWith(onError);
77 sinon.assert.calledWith(onError);
86 sinon.assert.calledWith(onError);
Dxmpp_login_handler_unittest.js16 var onError = null;
25 onError = sinon.spy();
31 onHandshakeDone, onError);
135 sinon.assert.calledWith(onError, remoting.Error.AUTHENTICATION_FAILED);
143 sinon.assert.calledWith(onError, remoting.Error.UNEXPECTED);
/external/chromium_org/third_party/sqlite/src/src/
Dinsert.c327 int onError, /* How to handle constraint errors */
439 int onError /* How to handle constraint errors */ in sqlite3Insert() argument
552 if( pColumn==0 && xferOptimization(pParse, pTab, pSelect, onError, iDb) ){ in sqlite3Insert()
871 pTab, regCols-pTab->nCol-1, onError, endOfLoop); in sqlite3Insert()
978 keyColumn>=0, 0, onError, endOfLoop, &isReplace in sqlite3Insert()
996 pTab, regData-2-pTab->nCol, onError, endOfLoop); in sqlite3Insert()
1152 int onError; /* Conflict resolution strategy */ in sqlite3GenerateConstraintChecks() local
1173 onError = pTab->aCol[i].notNull; in sqlite3GenerateConstraintChecks()
1174 if( onError==OE_None ) continue; in sqlite3GenerateConstraintChecks()
1176 onError = overrideError; in sqlite3GenerateConstraintChecks()
[all …]
/external/chromium_org/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DConnector.java107 onError(e); in accept()
154 public void onError(MojoException exception) { in onError() method in Connector.AsyncWaiterCallback
155 Connector.this.onError(exception); in onError()
168 onError(new MojoException(result)); in onAsyncWaiterResult()
172 private void onError(MojoException exception) { in onError() method in Connector
189 onError(new MojoException(MojoResult.INVALID_ARGUMENT)); in registerAsyncWaiterForRead()
202 onError(e); in readOutstandingMessages()
209 onError(new MojoException(result)); in readOutstandingMessages()
/external/chromium_org/native_client_sdk/src/build_tools/screenshot_extension/
Dscreenshot.js28 function addCallback(onSuccess, onError) { argument
30 callbackMap[id] = [onSuccess, onError];
144 function captureTab(onSuccess, onError) { argument
145 var id = addCallback(onSuccess, onError);
161 function captureElement(element, onSuccess, onError) { argument
188 var id = addCallback(onScreenCaptured, onError);
/external/chromium_org/ui/file_manager/video_player/js/cast/
Dcaster.js52 var onError = function() { function
53 script.removeEventListener('error', onError);
81 script.addEventListener('error', onError);
125 var onError = function(error) { function
133 chrome.cast.initialize(apiConfig, onInitSuccess, onError);
/external/chromium_org/remoting/webapp/browser_test/
Dmock_session_connector.js20 remoting.MockSessionConnector = function(clientContainer, onConnected, onError, argument
24 this.onError = onError;
117 function(clientContainer, onConnected, onError, onExtensionMessage) { argument
119 clientContainer, onConnected, onError, onExtensionMessage);
/external/chromium_org/ui/file_manager/file_manager/foreground/js/metadata/
Dmetadata_dispatcher.js171 function onError(err, stepName) { function
189 onError('unsupported format');
197 onError);
202 entry.file(function(file) { nextStep(file, parser) }, onError);
209 parser.parse(file, metadata, callback, onError);
211 onError(e.stack);
Dmpeg_parser.js151 MpegParser.prototype.parse = function(file, metadata, callback, onError) { argument
156 onError, callback.bind(null, metadata));
243 rootParser, file, filePos, size, name, onError, onSuccess) { argument
246 reader.onerror = onError;
250 onError, onSuccess);
267 buf, rootParser, file, filePos, size, name, onError, onSuccess) { argument
310 onError, onSuccess);
317 onError(e.toString());
Did3_parser.js257 Id3Parser.prototype.parse = function(file, metadata, callback, onError) { argument
273 this.nextStep, this.onError, this);
316 util.readFileBytes(file, 0, 10, this.nextStep, this.onError,
336 this.onError, this);
426 onError);
431 id3v1Parser.setFailureCallback(metadataParser.onError);
432 id3v2Parser.setFailureCallback(metadataParser.onError);
/external/chromium_org/ui/file_manager/file_manager/foreground/js/
Dfile_watcher.js151 FileWatcher.prototype.resetWatchedEntry_ = function(onSuccess, onError) { argument
163 onError();
185 entry, onSuccess, onError) { argument
194 onError();
220 this.resetWatchedEntry_(setEntryClosure, onError);
/external/chromium_org/tools/telemetry/telemetry/page/actions/
Dmedia_action.js42 function onError(e) { function
46 element.addEventListener('error', onError);
47 element.addEventListener('abort', onError);
/external/chromium_org/ui/file_manager/gallery/js/
Dgallery_item.js257 var onError = function(error) { function
271 onError(error);
282 }, onError);
291 onError('NotFound');
295 }.bind(this), onError);
319 this.entry_.getParent(saveToDir, onError);
/external/chromium_org/extensions/test/data/
Ddata_receiver_unittest.js34 var onError = receiver.onError;
35 receiver.onError = function() { function
36 $Function.apply(onError, receiver, arguments);

123456