OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 | 7 |
8 import 'package:async/async.dart'; | 8 import 'package:async/async.dart'; |
9 import 'package:http_parser/http_parser.dart'; | 9 import 'package:http_parser/http_parser.dart'; |
10 import 'package:pool/pool.dart'; | 10 import 'package:pool/pool.dart'; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 }); | 234 }); |
235 final _closeMemoizer = new AsyncMemoizer(); | 235 final _closeMemoizer = new AsyncMemoizer(); |
236 } | 236 } |
237 | 237 |
238 /// An implementation of [Environment] for the browser. | 238 /// An implementation of [Environment] for the browser. |
239 /// | 239 /// |
240 /// All methods forward directly to [BrowserManager]. | 240 /// All methods forward directly to [BrowserManager]. |
241 class _BrowserEnvironment implements Environment { | 241 class _BrowserEnvironment implements Environment { |
242 final BrowserManager _manager; | 242 final BrowserManager _manager; |
243 | 243 |
| 244 final supportsDebugging = true; |
| 245 |
244 final Uri observatoryUrl; | 246 final Uri observatoryUrl; |
245 | 247 |
246 final Uri remoteDebuggerUrl; | 248 final Uri remoteDebuggerUrl; |
247 | 249 |
248 _BrowserEnvironment(this._manager, this.observatoryUrl, | 250 _BrowserEnvironment(this._manager, this.observatoryUrl, |
249 this.remoteDebuggerUrl); | 251 this.remoteDebuggerUrl); |
250 | 252 |
251 CancelableOperation displayPause() => _manager._displayPause(); | 253 CancelableOperation displayPause() => _manager._displayPause(); |
252 } | 254 } |
OLD | NEW |