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 |
11 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
12 * documentation and/or other materials provided with the distribution. | 12 * documentation and/or other materials provided with the distribution. |
13 * | 13 * |
14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | 14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY |
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR |
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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/TraceWrapperMember.h" |
30 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
31 #include "core/events/EventTarget.h" | 32 #include "core/events/EventTarget.h" |
32 #include "core/frame/DOMWindow.h" | 33 #include "core/frame/DOMWindow.h" |
33 #include "core/frame/LocalFrame.h" | 34 #include "core/frame/LocalFrame.h" |
34 #include "platform/Supplementable.h" | 35 #include "platform/Supplementable.h" |
35 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
36 #include "wtf/Assertions.h" | 37 #include "wtf/Assertions.h" |
37 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
38 #include <memory> | 39 #include <memory> |
39 | 40 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 static Document* createDocument(const String& mimeType, | 76 static Document* createDocument(const String& mimeType, |
76 const DocumentInit&, | 77 const DocumentInit&, |
77 bool forceXHTML); | 78 bool forceXHTML); |
78 static LocalDOMWindow* create(LocalFrame& frame) { | 79 static LocalDOMWindow* create(LocalFrame& frame) { |
79 return new LocalDOMWindow(frame); | 80 return new LocalDOMWindow(frame); |
80 } | 81 } |
81 | 82 |
82 ~LocalDOMWindow() override; | 83 ~LocalDOMWindow() override; |
83 | 84 |
84 DECLARE_VIRTUAL_TRACE(); | 85 DECLARE_VIRTUAL_TRACE(); |
| 86 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
85 | 87 |
86 Document* installNewDocument(const String& mimeType, | 88 Document* installNewDocument(const String& mimeType, |
87 const DocumentInit&, | 89 const DocumentInit&, |
88 bool forceXHTML = false); | 90 bool forceXHTML = false); |
89 | 91 |
90 // EventTarget overrides: | 92 // EventTarget overrides: |
91 ExecutionContext* getExecutionContext() const override; | 93 ExecutionContext* getExecutionContext() const override; |
92 const LocalDOMWindow* toLocalDOMWindow() const override; | 94 const LocalDOMWindow* toLocalDOMWindow() const override; |
93 LocalDOMWindow* toLocalDOMWindow() override; | 95 LocalDOMWindow* toLocalDOMWindow() override; |
94 | 96 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 mutable Member<Screen> m_screen; | 272 mutable Member<Screen> m_screen; |
271 mutable Member<History> m_history; | 273 mutable Member<History> m_history; |
272 mutable Member<BarProp> m_locationbar; | 274 mutable Member<BarProp> m_locationbar; |
273 mutable Member<BarProp> m_menubar; | 275 mutable Member<BarProp> m_menubar; |
274 mutable Member<BarProp> m_personalbar; | 276 mutable Member<BarProp> m_personalbar; |
275 mutable Member<BarProp> m_scrollbars; | 277 mutable Member<BarProp> m_scrollbars; |
276 mutable Member<BarProp> m_statusbar; | 278 mutable Member<BarProp> m_statusbar; |
277 mutable Member<BarProp> m_toolbar; | 279 mutable Member<BarProp> m_toolbar; |
278 mutable Member<Navigator> m_navigator; | 280 mutable Member<Navigator> m_navigator; |
279 mutable Member<StyleMedia> m_media; | 281 mutable Member<StyleMedia> m_media; |
280 mutable Member<CustomElementRegistry> m_customElements; | 282 mutable TraceWrapperMember<CustomElementRegistry> m_customElements; |
281 | 283 |
282 String m_status; | 284 String m_status; |
283 String m_defaultStatus; | 285 String m_defaultStatus; |
284 | 286 |
285 mutable Member<ApplicationCache> m_applicationCache; | 287 mutable Member<ApplicationCache> m_applicationCache; |
286 | 288 |
287 Member<DOMWindowEventQueue> m_eventQueue; | 289 Member<DOMWindowEventQueue> m_eventQueue; |
288 RefPtr<SerializedScriptValue> m_pendingStateObject; | 290 RefPtr<SerializedScriptValue> m_pendingStateObject; |
289 | 291 |
290 HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers; | 292 HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers; |
(...skipping 10 matching lines...) Expand all Loading... |
301 return m_status; | 303 return m_status; |
302 } | 304 } |
303 | 305 |
304 inline String LocalDOMWindow::defaultStatus() const { | 306 inline String LocalDOMWindow::defaultStatus() const { |
305 return m_defaultStatus; | 307 return m_defaultStatus; |
306 } | 308 } |
307 | 309 |
308 } // namespace blink | 310 } // namespace blink |
309 | 311 |
310 #endif // LocalDOMWindow_h | 312 #endif // LocalDOMWindow_h |
OLD | NEW |