| 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" |
| 11 #include "core/frame/DOMWindowBase64.h" | 11 #include "core/frame/DOMWindowBase64.h" |
| 12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
| 13 #include "platform/scroll/ScrollableArea.h" | 13 #include "platform/scroll/ScrollableArea.h" |
| 14 | 14 |
| 15 #include "wtf/Forward.h" | 15 #include "wtf/Forward.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class ApplicationCache; | 19 class ApplicationCache; |
| 20 class BarProp; | 20 class BarProp; |
| 21 class CSSRuleList; | 21 class CSSRuleList; |
| 22 class CSSStyleDeclaration; | 22 class CSSStyleDeclaration; |
| 23 class CustomElementsRegistry; | 23 class CustomElementRegistry; |
| 24 class DOMSelection; | 24 class DOMSelection; |
| 25 class DOMVisualViewport; | 25 class DOMVisualViewport; |
| 26 class DOMWindowCSS; | 26 class DOMWindowCSS; |
| 27 class Document; | 27 class Document; |
| 28 class Element; | 28 class Element; |
| 29 class External; | 29 class External; |
| 30 class Frame; | 30 class Frame; |
| 31 class FrameRequestCallback; | 31 class FrameRequestCallback; |
| 32 class History; | 32 class History; |
| 33 class IdleRequestCallback; | 33 class IdleRequestCallback; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // WebKit animation extensions | 171 // WebKit animation extensions |
| 172 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; | 172 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; |
| 173 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; | 173 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; |
| 174 virtual void cancelAnimationFrame(int id) = 0; | 174 virtual void cancelAnimationFrame(int id) = 0; |
| 175 | 175 |
| 176 // Idle callback extensions | 176 // Idle callback extensions |
| 177 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio
ns&) = 0; | 177 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio
ns&) = 0; |
| 178 virtual void cancelIdleCallback(int id) = 0; | 178 virtual void cancelIdleCallback(int id) = 0; |
| 179 | 179 |
| 180 // Custom elements | 180 // Custom elements |
| 181 virtual CustomElementsRegistry* customElements(ScriptState*) const = 0; | 181 virtual CustomElementRegistry* customElements(ScriptState*) const = 0; |
| 182 | 182 |
| 183 // Obsolete APIs | 183 // Obsolete APIs |
| 184 void captureEvents() { } | 184 void captureEvents() { } |
| 185 void releaseEvents() { } | 185 void releaseEvents() { } |
| 186 External* external() const; | 186 External* external() const; |
| 187 | 187 |
| 188 // FIXME: This handles both window[index] and window.frames[index]. However, | 188 // FIXME: This handles both window[index] and window.frames[index]. However, |
| 189 // the spec exposes window.frames[index] across origins but not | 189 // the spec exposes window.frames[index] across origins but not |
| 190 // window[index]... | 190 // window[index]... |
| 191 DOMWindow* anonymousIndexedGetter(uint32_t) const; | 191 DOMWindow* anonymousIndexedGetter(uint32_t) const; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // implementation details to scripts. | 233 // implementation details to scripts. |
| 234 bool m_windowIsClosing; | 234 bool m_windowIsClosing; |
| 235 | 235 |
| 236 private: | 236 private: |
| 237 mutable Member<Location> m_location; | 237 mutable Member<Location> m_location; |
| 238 }; | 238 }; |
| 239 | 239 |
| 240 } // namespace blink | 240 } // namespace blink |
| 241 | 241 |
| 242 #endif // DOMWindow_h | 242 #endif // DOMWindow_h |
| OLD | NEW |