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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual ~LocalDOMWindow(); | 71 virtual ~LocalDOMWindow(); |
72 | 72 |
73 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType,
const DocumentInit&, bool forceXHTML = false); | 73 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType,
const DocumentInit&, bool forceXHTML = false); |
74 | 74 |
75 // EventTarget overrides: | 75 // EventTarget overrides: |
76 virtual const AtomicString& interfaceName() const override; | 76 virtual const AtomicString& interfaceName() const override; |
77 virtual ExecutionContext* executionContext() const override; | 77 virtual ExecutionContext* executionContext() const override; |
78 virtual LocalDOMWindow* toDOMWindow() override; | 78 virtual LocalDOMWindow* toDOMWindow() override; |
79 | 79 |
80 // DOMWindow overrides: | 80 // DOMWindow overrides: |
81 void trace(Visitor*) override; | 81 DECLARE_VIRTUAL_TRACE(); |
82 bool isLocalDOMWindow() const override { return true; } | 82 bool isLocalDOMWindow() const override { return true; } |
83 virtual LocalFrame* frame() const override; | 83 virtual LocalFrame* frame() const override; |
84 Screen* screen() const override; | 84 Screen* screen() const override; |
85 History* history() const override; | 85 History* history() const override; |
86 BarProp* locationbar() const override; | 86 BarProp* locationbar() const override; |
87 BarProp* menubar() const override; | 87 BarProp* menubar() const override; |
88 BarProp* personalbar() const override; | 88 BarProp* personalbar() const override; |
89 BarProp* scrollbars() const override; | 89 BarProp* scrollbars() const override; |
90 BarProp* statusbar() const override; | 90 BarProp* statusbar() const override; |
91 BarProp* toolbar() const override; | 91 BarProp* toolbar() const override; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // has a frame() accessor that returns Frame* for bindings code, and | 220 // has a frame() accessor that returns Frame* for bindings code, and |
221 // FrameDestructionObserver, which has a frame() accessor that returns a | 221 // FrameDestructionObserver, which has a frame() accessor that returns a |
222 // LocalFrame*. | 222 // LocalFrame*. |
223 class WindowFrameObserver final : public NoBaseWillBeGarbageCollected<Window
FrameObserver>, public FrameDestructionObserver { | 223 class WindowFrameObserver final : public NoBaseWillBeGarbageCollected<Window
FrameObserver>, public FrameDestructionObserver { |
224 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 224 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
225 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WindowFrameObserver); | 225 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WindowFrameObserver); |
226 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(WindowFrameObserver); | 226 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(WindowFrameObserver); |
227 public: | 227 public: |
228 static PassOwnPtrWillBeRawPtr<WindowFrameObserver> create(LocalDOMWindow
*, LocalFrame&); | 228 static PassOwnPtrWillBeRawPtr<WindowFrameObserver> create(LocalDOMWindow
*, LocalFrame&); |
229 | 229 |
230 virtual void trace(Visitor*) override; | 230 DECLARE_VIRTUAL_TRACE(); |
231 | 231 |
232 private: | 232 private: |
233 WindowFrameObserver(LocalDOMWindow*, LocalFrame&); | 233 WindowFrameObserver(LocalDOMWindow*, LocalFrame&); |
234 | 234 |
235 // FrameDestructionObserver overrides: | 235 // FrameDestructionObserver overrides: |
236 void willDetachFrameHost() override; | 236 void willDetachFrameHost() override; |
237 void frameDestroyed() override; | 237 void frameDestroyed() override; |
238 | 238 |
239 RawPtrWillBeMember<LocalDOMWindow> m_window; | 239 RawPtrWillBeMember<LocalDOMWindow> m_window; |
240 }; | 240 }; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 } | 304 } |
305 | 305 |
306 inline String LocalDOMWindow::defaultStatus() const | 306 inline String LocalDOMWindow::defaultStatus() const |
307 { | 307 { |
308 return m_defaultStatus; | 308 return m_defaultStatus; |
309 } | 309 } |
310 | 310 |
311 } // namespace blink | 311 } // namespace blink |
312 | 312 |
313 #endif // LocalDOMWindow_h | 313 #endif // LocalDOMWindow_h |
OLD | NEW |