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

Side by Side Diff: sdk/lib/html/src/CrossFrameTypes.dart

Issue 11453027: Fixed a lot of dartanalyzer static analysis issues with the html lib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/src/Isolates.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of html; 5 part of html;
6 6
7 /** 7 /**
8 * An object representing the top-level context object for web scripting. 8 * An object representing the top-level context object for web scripting.
9 * 9 *
10 * In a web browser, a [Window] object represents the actual browser window. 10 * In a web browser, a [Window] object represents the actual browser window.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 * window.location('http://www.mysite.com', 'foo'); 108 * window.location('http://www.mysite.com', 'foo');
109 * // Does not close this window, as the history has changed. 109 * // Does not close this window, as the history has changed.
110 * window.close(); 110 * window.close();
111 * print(window.closed()); // 'false' 111 * print(window.closed()); // 'false'
112 * 112 *
113 * See also: 113 * See also:
114 * 114 *
115 * * [Window close discussion](http://www.w3.org/TR/html5/browsers.html#dom-wi ndow-close) from the W3C 115 * * [Window close discussion](http://www.w3.org/TR/html5/browsers.html#dom-wi ndow-close) from the W3C
116 */ 116 */
117 void close(); 117 void close();
118 void postMessage(var message, String targetOrigin, [List messagePorts = null]) ; 118 void postMessage(var message, String targetOrigin, [List messagePorts]);
119 } 119 }
120 120
121 abstract class Location { 121 abstract class Location {
122 void set href(String val); 122 void set href(String val);
123 } 123 }
124 124
125 abstract class History { 125 abstract class History {
126 void back(); 126 void back();
127 void forward(); 127 void forward();
128 void go(int distance); 128 void go(int distance);
129 } 129 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/src/Isolates.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698