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

Unified Diff: lib/src/runner/plugin/environment.dart

Issue 1685363002: Add a platform plugin infrastructure. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 4 years, 10 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 | « lib/src/runner/loader.dart ('k') | lib/src/runner/plugin/platform.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/plugin/environment.dart
diff --git a/lib/src/runner/plugin/environment.dart b/lib/src/runner/plugin/environment.dart
new file mode 100644
index 0000000000000000000000000000000000000000..72e2674fb6bd4950ae908e5623c977bb272a6a7f
--- /dev/null
+++ b/lib/src/runner/plugin/environment.dart
@@ -0,0 +1,24 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'package:async/async.dart';
+
+import '../environment.dart';
+
+/// The default environment for platform plugins.
+class PluginEnvironment implements Environment {
+ final supportsDebugging = false;
+
+ const PluginEnvironment();
+
+ Uri get observatoryUrl => throw new UnsupportedError(
+ "PluginEnvironment.observatoryUrl is not supported.");
+
+ Uri get remoteDebuggerUrl => throw new UnsupportedError(
+ "PluginEnvironment.remoteDebuggerUrl is not supported.");
+
+ CancelableOperation displayPause() =>
+ throw new UnsupportedError(
+ "PluginEnvironment.displayPause is not supported.");
+}
« no previous file with comments | « lib/src/runner/loader.dart ('k') | lib/src/runner/plugin/platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698