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

Side by Side Diff: webrtc/rtc_tools/rtcbot/bot/api.js

Issue 2965593002: Move webrtc/{tools => rtc_tools} (Closed)
Patch Set: Adding back root changes Created 3 years, 5 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 | « webrtc/rtc_tools/rtcbot/README ('k') | webrtc/rtc_tools/rtcbot/bot/browser/bot.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 // Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license 3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the LICENSE file in the root of the source 4 // that can be found in the LICENSE file in the root of the source
5 // tree. An additional intellectual property rights grant can be found 5 // tree. An additional intellectual property rights grant can be found
6 // in the file PATENTS. All contributing project authors may 6 // in the file PATENTS. All contributing project authors may
7 // be found in the AUTHORS file in the root of the source tree. 7 // be found in the AUTHORS file in the root of the source tree.
8 // 8 //
9 // This file exposes the api for the bot to connect to the host script 9 // This file exposes the api for the bot to connect to the host script
10 // waiting a websocket connection and using dnode for javascript rpc. 10 // waiting a websocket connection and using dnode for javascript rpc.
(...skipping 17 matching lines...) Expand all
28 function expose(obj, src, method, casts) { 28 function expose(obj, src, method, casts) {
29 obj[method] = function () { 29 obj[method] = function () {
30 for (index in casts) 30 for (index in casts)
31 arguments[index] = new (casts[index])(arguments[index]); 31 arguments[index] = new (casts[index])(arguments[index]);
32 src[method].apply(src, arguments); 32 src[method].apply(src, arguments);
33 } 33 }
34 } 34 }
35 35
36 window.expose = expose; 36 window.expose = expose;
37 window.connectToServer = connectToServer; 37 window.connectToServer = connectToServer;
OLDNEW
« no previous file with comments | « webrtc/rtc_tools/rtcbot/README ('k') | webrtc/rtc_tools/rtcbot/bot/browser/bot.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698