| 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 "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/events/EventTarget.h" | 9 #include "core/events/EventTarget.h" |
| 10 #include "core/frame/DOMWindowBase64.h" | 10 #include "core/frame/DOMWindowBase64.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class CSSRuleList; | 21 class CSSRuleList; |
| 22 class CSSStyleDeclaration; | 22 class CSSStyleDeclaration; |
| 23 class Console; | 23 class Console; |
| 24 class DOMSelection; | 24 class DOMSelection; |
| 25 class DOMWindowCSS; | 25 class DOMWindowCSS; |
| 26 class Document; | 26 class Document; |
| 27 class Element; | 27 class Element; |
| 28 class Frame; | 28 class Frame; |
| 29 class FrameRequestCallback; | 29 class FrameRequestCallback; |
| 30 class History; | 30 class History; |
| 31 class IdleRequestCallback; |
| 31 class LocalDOMWindow; | 32 class LocalDOMWindow; |
| 32 class MediaQueryList; | 33 class MediaQueryList; |
| 33 class Navigator; | 34 class Navigator; |
| 34 class Screen; | 35 class Screen; |
| 35 class ScrollToOptions; | 36 class ScrollToOptions; |
| 36 class SerializedScriptValue; | 37 class SerializedScriptValue; |
| 37 class Storage; | 38 class Storage; |
| 38 class StyleMedia; | 39 class StyleMedia; |
| 39 | 40 |
| 40 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; | 41 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element
*, const String& pseudoElt) const = 0; | 165 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element
*, const String& pseudoElt) const = 0; |
| 165 | 166 |
| 166 // WebKit extensions | 167 // WebKit extensions |
| 167 virtual PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, con
st String& pseudoElt) const = 0; | 168 virtual PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, con
st String& pseudoElt) const = 0; |
| 168 | 169 |
| 169 // WebKit animation extensions | 170 // WebKit animation extensions |
| 170 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; | 171 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; |
| 171 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; | 172 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; |
| 172 virtual void cancelAnimationFrame(int id) = 0; | 173 virtual void cancelAnimationFrame(int id) = 0; |
| 173 | 174 |
| 175 // idle task extensions |
| 176 virtual int requestIdleFrame(IdleRequestCallback*) = 0; |
| 177 virtual void cancelIdleFrame(int id) = 0; |
| 178 |
| 174 void captureEvents() { } | 179 void captureEvents() { } |
| 175 void releaseEvents() { } | 180 void releaseEvents() { } |
| 176 | 181 |
| 177 // FIXME: This handles both window[index] and window.frames[index]. However, | 182 // FIXME: This handles both window[index] and window.frames[index]. However, |
| 178 // the spec exposes window.frames[index] across origins but not | 183 // the spec exposes window.frames[index] across origins but not |
| 179 // window[index]... | 184 // window[index]... |
| 180 DOMWindow* anonymousIndexedGetter(uint32_t) const; | 185 DOMWindow* anonymousIndexedGetter(uint32_t) const; |
| 181 | 186 |
| 182 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&); |
| 183 | 188 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // implementation details to scripts. | 229 // implementation details to scripts. |
| 225 bool m_windowIsClosing; | 230 bool m_windowIsClosing; |
| 226 | 231 |
| 227 private: | 232 private: |
| 228 mutable RefPtrWillBeMember<Location> m_location; | 233 mutable RefPtrWillBeMember<Location> m_location; |
| 229 }; | 234 }; |
| 230 | 235 |
| 231 } // namespace blink | 236 } // namespace blink |
| 232 | 237 |
| 233 #endif // DOMWindow_h | 238 #endif // DOMWindow_h |
| OLD | NEW |