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

Unified Diff: ios/web/webui/resources/sync_message_channel.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/support.js ('k') | ios/web/webui/resources/timer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/resources/sync_message_channel.js
diff --git a/ios/web/webui/resources/sync_message_channel.js b/ios/web/webui/resources/sync_message_channel.js
deleted file mode 100644
index f7542e7c444fab2cfcfdcfd1ef1d2cdbe3d26aa4..0000000000000000000000000000000000000000
--- a/ios/web/webui/resources/sync_message_channel.js
+++ /dev/null
@@ -1,24 +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 "ios/mojo/public/js/sync_message_channel"
-//
-// This module provides the synchronous communication channel between
-// JavaScript and native code, which serves as mojo backend.
-
-define("ios/mojo/public/js/sync_message_channel", [], function() {
- var exports = {};
-
- /**
- * Synchronously sends a message to mojo backend.
- * @param {!Object} message to send.
- * @return {Object} Response from mojo backend.
- */
- exports.sendMessage = function(message) {
- var response = window.prompt(__gCrWeb.common.JSONStringify(message));
- return response ? JSON.parse(response) : undefined;
- }
-
- return exports;
-});
« no previous file with comments | « ios/web/webui/resources/support.js ('k') | ios/web/webui/resources/timer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698