| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "sky/engine/core/dom/Element.h" | 47 #include "sky/engine/core/dom/Element.h" |
| 48 #include "sky/engine/core/dom/ExceptionCode.h" | 48 #include "sky/engine/core/dom/ExceptionCode.h" |
| 49 #include "sky/engine/core/dom/Node.h" | 49 #include "sky/engine/core/dom/Node.h" |
| 50 #include "sky/engine/core/frame/DOMTimer.h" | 50 #include "sky/engine/core/frame/DOMTimer.h" |
| 51 #include "sky/engine/core/frame/DOMWindowTimers.h" | 51 #include "sky/engine/core/frame/DOMWindowTimers.h" |
| 52 #include "sky/engine/core/frame/FrameView.h" | 52 #include "sky/engine/core/frame/FrameView.h" |
| 53 #include "sky/engine/core/frame/LocalDOMWindow.h" | 53 #include "sky/engine/core/frame/LocalDOMWindow.h" |
| 54 #include "sky/engine/core/frame/LocalFrame.h" | 54 #include "sky/engine/core/frame/LocalFrame.h" |
| 55 #include "sky/engine/core/frame/Settings.h" | 55 #include "sky/engine/core/frame/Settings.h" |
| 56 #include "sky/engine/core/html/HTMLDocument.h" | 56 #include "sky/engine/core/html/HTMLDocument.h" |
| 57 #include "sky/engine/platform/PlatformScreen.h" |
| 57 #include "sky/engine/core/inspector/ScriptCallStack.h" | 58 #include "sky/engine/core/inspector/ScriptCallStack.h" |
| 58 #include "sky/engine/platform/PlatformScreen.h" | |
| 59 #include "sky/engine/wtf/ArrayBuffer.h" | 59 #include "sky/engine/wtf/ArrayBuffer.h" |
| 60 #include "sky/engine/wtf/Assertions.h" | 60 #include "sky/engine/wtf/Assertions.h" |
| 61 #include "sky/engine/wtf/OwnPtr.h" | 61 #include "sky/engine/wtf/OwnPtr.h" |
| 62 | 62 |
| 63 namespace blink { | 63 namespace blink { |
| 64 | 64 |
| 65 // FIXME: There is a lot of duplication with SetTimeoutOrInterval() in V8WorkerG
lobalScopeCustom.cpp. | 65 // FIXME: There is a lot of duplication with SetTimeoutOrInterval() in V8WorkerG
lobalScopeCustom.cpp. |
| 66 // We should refactor this. | 66 // We should refactor this. |
| 67 static void windowSetTimeoutImpl(const v8::FunctionCallbackInfo<v8::Value>& info
, bool singleShot, ExceptionState& exceptionState) | 67 static void windowSetTimeoutImpl(const v8::FunctionCallbackInfo<v8::Value>& info
, bool singleShot, ExceptionState& exceptionState) |
| 68 { | 68 { |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::curren
t(isolate)); | 261 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::curren
t(isolate)); |
| 262 if (context.IsEmpty()) | 262 if (context.IsEmpty()) |
| 263 return v8Undefined(); | 263 return v8Undefined(); |
| 264 | 264 |
| 265 v8::Handle<v8::Object> global = context->Global(); | 265 v8::Handle<v8::Object> global = context->Global(); |
| 266 ASSERT(!global.IsEmpty()); | 266 ASSERT(!global.IsEmpty()); |
| 267 return global; | 267 return global; |
| 268 } | 268 } |
| 269 | 269 |
| 270 } // namespace blink | 270 } // namespace blink |
| OLD | NEW |