| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 class CORE_EXPORT LocalDOMWindow final : public DOMWindow, public WillBeHeapSupp
lementable<LocalDOMWindow>, public DOMWindowLifecycleNotifier { | 67 class CORE_EXPORT LocalDOMWindow final : public DOMWindow, public WillBeHeapSupp
lementable<LocalDOMWindow>, public DOMWindowLifecycleNotifier { |
| 68 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow); | 68 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow); |
| 69 WILL_BE_USING_PRE_FINALIZER(LocalDOMWindow, dispose); | 69 WILL_BE_USING_PRE_FINALIZER(LocalDOMWindow, dispose); |
| 70 public: | 70 public: |
| 71 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mimeTyp
e, const DocumentInit&, bool forceXHTML); | 71 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mimeTyp
e, const DocumentInit&, bool forceXHTML); |
| 72 static PassRefPtrWillBeRawPtr<LocalDOMWindow> create(LocalFrame& frame) | 72 static PassRefPtrWillBeRawPtr<LocalDOMWindow> create(LocalFrame& frame) |
| 73 { | 73 { |
| 74 return adoptRefWillBeNoop(new LocalDOMWindow(frame)); | 74 return adoptRefWillBeNoop(new LocalDOMWindow(frame)); |
| 75 } | 75 } |
| 76 | 76 |
| 77 virtual ~LocalDOMWindow(); | 77 ~LocalDOMWindow() override; |
| 78 | 78 |
| 79 DECLARE_VIRTUAL_TRACE(); | 79 DECLARE_VIRTUAL_TRACE(); |
| 80 | 80 |
| 81 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType,
const DocumentInit&, bool forceXHTML = false); | 81 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType,
const DocumentInit&, bool forceXHTML = false); |
| 82 | 82 |
| 83 // EventTarget overrides: | 83 // EventTarget overrides: |
| 84 virtual ExecutionContext* executionContext() const override; | 84 ExecutionContext* executionContext() const override; |
| 85 virtual LocalDOMWindow* toDOMWindow() override; | 85 LocalDOMWindow* toDOMWindow() override; |
| 86 | 86 |
| 87 // DOMWindow overrides: | 87 // DOMWindow overrides: |
| 88 bool isLocalDOMWindow() const override { return true; } | 88 bool isLocalDOMWindow() const override { return true; } |
| 89 virtual LocalFrame* frame() const override; | 89 LocalFrame* frame() const override; |
| 90 Screen* screen() const override; | 90 Screen* screen() const override; |
| 91 History* history() const override; | 91 History* history() const override; |
| 92 BarProp* locationbar() const override; | 92 BarProp* locationbar() const override; |
| 93 BarProp* menubar() const override; | 93 BarProp* menubar() const override; |
| 94 BarProp* personalbar() const override; | 94 BarProp* personalbar() const override; |
| 95 BarProp* scrollbars() const override; | 95 BarProp* scrollbars() const override; |
| 96 BarProp* statusbar() const override; | 96 BarProp* statusbar() const override; |
| 97 BarProp* toolbar() const override; | 97 BarProp* toolbar() const override; |
| 98 Navigator* navigator() const override; | 98 Navigator* navigator() const override; |
| 99 bool offscreenBuffering() const override; | 99 bool offscreenBuffering() const override; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 FrameConsole* frameConsole() const; | 164 FrameConsole* frameConsole() const; |
| 165 | 165 |
| 166 void printErrorMessage(const String&); | 166 void printErrorMessage(const String&); |
| 167 | 167 |
| 168 void postMessageTimerFired(PostMessageTimer*); | 168 void postMessageTimerFired(PostMessageTimer*); |
| 169 void removePostMessageTimer(PostMessageTimer*); | 169 void removePostMessageTimer(PostMessageTimer*); |
| 170 void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetOrigi
n, PassRefPtrWillBeRawPtr<Event>, PassRefPtrWillBeRawPtr<ScriptCallStack>); | 170 void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetOrigi
n, PassRefPtrWillBeRawPtr<Event>, PassRefPtrWillBeRawPtr<ScriptCallStack>); |
| 171 | 171 |
| 172 // Events | 172 // Events |
| 173 // EventTarget API | 173 // EventTarget API |
| 174 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture = false) override; | 174 bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListene
r>, bool useCapture = false) override; |
| 175 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E
ventListener>, bool useCapture = false) override; | 175 bool removeEventListener(const AtomicString& eventType, PassRefPtr<EventList
ener>, bool useCapture = false) override; |
| 176 virtual void removeAllEventListeners() override; | 176 void removeAllEventListeners() override; |
| 177 | 177 |
| 178 using EventTarget::dispatchEvent; | 178 using EventTarget::dispatchEvent; |
| 179 bool dispatchEvent(PassRefPtrWillBeRawPtr<Event> prpEvent, PassRefPtrWillBeR
awPtr<EventTarget> prpTarget); | 179 bool dispatchEvent(PassRefPtrWillBeRawPtr<Event> prpEvent, PassRefPtrWillBeR
awPtr<EventTarget> prpTarget); |
| 180 | 180 |
| 181 void dispatchLoadEvent(); | 181 void dispatchLoadEvent(); |
| 182 | 182 |
| 183 void finishedLoading(); | 183 void finishedLoading(); |
| 184 | 184 |
| 185 ApplicationCache* optionalApplicationCache() const { return m_applicationCac
he.get(); } | 185 ApplicationCache* optionalApplicationCache() const { return m_applicationCac
he.get(); } |
| 186 | 186 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 } | 284 } |
| 285 | 285 |
| 286 inline String LocalDOMWindow::defaultStatus() const | 286 inline String LocalDOMWindow::defaultStatus() const |
| 287 { | 287 { |
| 288 return m_defaultStatus; | 288 return m_defaultStatus; |
| 289 } | 289 } |
| 290 | 290 |
| 291 } // namespace blink | 291 } // namespace blink |
| 292 | 292 |
| 293 #endif // LocalDOMWindow_h | 293 #endif // LocalDOMWindow_h |
| OLD | NEW |