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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // WebKit animation extensions | 166 // WebKit animation extensions |
167 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; | 167 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; |
168 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; | 168 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; |
169 virtual void cancelAnimationFrame(int id) = 0; | 169 virtual void cancelAnimationFrame(int id) = 0; |
170 | 170 |
171 // Idle callback extensions | 171 // Idle callback extensions |
172 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio
ns&) = 0; | 172 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio
ns&) = 0; |
173 virtual void cancelIdleCallback(int id) = 0; | 173 virtual void cancelIdleCallback(int id) = 0; |
174 | 174 |
175 // Custom elements | 175 // Custom elements |
176 virtual CustomElementsRegistry* customElements() const = 0; | 176 virtual CustomElementsRegistry* customElements(ScriptState*) const = 0; |
177 | 177 |
178 void captureEvents() { } | 178 void captureEvents() { } |
179 void releaseEvents() { } | 179 void releaseEvents() { } |
180 | 180 |
181 // FIXME: This handles both window[index] and window.frames[index]. However, | 181 // FIXME: This handles both window[index] and window.frames[index]. However, |
182 // the spec exposes window.frames[index] across origins but not | 182 // the spec exposes window.frames[index] across origins but not |
183 // window[index]... | 183 // window[index]... |
184 DOMWindow* anonymousIndexedGetter(uint32_t) const; | 184 DOMWindow* anonymousIndexedGetter(uint32_t) const; |
185 | 185 |
186 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor
tArray&, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&); | 186 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor
tArray&, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // implementation details to scripts. | 224 // implementation details to scripts. |
225 bool m_windowIsClosing; | 225 bool m_windowIsClosing; |
226 | 226 |
227 private: | 227 private: |
228 mutable Member<Location> m_location; | 228 mutable Member<Location> m_location; |
229 }; | 229 }; |
230 | 230 |
231 } // namespace blink | 231 } // namespace blink |
232 | 232 |
233 #endif // DOMWindow_h | 233 #endif // DOMWindow_h |
OLD | NEW |