Chromium Code Reviews| 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 12 matching lines...) Expand all Loading... | |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef DOMWindow_h | 27 #ifndef DOMWindow_h |
| 28 #define DOMWindow_h | 28 #define DOMWindow_h |
| 29 | 29 |
| 30 #include "bindings/v8/ScriptWrappable.h" | 30 #include "bindings/v8/ScriptWrappable.h" |
| 31 #include "core/dom/EventTarget.h" | 31 #include "core/dom/EventTarget.h" |
| 32 #include "core/page/FrameDestructionObserver.h" | 32 #include "core/page/FrameDestructionObserver.h" |
| 33 #include "core/page/ImageBitmapFactories.h" | |
| 33 #include "core/platform/Supplementable.h" | 34 #include "core/platform/Supplementable.h" |
| 34 | 35 |
| 35 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 36 | 37 |
| 37 namespace WebCore { | 38 namespace WebCore { |
| 38 class BarProp; | 39 class BarProp; |
| 39 class CSSRuleList; | 40 class CSSRuleList; |
| 40 class CSSStyleDeclaration; | 41 class CSSStyleDeclaration; |
| 41 class Console; | 42 class Console; |
| 42 class DOMApplicationCache; | 43 class DOMApplicationCache; |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 72 class Storage; | 73 class Storage; |
| 73 class StyleMedia; | 74 class StyleMedia; |
| 74 class DOMWindowCSS; | 75 class DOMWindowCSS; |
| 75 | 76 |
| 76 struct WindowFeatures; | 77 struct WindowFeatures; |
| 77 | 78 |
| 78 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray; | 79 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray; |
| 79 | 80 |
| 80 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBack ForwardList }; | 81 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBack ForwardList }; |
| 81 | 82 |
| 82 class DOMWindow : public RefCounted<DOMWindow>, public ScriptWrappable, publ ic EventTarget, public FrameDestructionObserver, public Supplementable<DOMWindow > { | 83 class DOMWindow : public RefCounted<DOMWindow>, public ScriptWrappable, publ ic EventTarget, public FrameDestructionObserver, public ImageBitmapFactories, pu blic Supplementable<DOMWindow> { |
|
do-not-use
2013/08/12 15:02:19
Why do we need to subclass ImageBitmapFactories?
| |
| 83 public: | 84 public: |
| 84 static PassRefPtr<DOMWindow> create(Frame* frame) { return adoptRef(new DOMWindow(frame)); } | 85 static PassRefPtr<DOMWindow> create(Frame* frame) { return adoptRef(new DOMWindow(frame)); } |
| 85 virtual ~DOMWindow(); | 86 virtual ~DOMWindow(); |
| 86 | 87 |
| 87 // In some rare cases, we'll re-used a DOMWindow for a new Document. For example, | 88 // In some rare cases, we'll re-used a DOMWindow for a new Document. For example, |
| 88 // when a script calls window.open("..."), the browser gives JavaScript a window | 89 // when a script calls window.open("..."), the browser gives JavaScript a window |
| 89 // synchronously but kicks off the load in the window asynchronously. We b sites | 90 // synchronously but kicks off the load in the window asynchronously. We b sites |
| 90 // expect that modifications that they make to the window object synchro nously | 91 // expect that modifications that they make to the window object synchro nously |
| 91 // won't be blown away when the network load commits. To make that happe n, we | 92 // won't be blown away when the network load commits. To make that happe n, we |
| 92 // "securely transition" the existing DOMWindow to the Document that res ults from | 93 // "securely transition" the existing DOMWindow to the Document that res ults from |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 427 } | 428 } |
| 428 | 429 |
| 429 inline String DOMWindow::defaultStatus() const | 430 inline String DOMWindow::defaultStatus() const |
| 430 { | 431 { |
| 431 return m_defaultStatus; | 432 return m_defaultStatus; |
| 432 } | 433 } |
| 433 | 434 |
| 434 } // namespace WebCore | 435 } // namespace WebCore |
| 435 | 436 |
| 436 #endif // DOMWindow_h | 437 #endif // DOMWindow_h |
| OLD | NEW |