| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 | 403 |
| 404 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e., | 404 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e., |
| 405 // when its document is no longer the document that is displayed in its | 405 // when its document is no longer the document that is displayed in its |
| 406 // frame), we would like to zero out m_frame to avoid being confused | 406 // frame), we would like to zero out m_frame to avoid being confused |
| 407 // by the document that is currently active in m_frame. | 407 // by the document that is currently active in m_frame. |
| 408 bool isCurrentlyDisplayedInFrame() const; | 408 bool isCurrentlyDisplayedInFrame() const; |
| 409 | 409 |
| 410 void willDetachDocumentFromFrame(); | 410 void willDetachDocumentFromFrame(); |
| 411 void willDestroyCachedFrame(); | 411 void willDestroyCachedFrame(); |
| 412 | 412 |
| 413 Page* page(); | |
| 414 | |
| 415 private: | 413 private: |
| 416 explicit DOMWindow(Document*); | 414 explicit DOMWindow(Document*); |
| 417 | 415 |
| 416 Page* page(); |
| 417 |
| 418 virtual void frameDestroyed() OVERRIDE; | 418 virtual void frameDestroyed() OVERRIDE; |
| 419 virtual void willDetachPage() OVERRIDE; | 419 virtual void willDetachPage() OVERRIDE; |
| 420 | 420 |
| 421 virtual void refEventTarget() { ref(); } | 421 virtual void refEventTarget() { ref(); } |
| 422 virtual void derefEventTarget() { deref(); } | 422 virtual void derefEventTarget() { deref(); } |
| 423 virtual EventTargetData* eventTargetData(); | 423 virtual EventTargetData* eventTargetData(); |
| 424 virtual EventTargetData* ensureEventTargetData(); | 424 virtual EventTargetData* ensureEventTargetData(); |
| 425 | 425 |
| 426 static Frame* createWindow(const String& urlString, const AtomicString&
frameName, const WindowFeatures&, | 426 static Frame* createWindow(const String& urlString, const AtomicString&
frameName, const WindowFeatures&, |
| 427 DOMWindow* activeWindow, Frame* firstFrame, Frame* openerFrame, | 427 DOMWindow* activeWindow, Frame* firstFrame, Frame* openerFrame, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 } | 476 } |
| 477 | 477 |
| 478 inline String DOMWindow::defaultStatus() const | 478 inline String DOMWindow::defaultStatus() const |
| 479 { | 479 { |
| 480 return m_defaultStatus; | 480 return m_defaultStatus; |
| 481 } | 481 } |
| 482 | 482 |
| 483 } // namespace WebCore | 483 } // namespace WebCore |
| 484 | 484 |
| 485 #endif // DOMWindow_h | 485 #endif // DOMWindow_h |
| OLD | NEW |