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

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

Issue 2405093003: [WIP] Mojo native bindings interface.
Patch Set: fixes webui tests Created 3 years, 10 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 | « mojo/public/js/connector.js ('k') | mojo/public/js/router.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/interface_types.js
diff --git a/mojo/public/js/interface_types.js b/mojo/public/js/interface_types.js
index 01ea2d1dd466a76f2f5ccb1259efe0eac00a1677..6d028824bd9ac45d997b6ec3dd3332e0518bbd52 100644
--- a/mojo/public/js/interface_types.js
+++ b/mojo/public/js/interface_types.js
@@ -3,8 +3,7 @@
// found in the LICENSE file.
define("mojo/public/js/interface_types", [
- "mojo/public/js/core",
-], function(core) {
+], function() {
// ---------------------------------------------------------------------------
@@ -14,14 +13,14 @@ define("mojo/public/js/interface_types", [
}
InterfacePtrInfo.prototype.isValid = function() {
- return core.isHandle(this.handle);
+ return this.handle instanceof MojoHandle;
};
InterfacePtrInfo.prototype.close = function() {
if (!this.isValid())
return;
- core.close(this.handle);
+ this.handle.close();
this.handle = null;
this.version = 0;
};
@@ -33,14 +32,14 @@ define("mojo/public/js/interface_types", [
}
InterfaceRequest.prototype.isValid = function() {
- return core.isHandle(this.handle);
+ return this.handle instanceof MojoHandle;
};
InterfaceRequest.prototype.close = function() {
if (!this.isValid())
return;
- core.close(this.handle);
+ this.handle.close();
this.handle = null;
};
« no previous file with comments | « mojo/public/js/connector.js ('k') | mojo/public/js/router.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698