| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "core/dom/Node.h" | 49 #include "core/dom/Node.h" |
| 50 #include "core/frame/DOMTimer.h" | 50 #include "core/frame/DOMTimer.h" |
| 51 #include "core/frame/DOMWindowTimers.h" | 51 #include "core/frame/DOMWindowTimers.h" |
| 52 #include "core/frame/FrameView.h" | 52 #include "core/frame/FrameView.h" |
| 53 #include "core/frame/LocalDOMWindow.h" | 53 #include "core/frame/LocalDOMWindow.h" |
| 54 #include "core/frame/LocalFrame.h" | 54 #include "core/frame/LocalFrame.h" |
| 55 #include "core/frame/Settings.h" | 55 #include "core/frame/Settings.h" |
| 56 #include "core/html/HTMLDocument.h" | 56 #include "core/html/HTMLDocument.h" |
| 57 #include "core/inspector/ScriptCallStack.h" | 57 #include "core/inspector/ScriptCallStack.h" |
| 58 #include "platform/PlatformScreen.h" | 58 #include "platform/PlatformScreen.h" |
| 59 #include "platform/graphics/media/MediaPlayer.h" | |
| 60 #include "wtf/ArrayBuffer.h" | 59 #include "wtf/ArrayBuffer.h" |
| 61 #include "wtf/Assertions.h" | 60 #include "wtf/Assertions.h" |
| 62 #include "wtf/OwnPtr.h" | 61 #include "wtf/OwnPtr.h" |
| 63 | 62 |
| 64 namespace blink { | 63 namespace blink { |
| 65 | 64 |
| 66 // 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. |
| 67 // We should refactor this. | 66 // We should refactor this. |
| 68 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) |
| 69 { | 68 { |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::curren
t(isolate)); | 261 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::curren
t(isolate)); |
| 263 if (context.IsEmpty()) | 262 if (context.IsEmpty()) |
| 264 return v8Undefined(); | 263 return v8Undefined(); |
| 265 | 264 |
| 266 v8::Handle<v8::Object> global = context->Global(); | 265 v8::Handle<v8::Object> global = context->Global(); |
| 267 ASSERT(!global.IsEmpty()); | 266 ASSERT(!global.IsEmpty()); |
| 268 return global; | 267 return global; |
| 269 } | 268 } |
| 270 | 269 |
| 271 } // namespace blink | 270 } // namespace blink |
| OLD | NEW |