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

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

Issue 11280084: Revert "Removed Window.focus and Window.blur as they are no longer recommended." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/scripts/htmlrenamer.py ('k') | no next file » | 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 * myIFrame.elements.add(innerIFrame); 79 * myIFrame.elements.add(innerIFrame);
80 * 80 *
81 * print(myIframe.contentWindow.top == window) // 'true' 81 * print(myIframe.contentWindow.top == window) // 'true'
82 * print(innerIFrame.contentWindow.top == window) // 'true' 82 * print(innerIFrame.contentWindow.top == window) // 'true'
83 * 83 *
84 * print(window.top == window) // 'true' 84 * print(window.top == window) // 'true'
85 */ 85 */
86 Window get top; 86 Window get top;
87 87
88 // Methods. 88 // Methods.
89 void focus();
90 void blur();
89 void close(); 91 void close();
90 void postMessage(var message, String targetOrigin, [List messagePorts = null]) ; 92 void postMessage(var message, String targetOrigin, [List messagePorts = null]) ;
91 } 93 }
92 94
93 abstract class Location { 95 abstract class Location {
94 void set href(String val); 96 void set href(String val);
95 } 97 }
96 98
97 abstract class History { 99 abstract class History {
98 void back(); 100 void back();
99 void forward(); 101 void forward();
100 void go(int distance); 102 void go(int distance);
101 } 103 }
OLDNEW
« no previous file with comments | « sdk/lib/html/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698