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

Unified Diff: ios/web/webui/resources/interface_provider.js

Issue 2946383002: Support new-style Mojo JS core API on IOS. (Closed)
Patch Set: . Created 3 years, 6 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 | « ios/web/webui/resources/handle_util.js ('k') | ios/web/webui/resources/mojo_api.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/resources/interface_provider.js
diff --git a/ios/web/webui/resources/interface_provider.js b/ios/web/webui/resources/interface_provider.js
deleted file mode 100644
index 75b0c9ebf0816f67f21cc0a5b3f9c295116b317a..0000000000000000000000000000000000000000
--- a/ios/web/webui/resources/interface_provider.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Module "content/public/renderer/frame_interfaces"
-//
-// This module provides the JavaScript bindings for
-// services/service_manager/public/cpp/connection.h.
-// Refer to that file for more detailed documentation for equivalent methods.
-
-define("content/public/renderer/frame_interfaces", [
- "ios/mojo/public/js/sync_message_channel",
- "ios/mojo/public/js/handle_util",
-], function(syncMessageChannel, handleUtil) {
-
- /**
- * Binds to specified Mojo interface.
- * @param {string} getInterface interface name to connect.
- * @return {!MojoResult} Result code.
- */
- function getInterface(interfaceName) {
- var nativeHandle = syncMessageChannel.sendMessage({
- name: "interface_provider.getInterface",
- args: {
- interfaceName: interfaceName
- }
- });
- return handleUtil.getJavaScriptHandle(nativeHandle);
- }
-
- var exports = {};
- exports.getInterface = getInterface;
- return exports;
-});
« no previous file with comments | « ios/web/webui/resources/handle_util.js ('k') | ios/web/webui/resources/mojo_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698