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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 PageshowEventNotPersisted = 0, | 89 PageshowEventNotPersisted = 0, |
90 PageshowEventPersisted = 1 | 90 PageshowEventPersisted = 1 |
91 }; | 91 }; |
92 | 92 |
93 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBack
ForwardList }; | 93 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBack
ForwardList }; |
94 | 94 |
95 class DOMWindow FINAL : public RefCountedWillBeRefCountedGarbageCollected<DO
MWindow>, public ScriptWrappable, public EventTargetWithInlineData, public DOMWi
ndowBase64, public FrameDestructionObserver, public WillBeHeapSupplementable<DOM
Window>, public LifecycleContext<DOMWindow> { | 95 class DOMWindow FINAL : public RefCountedWillBeRefCountedGarbageCollected<DO
MWindow>, public ScriptWrappable, public EventTargetWithInlineData, public DOMWi
ndowBase64, public FrameDestructionObserver, public WillBeHeapSupplementable<DOM
Window>, public LifecycleContext<DOMWindow> { |
96 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindow); | 96 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindow); |
97 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollect
ed<DOMWindow>); | 97 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollect
ed<DOMWindow>); |
98 public: | 98 public: |
99 static PassRefPtr<Document> createDocument(const String& mimeType, const
DocumentInit&, bool forceXHTML); | 99 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mim
eType, const DocumentInit&, bool forceXHTML); |
100 static PassRefPtrWillBeRawPtr<DOMWindow> create(LocalFrame& frame) | 100 static PassRefPtrWillBeRawPtr<DOMWindow> create(LocalFrame& frame) |
101 { | 101 { |
102 return adoptRefWillBeRefCountedGarbageCollected(new DOMWindow(frame)
); | 102 return adoptRefWillBeRefCountedGarbageCollected(new DOMWindow(frame)
); |
103 } | 103 } |
104 virtual ~DOMWindow(); | 104 virtual ~DOMWindow(); |
105 | 105 |
106 PassRefPtr<Document> installNewDocument(const String& mimeType, const Do
cumentInit&, bool forceXHTML = false); | 106 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeTy
pe, const DocumentInit&, bool forceXHTML = false); |
107 | 107 |
108 virtual const AtomicString& interfaceName() const OVERRIDE; | 108 virtual const AtomicString& interfaceName() const OVERRIDE; |
109 virtual ExecutionContext* executionContext() const OVERRIDE; | 109 virtual ExecutionContext* executionContext() const OVERRIDE; |
110 | 110 |
111 virtual DOMWindow* toDOMWindow() OVERRIDE; | 111 virtual DOMWindow* toDOMWindow() OVERRIDE; |
112 | 112 |
113 void registerProperty(DOMWindowProperty*); | 113 void registerProperty(DOMWindowProperty*); |
114 void unregisterProperty(DOMWindowProperty*); | 114 void unregisterProperty(DOMWindowProperty*); |
115 | 115 |
116 void reset(); | 116 void reset(); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 } | 386 } |
387 | 387 |
388 inline String DOMWindow::defaultStatus() const | 388 inline String DOMWindow::defaultStatus() const |
389 { | 389 { |
390 return m_defaultStatus; | 390 return m_defaultStatus; |
391 } | 391 } |
392 | 392 |
393 } // namespace WebCore | 393 } // namespace WebCore |
394 | 394 |
395 #endif // DOMWindow_h | 395 #endif // DOMWindow_h |
OLD | NEW |