Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: Source/core/frame/DOMWindow.h

Issue 288343017: Oilpan: Replace RefPtrs to Node and its subclasses in core/xml/ with Oilpan transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nullptr Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/DOMImplementation.cpp ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/DOMImplementation.cpp ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698