| 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 CustomElementsRegistry; |
| 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 Frame; | 30 class Frame; |
| 30 class FrameRequestCallback; | 31 class FrameRequestCallback; |
| 31 class History; | 32 class History; |
| 32 class IdleRequestCallback; | 33 class IdleRequestCallback; |
| 33 class IdleRequestOptions; | 34 class IdleRequestOptions; |
| 34 class Location; | 35 class Location; |
| 35 class LocalDOMWindow; | 36 class LocalDOMWindow; |
| 36 class MessageEvent; | 37 class MessageEvent; |
| 37 class MediaQueryList; | 38 class MediaQueryList; |
| 38 class Navigator; | 39 class Navigator; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; | 173 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; |
| 173 virtual void cancelAnimationFrame(int id) = 0; | 174 virtual void cancelAnimationFrame(int id) = 0; |
| 174 | 175 |
| 175 // Idle callback extensions | 176 // Idle callback extensions |
| 176 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio
ns&) = 0; | 177 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio
ns&) = 0; |
| 177 virtual void cancelIdleCallback(int id) = 0; | 178 virtual void cancelIdleCallback(int id) = 0; |
| 178 | 179 |
| 179 // Custom elements | 180 // Custom elements |
| 180 virtual CustomElementsRegistry* customElements(ScriptState*) const = 0; | 181 virtual CustomElementsRegistry* customElements(ScriptState*) const = 0; |
| 181 | 182 |
| 183 // Obsolete APIs |
| 182 void captureEvents() { } | 184 void captureEvents() { } |
| 183 void releaseEvents() { } | 185 void releaseEvents() { } |
| 186 External* external() const; |
| 184 | 187 |
| 185 // FIXME: This handles both window[index] and window.frames[index]. However, | 188 // FIXME: This handles both window[index] and window.frames[index]. However, |
| 186 // the spec exposes window.frames[index] across origins but not | 189 // the spec exposes window.frames[index] across origins but not |
| 187 // window[index]... | 190 // window[index]... |
| 188 DOMWindow* anonymousIndexedGetter(uint32_t) const; | 191 DOMWindow* anonymousIndexedGetter(uint32_t) const; |
| 189 | 192 |
| 190 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor
tArray&, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&); | 193 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor
tArray&, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&); |
| 191 | 194 |
| 192 String sanitizedCrossDomainAccessErrorMessage(const LocalDOMWindow* callingW
indow) const; | 195 String sanitizedCrossDomainAccessErrorMessage(const LocalDOMWindow* callingW
indow) const; |
| 193 String crossDomainAccessErrorMessage(const LocalDOMWindow* callingWindow) co
nst; | 196 String crossDomainAccessErrorMessage(const LocalDOMWindow* callingWindow) co
nst; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // implementation details to scripts. | 233 // implementation details to scripts. |
| 231 bool m_windowIsClosing; | 234 bool m_windowIsClosing; |
| 232 | 235 |
| 233 private: | 236 private: |
| 234 mutable Member<Location> m_location; | 237 mutable Member<Location> m_location; |
| 235 }; | 238 }; |
| 236 | 239 |
| 237 } // namespace blink | 240 } // namespace blink |
| 238 | 241 |
| 239 #endif // DOMWindow_h | 242 #endif // DOMWindow_h |
| OLD | NEW |