| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "sky/engine/config.h" |
| 32 #include "bindings/core/v8/WindowProxy.h" | 32 #include "sky/engine/bindings/core/v8/WindowProxy.h" |
| 33 | 33 |
| 34 #include <algorithm> | 34 #include <algorithm> |
| 35 #include <utility> | 35 #include <utility> |
| 36 | 36 |
| 37 #include "bindings/core/v8/DOMWrapperWorld.h" | |
| 38 #include "bindings/core/v8/ScriptController.h" | |
| 39 #include "bindings/core/v8/V8Binding.h" | |
| 40 #include "bindings/core/v8/V8Document.h" | 37 #include "bindings/core/v8/V8Document.h" |
| 41 #include "bindings/core/v8/V8GCForContextDispose.h" | |
| 42 #include "bindings/core/v8/V8HiddenValue.h" | |
| 43 #include "bindings/core/v8/V8HTMLDocument.h" | 38 #include "bindings/core/v8/V8HTMLDocument.h" |
| 44 #include "bindings/core/v8/V8Initializer.h" | |
| 45 #include "bindings/core/v8/V8ObjectConstructor.h" | |
| 46 #include "bindings/core/v8/V8Window.h" | 39 #include "bindings/core/v8/V8Window.h" |
| 47 #include "core/frame/LocalFrame.h" | |
| 48 #include "core/loader/FrameLoaderClient.h" | |
| 49 #include "platform/heap/Handle.h" | |
| 50 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 40 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
| 51 #include "platform/ScriptForbiddenScope.h" | 41 #include "sky/engine/bindings/core/v8/DOMWrapperWorld.h" |
| 52 #include "platform/TraceEvent.h" | 42 #include "sky/engine/bindings/core/v8/ScriptController.h" |
| 53 #include "public/platform/Platform.h" | 43 #include "sky/engine/bindings/core/v8/V8Binding.h" |
| 44 #include "sky/engine/bindings/core/v8/V8GCForContextDispose.h" |
| 45 #include "sky/engine/bindings/core/v8/V8HiddenValue.h" |
| 46 #include "sky/engine/bindings/core/v8/V8Initializer.h" |
| 47 #include "sky/engine/bindings/core/v8/V8ObjectConstructor.h" |
| 48 #include "sky/engine/core/frame/LocalFrame.h" |
| 49 #include "sky/engine/core/loader/FrameLoaderClient.h" |
| 50 #include "sky/engine/platform/ScriptForbiddenScope.h" |
| 51 #include "sky/engine/platform/TraceEvent.h" |
| 52 #include "sky/engine/platform/heap/Handle.h" |
| 53 #include "sky/engine/public/platform/Platform.h" |
| 54 #include "sky/engine/wtf/Assertions.h" |
| 55 #include "sky/engine/wtf/OwnPtr.h" |
| 56 #include "sky/engine/wtf/StringExtras.h" |
| 57 #include "sky/engine/wtf/text/CString.h" |
| 54 #include "v8/include/v8-debug.h" | 58 #include "v8/include/v8-debug.h" |
| 55 #include "v8/include/v8.h" | 59 #include "v8/include/v8.h" |
| 56 #include "wtf/Assertions.h" | |
| 57 #include "wtf/OwnPtr.h" | |
| 58 #include "wtf/StringExtras.h" | |
| 59 #include "wtf/text/CString.h" | |
| 60 | 60 |
| 61 namespace blink { | 61 namespace blink { |
| 62 | 62 |
| 63 PassOwnPtr<WindowProxy> WindowProxy::create(LocalFrame* frame, DOMWrapperWorld&
world, v8::Isolate* isolate) | 63 PassOwnPtr<WindowProxy> WindowProxy::create(LocalFrame* frame, DOMWrapperWorld&
world, v8::Isolate* isolate) |
| 64 { | 64 { |
| 65 return adoptPtr(new WindowProxy(frame, &world, isolate)); | 65 return adoptPtr(new WindowProxy(frame, &world, isolate)); |
| 66 } | 66 } |
| 67 | 67 |
| 68 WindowProxy::WindowProxy(LocalFrame* frame, PassRefPtr<DOMWrapperWorld> world, v
8::Isolate* isolate) | 68 WindowProxy::WindowProxy(LocalFrame* frame, PassRefPtr<DOMWrapperWorld> world, v
8::Isolate* isolate) |
| 69 : m_frame(frame) | 69 : m_frame(frame) |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 { | 317 { |
| 318 ASSERT(m_world->isMainWorld()); | 318 ASSERT(m_world->isMainWorld()); |
| 319 if (!isGlobalInitialized()) | 319 if (!isGlobalInitialized()) |
| 320 return; | 320 return; |
| 321 if (!isContextInitialized()) | 321 if (!isContextInitialized()) |
| 322 return; | 322 return; |
| 323 updateDocumentProperty(); | 323 updateDocumentProperty(); |
| 324 } | 324 } |
| 325 | 325 |
| 326 } // namespace blink | 326 } // namespace blink |
| OLD | NEW |