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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 return adoptRefWillBeNoop(new LocalDOMWindow(frame)); | 73 return adoptRefWillBeNoop(new LocalDOMWindow(frame)); |
74 } | 74 } |
75 | 75 |
76 ~LocalDOMWindow() override; | 76 ~LocalDOMWindow() override; |
77 | 77 |
78 DECLARE_VIRTUAL_TRACE(); | 78 DECLARE_VIRTUAL_TRACE(); |
79 | 79 |
80 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType,
const DocumentInit&, bool forceXHTML = false); | 80 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType,
const DocumentInit&, bool forceXHTML = false); |
81 | 81 |
82 // EventTarget overrides: | 82 // EventTarget overrides: |
83 ExecutionContext* executionContext() const override; | 83 ExecutionContext* getExecutionContext() const override; |
84 const LocalDOMWindow* toDOMWindow() const override; | 84 const LocalDOMWindow* toDOMWindow() const override; |
85 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 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; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 DispatchEventResult dispatchEvent(PassRefPtrWillBeRawPtr<Event> prpEvent, Pa
ssRefPtrWillBeRawPtr<EventTarget> prpTarget); | 178 DispatchEventResult dispatchEvent(PassRefPtrWillBeRawPtr<Event> prpEvent, Pa
ssRefPtrWillBeRawPtr<EventTarget> prpTarget); |
179 | 179 |
180 void finishedLoading(); | 180 void finishedLoading(); |
181 | 181 |
182 // Dispatch the (deprecated) orientationchange event to this DOMWindow and | 182 // Dispatch the (deprecated) orientationchange event to this DOMWindow and |
183 // recurse on its child frames. | 183 // recurse on its child frames. |
184 void sendOrientationChangeEvent(); | 184 void sendOrientationChangeEvent(); |
185 | 185 |
186 void willDetachDocumentFromFrame(); | 186 void willDetachDocumentFromFrame(); |
187 | 187 |
188 EventQueue* eventQueue() const; | 188 EventQueue* getEventQueue() const; |
189 void enqueueWindowEvent(PassRefPtrWillBeRawPtr<Event>); | 189 void enqueueWindowEvent(PassRefPtrWillBeRawPtr<Event>); |
190 void enqueueDocumentEvent(PassRefPtrWillBeRawPtr<Event>); | 190 void enqueueDocumentEvent(PassRefPtrWillBeRawPtr<Event>); |
191 void enqueuePageshowEvent(PageshowEventPersistence); | 191 void enqueuePageshowEvent(PageshowEventPersistence); |
192 void enqueueHashchangeEvent(const String& oldURL, const String& newURL); | 192 void enqueueHashchangeEvent(const String& oldURL, const String& newURL); |
193 void enqueuePopstateEvent(PassRefPtr<SerializedScriptValue>); | 193 void enqueuePopstateEvent(PassRefPtr<SerializedScriptValue>); |
194 void dispatchWindowLoadEvent(); | 194 void dispatchWindowLoadEvent(); |
195 void documentWasClosed(); | 195 void documentWasClosed(); |
196 void statePopped(PassRefPtr<SerializedScriptValue>); | 196 void statePopped(PassRefPtr<SerializedScriptValue>); |
197 | 197 |
198 // FIXME: This shouldn't be public once LocalDOMWindow becomes ExecutionCont
ext. | 198 // FIXME: This shouldn't be public once LocalDOMWindow becomes ExecutionCont
ext. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 } | 283 } |
284 | 284 |
285 inline String LocalDOMWindow::defaultStatus() const | 285 inline String LocalDOMWindow::defaultStatus() const |
286 { | 286 { |
287 return m_defaultStatus; | 287 return m_defaultStatus; |
288 } | 288 } |
289 | 289 |
290 } // namespace blink | 290 } // namespace blink |
291 | 291 |
292 #endif // LocalDOMWindow_h | 292 #endif // LocalDOMWindow_h |
OLD | NEW |