OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #library('bcap_client'); | 5 #library('bcap_client'); |
6 | 6 |
7 // Bcap library for use on the client. It implements a BcapServer that can | 7 // Bcap library for use on the client. It implements a BcapServer that can |
8 // invoke both client-side and http-based Bcaps. Also interoperates with the | 8 // invoke both client-side and http-based Bcaps. Also interoperates with the |
9 // Belay implementation in JS so that Dart based web pages can fully exchange | 9 // Belay implementation in JS so that Dart based web pages can fully exchange |
10 // Bcaps with other Belay based apps (client and server side). | 10 // Bcaps with other Belay based apps (client and server side). |
11 | 11 |
12 #import('../../../client/base/base.dart'); | 12 #import('../../../client/base/base.dart'); |
13 #import('../../../client/html/html.dart'); | 13 #import('dart:html'); |
14 #import('../../../client/util/utilslib.dart'); | 14 #import('../../../client/util/utilslib.dart'); |
15 #import('../../../lib/json/json.dart'); | 15 #import('../../../lib/json/json.dart'); |
16 #import('bcap.dart'); | 16 #import('bcap.dart'); |
17 #import('src/impl_bcap.dart'); | 17 #import('src/impl_bcap.dart'); |
18 | 18 |
19 #source('src/BelayPort.dart'); | 19 #source('src/BelayPort.dart'); |
20 #source('src/BelayClient.dart'); | 20 #source('src/BelayClient.dart'); |
21 #source('src/BcapTunnel.dart'); | 21 #source('src/BcapTunnel.dart'); |
22 | 22 |
23 #native('src/BelayPort.js'); | 23 #native('src/BelayPort.js'); |
(...skipping 30 matching lines...) Expand all Loading... |
54 } else { | 54 } else { |
55 super.privateInvoke(ser, method, data, ski, fki); | 55 super.privateInvoke(ser, method, data, ski, fki); |
56 } | 56 } |
57 } | 57 } |
58 | 58 |
59 Bcap wrapURL(String url, [String key = null]) { | 59 Bcap wrapURL(String url, [String key = null]) { |
60 return new BcapImpl(url, this); | 60 return new BcapImpl(url, this); |
61 } | 61 } |
62 } | 62 } |
63 | 63 |
OLD | NEW |