Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1492)

Unified Diff: mojo/public/js/associated_bindings.js

Issue 2840333002: Add encounteredError() to AssociatedInterfacePtrController. (Closed)
Patch Set: Make encounteredError private. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/public/js/lib/interface_endpoint_client.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/associated_bindings.js
diff --git a/mojo/public/js/associated_bindings.js b/mojo/public/js/associated_bindings.js
index 18ac452daf599c11d1a3e8db0ed0e78a90a0a7ac..869eedb4536f73730cc05ec0db32defee932fe34 100644
--- a/mojo/public/js/associated_bindings.js
+++ b/mojo/public/js/associated_bindings.js
@@ -116,6 +116,13 @@ define("mojo/public/js/associated_bindings", [
this.reset();
};
+ // Indicates whether an error has been encountered. If true, method calls
+ // on this interface will be dropped (and may already have been dropped).
+ AssociatedInterfacePtrController.prototype.getEncounteredError = function() {
+ return this.interfaceEndpointClient_ ?
+ this.interfaceEndpointClient_.getEncounteredError() : false;
+ };
+
AssociatedInterfacePtrController.prototype.setConnectionErrorHandler =
function(callback) {
if (!this.isBound()) {
« no previous file with comments | « no previous file | mojo/public/js/lib/interface_endpoint_client.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698