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

Side by Side Diff: ios/web/webui/resources/console.js

Issue 2618693004: Mojo JS bindings: make sure that console.log() could be used in the bindings. (Closed)
Patch Set: . Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « ios/web/webui/mojo_js_constants.cc ('k') | mojo/public/js/router.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Module "console"
6 //
7 // This module provides basic logging support.
8
9 define("console", [
10 "ios/mojo/public/js/sync_message_channel",
11 ], function(syncMessageChannel) {
12 /**
13 * Synchronously logs a message to mojo backend.
14 * @param {string} message to log.
15 */
16 function log(message) {
17 console.log(message);
18 /*syncMessageChannel.sendMessage({
19 name: "console.log",
20 args: {
21 message: message
22 }
23 });*/
24 }
25
26 var exports = {};
27 exports.log = log;
28 return exports;
29 });
OLDNEW
« no previous file with comments | « ios/web/webui/mojo_js_constants.cc ('k') | mojo/public/js/router.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698