| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 virtual void didRemoveAllEventListeners(LocalDOMWindow*) = 0; | 93 virtual void didRemoveAllEventListeners(LocalDOMWindow*) = 0; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 static Document* createDocument(const String& mimeType, | 96 static Document* createDocument(const String& mimeType, |
| 97 const DocumentInit&, | 97 const DocumentInit&, |
| 98 bool forceXHTML); | 98 bool forceXHTML); |
| 99 static LocalDOMWindow* create(LocalFrame& frame) { | 99 static LocalDOMWindow* create(LocalFrame& frame) { |
| 100 return new LocalDOMWindow(frame); | 100 return new LocalDOMWindow(frame); |
| 101 } | 101 } |
| 102 | 102 |
| 103 static LocalDOMWindow* from(const ScriptState*); |
| 104 |
| 103 ~LocalDOMWindow() override; | 105 ~LocalDOMWindow() override; |
| 104 | 106 |
| 105 LocalFrame* frame() const { return toLocalFrame(DOMWindow::frame()); } | 107 LocalFrame* frame() const { return toLocalFrame(DOMWindow::frame()); } |
| 106 | 108 |
| 107 DECLARE_VIRTUAL_TRACE(); | 109 DECLARE_VIRTUAL_TRACE(); |
| 108 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 110 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 109 | 111 |
| 110 Document* installNewDocument(const String& mimeType, | 112 Document* installNewDocument(const String& mimeType, |
| 111 const DocumentInit&, | 113 const DocumentInit&, |
| 112 bool forceXHTML = false); | 114 bool forceXHTML = false); |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 return m_status; | 381 return m_status; |
| 380 } | 382 } |
| 381 | 383 |
| 382 inline String LocalDOMWindow::defaultStatus() const { | 384 inline String LocalDOMWindow::defaultStatus() const { |
| 383 return m_defaultStatus; | 385 return m_defaultStatus; |
| 384 } | 386 } |
| 385 | 387 |
| 386 } // namespace blink | 388 } // namespace blink |
| 387 | 389 |
| 388 #endif // LocalDOMWindow_h | 390 #endif // LocalDOMWindow_h |
| OLD | NEW |