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

Side by Side Diff: client/dom/generated/src/frog/DOMWindow.dart

Issue 9539003: Safely wrap window.top in frog dom. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and merge Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/dom/frog/dom_frog.dart ('k') | client/dom/generated/src/frog/HTMLIFrameElement.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
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.
1 4
2 class _DOMWindowJs extends _EventTargetJs implements DOMWindow native "@*DOMWind ow" { 5 class _DOMWindowJs extends _EventTargetJs implements DOMWindow native "@*DOMWind ow" {
3 6
4 static final int PERSISTENT = 1; 7 static final int PERSISTENT = 1;
5 8
6 static final int TEMPORARY = 0; 9 static final int TEMPORARY = 0;
7 10
8 final _DOMApplicationCacheJs applicationCache; 11 final _DOMApplicationCacheJs applicationCache;
9 12
10 final _NavigatorJs clientInformation; 13 final _NavigatorJs clientInformation;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 final _StorageJs sessionStorage; 89 final _StorageJs sessionStorage;
87 90
88 String status; 91 String status;
89 92
90 final _BarInfoJs statusbar; 93 final _BarInfoJs statusbar;
91 94
92 final _StyleMediaJs styleMedia; 95 final _StyleMediaJs styleMedia;
93 96
94 final _BarInfoJs toolbar; 97 final _BarInfoJs toolbar;
95 98
96 final _DOMWindowJs top;
97
98 final _IDBFactoryJs webkitIndexedDB; 99 final _IDBFactoryJs webkitIndexedDB;
99 100
100 final _NotificationCenterJs webkitNotifications; 101 final _NotificationCenterJs webkitNotifications;
101 102
102 final _StorageInfoJs webkitStorageInfo; 103 final _StorageInfoJs webkitStorageInfo;
103 104
104 final _DOMWindowJs window; 105 final _DOMWindowJs window;
105 106
106 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 107 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
107 108
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 182
182 _WebKitPointJs webkitConvertPointFromPageToNode(_NodeJs node, _WebKitPointJs p ) native; 183 _WebKitPointJs webkitConvertPointFromPageToNode(_NodeJs node, _WebKitPointJs p ) native;
183 184
184 void webkitPostMessage(Dynamic message, String targetOrigin, [List transferLis t = null]) native; 185 void webkitPostMessage(Dynamic message, String targetOrigin, [List transferLis t = null]) native;
185 186
186 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, _Eleme ntJs element) native; 187 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, _Eleme ntJs element) native;
187 188
188 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback = null]) native; 189 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback = null]) native;
189 190
190 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k = null, ErrorCallback errorCallback = null]) native; 191 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k = null, ErrorCallback errorCallback = null]) native;
192
193
194 Window get _top() native "return this.top;";
195
196 // Override top to return secure wrapper.
197 Window get top() => _DOMWindowCrossFrameImpl._createSafe(_top);
191 } 198 }
OLDNEW
« no previous file with comments | « client/dom/frog/dom_frog.dart ('k') | client/dom/generated/src/frog/HTMLIFrameElement.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698