| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // HTML 5 draft spec: | 27 // HTML 5 draft spec: |
| 28 // http://www.w3.org/html/wg/drafts/html/master/browsers.html#window | 28 // http://www.w3.org/html/wg/drafts/html/master/browsers.html#window |
| 29 // FIXME: explain all uses of [DoNotCheckSecurity] | 29 // FIXME: explain all uses of [DoNotCheckSecurity] |
| 30 [ | 30 [ |
| 31 CheckSecurity=Frame, | 31 CheckSecurity=Frame, |
| 32 Custom=ToV8, | 32 Custom=ToV8, |
| 33 ImplementedAs=LocalDOMWindow, | 33 ImplementedAs=LocalDOMWindow, |
| 34 PrimaryGlobal, | 34 PrimaryGlobal, |
| 35 ] interface Window : EventTarget { | 35 ] interface Window : EventTarget { |
| 36 readonly attribute Screen screen; | 36 readonly attribute Screen screen; |
| 37 readonly attribute History history; | |
| 38 [DoNotCheckSecurity, Unforgeable, Replaceable, PutForwards=href] readonly at
tribute Location location; | 37 [DoNotCheckSecurity, Unforgeable, Replaceable, PutForwards=href] readonly at
tribute Location location; |
| 39 [Custom, MeasureAs=WindowEvent, NotEnumerable] attribute Event event; | 38 [Custom, MeasureAs=WindowEvent, NotEnumerable] attribute Event event; |
| 40 | 39 |
| 41 Selection getSelection(); | 40 Selection getSelection(); |
| 42 | 41 |
| 43 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); | 42 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); |
| 44 | 43 |
| 45 boolean find([Default=Undefined] optional DOMString string, | 44 boolean find([Default=Undefined] optional DOMString string, |
| 46 [Default=Undefined] optional boolean caseSensitive, | 45 [Default=Undefined] optional boolean caseSensitive, |
| 47 [Default=Undefined] optional boolean backwards, | 46 [Default=Undefined] optional boolean backwards, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 96 |
| 98 // window.toString() requires special handling in V8 | 97 // window.toString() requires special handling in V8 |
| 99 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier
; | 98 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier
; |
| 100 | 99 |
| 101 // FIXME(sky): can't remove w/o also removing hacks in bindings generator. | 100 // FIXME(sky): can't remove w/o also removing hacks in bindings generator. |
| 102 [Custom, NotEnumerable] getter Window (DOMString name); | 101 [Custom, NotEnumerable] getter Window (DOMString name); |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 Window implements WindowBase64; | 104 Window implements WindowBase64; |
| 106 Window implements WindowTimers; | 105 Window implements WindowTimers; |
| OLD | NEW |