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

Side by Side Diff: tools/dom/templates/html/impl/impl_Window.darttemplate

Issue 64553010: Finished off HTML Window blurb + link for every member. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « tools/dom/docs/docs.json ('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 $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 @DocsEditable() 7 @DocsEditable()
8 $if DART2JS 8 $if DART2JS
9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind ow,DOMWindow" { 9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind ow,DOMWindow" {
10 $else 10 $else
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 * (http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html) 44 * (http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html)
45 * from WHATWG. 45 * from WHATWG.
46 */ 46 */
47 Document get document => JS('Document', '#.document', this); 47 Document get document => JS('Document', '#.document', this);
48 48
49 WindowBase _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name); 49 WindowBase _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name);
50 50
51 WindowBase _open3(url, name, options) => 51 WindowBase _open3(url, name, options) =>
52 JS('Window', '#.open(#,#,#)', this, url, name, options); 52 JS('Window', '#.open(#,#,#)', this, url, name, options);
53 53
54 /**
55 * Opens a new window.
56 *
57 * ## Other resources
58 *
59 * * [Window.open]
60 * (https://developer.mozilla.org/en-US/docs/Web/API/Window.open) from MDN.
61 * * [Window open]
62 * (http://docs.webplatform.org/wiki/dom/methods/open) from WebPlatform.org.
63 */
54 WindowBase open(String url, String name, [String options]) { 64 WindowBase open(String url, String name, [String options]) {
55 if (options == null) { 65 if (options == null) {
56 return _DOMWindowCrossFrame._createSafe(_open2(url, name)); 66 return _DOMWindowCrossFrame._createSafe(_open2(url, name));
57 } else { 67 } else {
58 return _DOMWindowCrossFrame._createSafe(_open3(url, name, options)); 68 return _DOMWindowCrossFrame._createSafe(_open3(url, name, options));
59 } 69 }
60 } 70 }
61 71
62 // API level getter and setter for Location. 72 // API level getter and setter for Location.
63 // TODO: The cross domain safe wrapper can be inserted here or folded into 73 // TODO: The cross domain safe wrapper can be inserted here or folded into
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 return controller.stream; 388 return controller.stream;
379 $else 389 $else
380 return stream; 390 return stream;
381 $endif 391 $endif
382 } 392 }
383 393
384 String getEventType(EventTarget target) { 394 String getEventType(EventTarget target) {
385 return _eventType; 395 return _eventType;
386 } 396 }
387 } 397 }
OLDNEW
« no previous file with comments | « tools/dom/docs/docs.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698