| 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 17 matching lines...) Expand all Loading... |
| 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 [DoNotCheckSecurity, Unforgeable, Replaceable, PutForwards=href] readonly at
tribute Location location; | 37 [DoNotCheckSecurity, Unforgeable, Replaceable, PutForwards=href] readonly at
tribute Location location; |
| 38 [Custom, MeasureAs=WindowEvent, NotEnumerable] attribute Event event; | |
| 39 | 38 |
| 40 Selection getSelection(); | 39 Selection getSelection(); |
| 41 | 40 |
| 42 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); | 41 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); |
| 43 | 42 |
| 44 boolean find([Default=Undefined] optional DOMString string, | 43 boolean find([Default=Undefined] optional DOMString string, |
| 45 [Default=Undefined] optional boolean caseSensitive, | 44 [Default=Undefined] optional boolean caseSensitive, |
| 46 [Default=Undefined] optional boolean backwards, | 45 [Default=Undefined] optional boolean backwards, |
| 47 [Default=Undefined] optional boolean wrap, | 46 [Default=Undefined] optional boolean wrap, |
| 48 [Default=Undefined] optional boolean wholeWord, | 47 [Default=Undefined] optional boolean wholeWord, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 95 |
| 97 // window.toString() requires special handling in V8 | 96 // window.toString() requires special handling in V8 |
| 98 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier
; | 97 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier
; |
| 99 | 98 |
| 100 // FIXME(sky): can't remove w/o also removing hacks in bindings generator. | 99 // FIXME(sky): can't remove w/o also removing hacks in bindings generator. |
| 101 [Custom, NotEnumerable] getter Window (DOMString name); | 100 [Custom, NotEnumerable] getter Window (DOMString name); |
| 102 }; | 101 }; |
| 103 | 102 |
| 104 Window implements WindowBase64; | 103 Window implements WindowBase64; |
| 105 Window implements WindowTimers; | 104 Window implements WindowTimers; |
| OLD | NEW |