| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // EventTarget API | 175 // EventTarget API |
| 176 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(); } | |
| 186 | |
| 187 // Dispatch the (deprecated) orientationchange event to this DOMWindow and | 185 // Dispatch the (deprecated) orientationchange event to this DOMWindow and |
| 188 // recurse on its child frames. | 186 // recurse on its child frames. |
| 189 void sendOrientationChangeEvent(); | 187 void sendOrientationChangeEvent(); |
| 190 | 188 |
| 191 void willDetachDocumentFromFrame(); | 189 void willDetachDocumentFromFrame(); |
| 192 | 190 |
| 193 EventQueue* eventQueue() const; | 191 EventQueue* eventQueue() const; |
| 194 void enqueueWindowEvent(PassRefPtrWillBeRawPtr<Event>); | 192 void enqueueWindowEvent(PassRefPtrWillBeRawPtr<Event>); |
| 195 void enqueueDocumentEvent(PassRefPtrWillBeRawPtr<Event>); | 193 void enqueueDocumentEvent(PassRefPtrWillBeRawPtr<Event>); |
| 196 void enqueuePageshowEvent(PageshowEventPersistence); | 194 void enqueuePageshowEvent(PageshowEventPersistence); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 private: | 231 private: |
| 234 WindowFrameObserver(LocalDOMWindow*, LocalFrame&); | 232 WindowFrameObserver(LocalDOMWindow*, LocalFrame&); |
| 235 | 233 |
| 236 RawPtrWillBeMember<LocalDOMWindow> m_window; | 234 RawPtrWillBeMember<LocalDOMWindow> m_window; |
| 237 }; | 235 }; |
| 238 friend WTF::OwnedPtrDeleter<WindowFrameObserver>; | 236 friend WTF::OwnedPtrDeleter<WindowFrameObserver>; |
| 239 | 237 |
| 240 explicit LocalDOMWindow(LocalFrame&); | 238 explicit LocalDOMWindow(LocalFrame&); |
| 241 void dispose(); | 239 void dispose(); |
| 242 | 240 |
| 243 Page* page(); | |
| 244 | |
| 245 void clearDocument(); | 241 void clearDocument(); |
| 246 void willDestroyDocumentInFrame(); | 242 void willDestroyDocumentInFrame(); |
| 247 | 243 |
| 248 void willDetachFrameHost(); | 244 void willDetachFrameHost(); |
| 249 void frameDestroyed(); | 245 void frameDestroyed(); |
| 250 | 246 |
| 251 OwnPtrWillBeMember<WindowFrameObserver> m_frameObserver; | 247 OwnPtrWillBeMember<WindowFrameObserver> m_frameObserver; |
| 252 RefPtrWillBeMember<Document> m_document; | 248 RefPtrWillBeMember<Document> m_document; |
| 253 | 249 |
| 254 bool m_shouldPrintWhenFinishedLoading; | 250 bool m_shouldPrintWhenFinishedLoading; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 } | 285 } |
| 290 | 286 |
| 291 inline String LocalDOMWindow::defaultStatus() const | 287 inline String LocalDOMWindow::defaultStatus() const |
| 292 { | 288 { |
| 293 return m_defaultStatus; | 289 return m_defaultStatus; |
| 294 } | 290 } |
| 295 | 291 |
| 296 } // namespace blink | 292 } // namespace blink |
| 297 | 293 |
| 298 #endif // LocalDOMWindow_h | 294 #endif // LocalDOMWindow_h |
| OLD | NEW |