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 12 matching lines...) Expand all Loading... |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
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 LocalDOMWindow_h | 27 #ifndef LocalDOMWindow_h |
28 #define LocalDOMWindow_h | 28 #define LocalDOMWindow_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/DOMWindowPrivateScript.h" |
33 #include "core/frame/FrameDestructionObserver.h" | 34 #include "core/frame/FrameDestructionObserver.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 |
39 #include "wtf/Forward.h" | 40 #include "wtf/Forward.h" |
40 | 41 |
41 namespace blink { | 42 namespace blink { |
42 | 43 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 86 |
86 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; | 87 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; |
87 | 88 |
88 enum PageshowEventPersistence { | 89 enum PageshowEventPersistence { |
89 PageshowEventNotPersisted = 0, | 90 PageshowEventNotPersisted = 0, |
90 PageshowEventPersisted = 1 | 91 PageshowEventPersisted = 1 |
91 }; | 92 }; |
92 | 93 |
93 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBackForw
ardList }; | 94 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBackForw
ardList }; |
94 | 95 |
95 class LocalDOMWindow FINAL : public RefCountedWillBeGarbageCollectedFinalized<Lo
calDOMWindow>, public EventTargetWithInlineData, public DOMWindowBase64, public
FrameDestructionObserver, public WillBeHeapSupplementable<LocalDOMWindow>, publi
c LifecycleContext<LocalDOMWindow> { | 96 class LocalDOMWindow FINAL : public RefCountedWillBeGarbageCollectedFinalized<Lo
calDOMWindow>, public EventTargetWithInlineData, public DOMWindowBase64, public
DOMWindowPrivateScript, public FrameDestructionObserver, public WillBeHeapSupple
mentable<LocalDOMWindow>, public LifecycleContext<LocalDOMWindow> { |
96 DEFINE_WRAPPERTYPEINFO(); | 97 DEFINE_WRAPPERTYPEINFO(); |
97 REFCOUNTED_EVENT_TARGET(LocalDOMWindow); | 98 REFCOUNTED_EVENT_TARGET(LocalDOMWindow); |
98 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow); | 99 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow); |
99 public: | 100 public: |
100 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mimeTyp
e, const DocumentInit&, bool forceXHTML); | 101 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mimeTyp
e, const DocumentInit&, bool forceXHTML); |
101 static PassRefPtrWillBeRawPtr<LocalDOMWindow> create(LocalFrame& frame) | 102 static PassRefPtrWillBeRawPtr<LocalDOMWindow> create(LocalFrame& frame) |
102 { | 103 { |
103 return adoptRefWillBeNoop(new LocalDOMWindow(frame)); | 104 return adoptRefWillBeNoop(new LocalDOMWindow(frame)); |
104 } | 105 } |
105 virtual ~LocalDOMWindow(); | 106 virtual ~LocalDOMWindow(); |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 } | 405 } |
405 | 406 |
406 inline String LocalDOMWindow::defaultStatus() const | 407 inline String LocalDOMWindow::defaultStatus() const |
407 { | 408 { |
408 return m_defaultStatus; | 409 return m_defaultStatus; |
409 } | 410 } |
410 | 411 |
411 } // namespace blink | 412 } // namespace blink |
412 | 413 |
413 #endif // LocalDOMWindow_h | 414 #endif // LocalDOMWindow_h |
OLD | NEW |