Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: Source/bindings/core/v8/custom/V8WindowCustom.cpp

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Win GPU tests (DOMDataView). Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 26 matching lines...) Expand all
37 #include "bindings/core/v8/ScheduledAction.h" 37 #include "bindings/core/v8/ScheduledAction.h"
38 #include "bindings/core/v8/ScriptController.h" 38 #include "bindings/core/v8/ScriptController.h"
39 #include "bindings/core/v8/ScriptSourceCode.h" 39 #include "bindings/core/v8/ScriptSourceCode.h"
40 #include "bindings/core/v8/SerializedScriptValue.h" 40 #include "bindings/core/v8/SerializedScriptValue.h"
41 #include "bindings/core/v8/V8Binding.h" 41 #include "bindings/core/v8/V8Binding.h"
42 #include "bindings/core/v8/V8EventListener.h" 42 #include "bindings/core/v8/V8EventListener.h"
43 #include "bindings/core/v8/V8EventListenerList.h" 43 #include "bindings/core/v8/V8EventListenerList.h"
44 #include "bindings/core/v8/V8HTMLCollection.h" 44 #include "bindings/core/v8/V8HTMLCollection.h"
45 #include "bindings/core/v8/V8HiddenValue.h" 45 #include "bindings/core/v8/V8HiddenValue.h"
46 #include "bindings/core/v8/V8Node.h" 46 #include "bindings/core/v8/V8Node.h"
47 #include "core/dom/DOMArrayBuffer.h"
47 #include "core/dom/ExceptionCode.h" 48 #include "core/dom/ExceptionCode.h"
48 #include "core/dom/MessagePort.h" 49 #include "core/dom/MessagePort.h"
49 #include "core/frame/DOMTimer.h" 50 #include "core/frame/DOMTimer.h"
50 #include "core/frame/DOMWindowTimers.h" 51 #include "core/frame/DOMWindowTimers.h"
51 #include "core/frame/FrameView.h" 52 #include "core/frame/FrameView.h"
52 #include "core/frame/LocalDOMWindow.h" 53 #include "core/frame/LocalDOMWindow.h"
53 #include "core/frame/LocalFrame.h" 54 #include "core/frame/LocalFrame.h"
54 #include "core/frame/Settings.h" 55 #include "core/frame/Settings.h"
55 #include "core/frame/csp/ContentSecurityPolicy.h" 56 #include "core/frame/csp/ContentSecurityPolicy.h"
56 #include "core/html/HTMLCollection.h" 57 #include "core/html/HTMLCollection.h"
57 #include "core/html/HTMLDocument.h" 58 #include "core/html/HTMLDocument.h"
58 #include "core/inspector/ScriptCallStack.h" 59 #include "core/inspector/ScriptCallStack.h"
59 #include "core/loader/FrameLoadRequest.h" 60 #include "core/loader/FrameLoadRequest.h"
60 #include "core/loader/FrameLoader.h" 61 #include "core/loader/FrameLoader.h"
61 #include "core/storage/Storage.h" 62 #include "core/storage/Storage.h"
62 #include "platform/PlatformScreen.h" 63 #include "platform/PlatformScreen.h"
63 #include "platform/graphics/media/MediaPlayer.h" 64 #include "platform/graphics/media/MediaPlayer.h"
64 #include "wtf/ArrayBuffer.h"
65 #include "wtf/Assertions.h" 65 #include "wtf/Assertions.h"
66 #include "wtf/OwnPtr.h" 66 #include "wtf/OwnPtr.h"
67 67
68 namespace blink { 68 namespace blink {
69 69
70 // FIXME: There is a lot of duplication with SetTimeoutOrInterval() in V8WorkerG lobalScopeCustom.cpp. 70 // FIXME: There is a lot of duplication with SetTimeoutOrInterval() in V8WorkerG lobalScopeCustom.cpp.
71 // We should refactor this. 71 // We should refactor this.
72 static void windowSetTimeoutImpl(const v8::FunctionCallbackInfo<v8::Value>& info , bool singleShot, ExceptionState& exceptionState) 72 static void windowSetTimeoutImpl(const v8::FunctionCallbackInfo<v8::Value>& info , bool singleShot, ExceptionState& exceptionState)
73 { 73 {
74 int argumentCount = info.Length(); 74 int argumentCount = info.Length();
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::curren t(isolate)); 536 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::curren t(isolate));
537 if (context.IsEmpty()) 537 if (context.IsEmpty())
538 return v8Undefined(); 538 return v8Undefined();
539 539
540 v8::Handle<v8::Object> global = context->Global(); 540 v8::Handle<v8::Object> global = context->Global();
541 ASSERT(!global.IsEmpty()); 541 ASSERT(!global.IsEmpty());
542 return global; 542 return global;
543 } 543 }
544 544
545 } // namespace blink 545 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698