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

Unified Diff: samples/pond/editors.dart

Issue 10204007: Remove many things that depend on frog. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | « samples/pond/compiler.dart ('k') | samples/pond/editors.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/pond/editors.dart
===================================================================
--- samples/pond/editors.dart (revision 6866)
+++ samples/pond/editors.dart (working copy)
@@ -1,59 +0,0 @@
-// Copyright (c) 2012, 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.
-
-// A thin Dart-API to communicate with an editor service that is running in a
-// separate isolate.
-#library("editors");
-
-/** An editor factory that creates new editor instances. */
-interface EditorFactory {
-
- /**
- * Create an editor of a specific [type] (dart, js, html) and display it under
- * a DOM element with the given [id].
- */
- Future<Editor> newEditor(String id, String type, [Function changeListener]);
-}
-
-/** A remote-editor interface. */
-interface Editor {
-
- /** Asynchronously retrieve the contents of the editor. */
- Future<String> getText();
-
- /**
- * Asynchronously update the contents of the editor. The returned future will
- * be completed when the text has been updated.
- */
- Future setText(String value);
-
- /** Create an error or warning marker between [start] and [end]. */
- Future<Marker> mark(Position start, Position end, int kind);
-
- /**
- * Ensure that an editor is visible and up to date. Sometimes editors are not
- * up to date if the UI is hidden when it was rendered.
- */
- Future refresh();
-}
-
-/** Interface for a text-marker in an editor. */
-interface Marker {
- Future clear();
-}
-
-/** Enumeration of kinds of markers. */
-class Marks {
- static final NONE = 0;
- static final ERROR = 1;
- static final WARNING = 2;
- static final INFO = 3;
-}
-
-/** Represents a position in the editor. */
-class Position {
- int line;
- int column;
- Position(this.line, this.column);
-}
« no previous file with comments | « samples/pond/compiler.dart ('k') | samples/pond/editors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698