| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DOMWindow_h | 5 #ifndef DOMWindow_h |
| 6 #define DOMWindow_h | 6 #define DOMWindow_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/Transferables.h" | 8 #include "bindings/core/v8/Transferables.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // WebKit animation extensions | 167 // WebKit animation extensions |
| 168 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; | 168 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; |
| 169 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; | 169 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; |
| 170 virtual void cancelAnimationFrame(int id) = 0; | 170 virtual void cancelAnimationFrame(int id) = 0; |
| 171 | 171 |
| 172 // Idle callback extensions | 172 // Idle callback extensions |
| 173 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio
ns&) = 0; | 173 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio
ns&) = 0; |
| 174 virtual void cancelIdleCallback(int id) = 0; | 174 virtual void cancelIdleCallback(int id) = 0; |
| 175 | 175 |
| 176 // Custom elements | 176 // Custom elements |
| 177 virtual CustomElementsRegistry* customElements(ScriptState*) const = 0; | 177 virtual CustomElementsRegistry* customElementsForBindings(ScriptState*) cons
t = 0; |
| 178 | 178 |
| 179 void captureEvents() { } | 179 void captureEvents() { } |
| 180 void releaseEvents() { } | 180 void releaseEvents() { } |
| 181 | 181 |
| 182 // FIXME: This handles both window[index] and window.frames[index]. However, | 182 // FIXME: This handles both window[index] and window.frames[index]. However, |
| 183 // the spec exposes window.frames[index] across origins but not | 183 // the spec exposes window.frames[index] across origins but not |
| 184 // window[index]... | 184 // window[index]... |
| 185 DOMWindow* anonymousIndexedGetter(uint32_t) const; | 185 DOMWindow* anonymousIndexedGetter(uint32_t) const; |
| 186 | 186 |
| 187 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor
tArray&, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&); | 187 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor
tArray&, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // implementation details to scripts. | 227 // implementation details to scripts. |
| 228 bool m_windowIsClosing; | 228 bool m_windowIsClosing; |
| 229 | 229 |
| 230 private: | 230 private: |
| 231 mutable Member<Location> m_location; | 231 mutable Member<Location> m_location; |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 } // namespace blink | 234 } // namespace blink |
| 235 | 235 |
| 236 #endif // DOMWindow_h | 236 #endif // DOMWindow_h |
| OLD | NEW |