| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray; | 85 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray; |
| 86 | 86 |
| 87 enum PageshowEventPersistence { | 87 enum PageshowEventPersistence { |
| 88 PageshowEventNotPersisted = 0, | 88 PageshowEventNotPersisted = 0, |
| 89 PageshowEventPersisted = 1 | 89 PageshowEventPersisted = 1 |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBack
ForwardList }; | 92 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBack
ForwardList }; |
| 93 | 93 |
| 94 class DOMWindow FINAL : public RefCountedWillBeRefCountedGarbageCollected<DO
MWindow>, public ScriptWrappable, public EventTargetWithInlineData, public Frame
DestructionObserver, public Supplementable<DOMWindow>, public LifecycleContext<D
OMWindow> { | 94 class DOMWindow FINAL : public RefCountedWillBeRefCountedGarbageCollected<DO
MWindow>, public ScriptWrappable, public EventTargetWithInlineData, public Frame
DestructionObserver, public WillBeHeapSupplementable<DOMWindow>, public Lifecycl
eContext<DOMWindow> { |
| 95 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindow); |
| 95 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollect
ed<DOMWindow>); | 96 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollect
ed<DOMWindow>); |
| 96 public: | 97 public: |
| 97 static PassRefPtr<Document> createDocument(const String& mimeType, const
DocumentInit&, bool forceXHTML); | 98 static PassRefPtr<Document> createDocument(const String& mimeType, const
DocumentInit&, bool forceXHTML); |
| 98 static PassRefPtrWillBeRawPtr<DOMWindow> create(LocalFrame& frame) | 99 static PassRefPtrWillBeRawPtr<DOMWindow> create(LocalFrame& frame) |
| 99 { | 100 { |
| 100 return adoptRefWillBeRefCountedGarbageCollected(new DOMWindow(frame)
); | 101 return adoptRefWillBeRefCountedGarbageCollected(new DOMWindow(frame)
); |
| 101 } | 102 } |
| 102 virtual ~DOMWindow(); | 103 virtual ~DOMWindow(); |
| 103 | 104 |
| 104 PassRefPtr<Document> installNewDocument(const String& mimeType, const Do
cumentInit&, bool forceXHTML = false); | 105 PassRefPtr<Document> installNewDocument(const String& mimeType, const Do
cumentInit&, bool forceXHTML = false); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 } | 383 } |
| 383 | 384 |
| 384 inline String DOMWindow::defaultStatus() const | 385 inline String DOMWindow::defaultStatus() const |
| 385 { | 386 { |
| 386 return m_defaultStatus; | 387 return m_defaultStatus; |
| 387 } | 388 } |
| 388 | 389 |
| 389 } // namespace WebCore | 390 } // namespace WebCore |
| 390 | 391 |
| 391 #endif // DOMWindow_h | 392 #endif // DOMWindow_h |
| OLD | NEW |