OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 13 matching lines...) Expand all Loading... |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef DOMWindow_h | 27 #ifndef DOMWindow_h |
28 #define DOMWindow_h | 28 #define DOMWindow_h |
29 | 29 |
30 #include "bindings/core/v8/Dictionary.h" | 30 #include "bindings/core/v8/Dictionary.h" |
31 #include "core/events/EventTarget.h" | 31 #include "core/events/EventTarget.h" |
32 #include "core/frame/DOMWindowBase64.h" | 32 #include "core/frame/DOMWindowBase64.h" |
33 #include "core/frame/FrameDestructionObserver.h" | 33 #include "core/frame/FrameDestructionObserver.h" |
| 34 #include "core/workers/Worker.h" |
34 #include "platform/LifecycleContext.h" | 35 #include "platform/LifecycleContext.h" |
35 #include "platform/Supplementable.h" | 36 #include "platform/Supplementable.h" |
36 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
37 #include "platform/scroll/ScrollableArea.h" | 38 #include "platform/scroll/ScrollableArea.h" |
38 | |
39 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 class ApplicationCache; | 42 class ApplicationCache; |
43 class BarProp; | 43 class BarProp; |
44 class CSSRuleList; | 44 class CSSRuleList; |
45 class CSSStyleDeclaration; | 45 class CSSStyleDeclaration; |
46 class Console; | 46 class Console; |
47 class WebKitPoint; | 47 class WebKitPoint; |
48 class DOMSelection; | 48 class DOMSelection; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow); | 96 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow); |
97 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<LocalDOMWindo
w>); | 97 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<LocalDOMWindo
w>); |
98 public: | 98 public: |
99 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mim
eType, const DocumentInit&, bool forceXHTML); | 99 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mim
eType, const DocumentInit&, bool forceXHTML); |
100 static PassRefPtrWillBeRawPtr<LocalDOMWindow> create(LocalFrame& frame) | 100 static PassRefPtrWillBeRawPtr<LocalDOMWindow> create(LocalFrame& frame) |
101 { | 101 { |
102 return adoptRefWillBeNoop(new LocalDOMWindow(frame)); | 102 return adoptRefWillBeNoop(new LocalDOMWindow(frame)); |
103 } | 103 } |
104 virtual ~LocalDOMWindow(); | 104 virtual ~LocalDOMWindow(); |
105 | 105 |
| 106 PassRefPtr<Worker> createAnimationWorker(ExecutionContext*, const String
& url, ExceptionState &); |
| 107 |
106 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeTy
pe, const DocumentInit&, bool forceXHTML = false); | 108 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeTy
pe, const DocumentInit&, bool forceXHTML = false); |
107 | 109 |
108 virtual const AtomicString& interfaceName() const OVERRIDE; | 110 virtual const AtomicString& interfaceName() const OVERRIDE; |
109 virtual ExecutionContext* executionContext() const OVERRIDE; | 111 virtual ExecutionContext* executionContext() const OVERRIDE; |
110 | 112 |
111 virtual LocalDOMWindow* toDOMWindow() OVERRIDE; | 113 virtual LocalDOMWindow* toDOMWindow() OVERRIDE; |
112 | 114 |
113 void registerProperty(DOMWindowProperty*); | 115 void registerProperty(DOMWindowProperty*); |
114 void unregisterProperty(DOMWindowProperty*); | 116 void unregisterProperty(DOMWindowProperty*); |
115 | 117 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 } | 407 } |
406 | 408 |
407 inline String LocalDOMWindow::defaultStatus() const | 409 inline String LocalDOMWindow::defaultStatus() const |
408 { | 410 { |
409 return m_defaultStatus; | 411 return m_defaultStatus; |
410 } | 412 } |
411 | 413 |
412 } // namespace blink | 414 } // namespace blink |
413 | 415 |
414 #endif // DOMWindow_h | 416 #endif // DOMWindow_h |
OLD | NEW |