| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 void registerProperty(DOMWindowProperty*); | 101 void registerProperty(DOMWindowProperty*); |
| 102 void unregisterProperty(DOMWindowProperty*); | 102 void unregisterProperty(DOMWindowProperty*); |
| 103 | 103 |
| 104 void reset(); | 104 void reset(); |
| 105 | 105 |
| 106 PassRefPtr<MediaQueryList> matchMedia(const String&); | 106 PassRefPtr<MediaQueryList> matchMedia(const String&); |
| 107 | 107 |
| 108 unsigned pendingUnloadEventListeners() const; | 108 unsigned pendingUnloadEventListeners() const; |
| 109 | 109 |
| 110 static bool dispatchAllPendingBeforeUnloadEvents(); | |
| 111 static void dispatchAllPendingUnloadEvents(); | |
| 112 | |
| 113 static FloatRect adjustWindowRect(Page*, const FloatRect& pendingChanges
); | 110 static FloatRect adjustWindowRect(Page*, const FloatRect& pendingChanges
); |
| 114 | 111 |
| 115 bool allowPopUp(); // Call on first window, not target window. | 112 bool allowPopUp(); // Call on first window, not target window. |
| 116 static bool allowPopUp(Frame* firstFrame); | 113 static bool allowPopUp(Frame* firstFrame); |
| 117 static bool canShowModalDialog(const Frame*); | 114 static bool canShowModalDialog(const Frame*); |
| 118 static bool canShowModalDialogNow(const Frame*); | 115 static bool canShowModalDialogNow(const Frame*); |
| 119 | 116 |
| 120 // DOM Level 0 | 117 // DOM Level 0 |
| 121 | 118 |
| 122 Screen* screen() const; | 119 Screen* screen() const; |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 } | 433 } |
| 437 | 434 |
| 438 inline String DOMWindow::defaultStatus() const | 435 inline String DOMWindow::defaultStatus() const |
| 439 { | 436 { |
| 440 return m_defaultStatus; | 437 return m_defaultStatus; |
| 441 } | 438 } |
| 442 | 439 |
| 443 } // namespace WebCore | 440 } // namespace WebCore |
| 444 | 441 |
| 445 #endif // DOMWindow_h | 442 #endif // DOMWindow_h |
| OLD | NEW |