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

Unified Diff: lib/html/src/CrossFrameTypes.dart

Issue 11047021: New cross frame base types (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regen dart:html Created 8 years, 2 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/html/scripts/systemnative.py ('k') | lib/html/src/dart2js_DOMImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/CrossFrameTypes.dart
diff --git a/lib/html/src/CrossFrameTypes.dart b/lib/html/src/CrossFrameTypes.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e220cabcdb64fee92f0606e22bed19328817c908
--- /dev/null
+++ b/lib/html/src/CrossFrameTypes.dart
@@ -0,0 +1,34 @@
+// 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.
+
+abstract class Window {
+ // Fields.
+ Location get location;
+ History get history;
+
+ bool get closed;
+ Window get opener;
+ Window get parent;
+ Window get top;
+
+ // TODO(vsm): Add frames to navigate subframes. See 2312.
+
+ // Methods.
+ void focus();
+ void blur();
+ void close();
+ void postMessage(Dynamic message,
+ String targetOrigin,
+ [List messagePorts = null]);
+}
+
+abstract class Location {
+ void set href(String val);
+}
+
+abstract class History {
+ void back();
+ void forward();
+ void go(int distance);
+}
« no previous file with comments | « lib/html/scripts/systemnative.py ('k') | lib/html/src/dart2js_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698