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

Side by Side Diff: Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp

Issue 19230002: Use V8 implementation of TypedArrays and DataView in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased for relanding Created 7 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007-2011 Google Inc. All rights reserved. 2 * Copyright (C) 2007-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 14 matching lines...) Expand all
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 "config.h"
32 #include "V8InjectedScriptHost.h" 32 #include "V8InjectedScriptHost.h"
33 33
34 #include "V8Database.h" 34 #include "V8Database.h"
35 #include "V8Float32Array.h"
36 #include "V8HTMLAllCollection.h" 35 #include "V8HTMLAllCollection.h"
37 #include "V8HTMLCollection.h" 36 #include "V8HTMLCollection.h"
38 #include "V8Int16Array.h"
39 #include "V8Int32Array.h"
40 #include "V8Int8Array.h"
41 #include "V8Node.h" 37 #include "V8Node.h"
42 #include "V8NodeList.h" 38 #include "V8NodeList.h"
43 #include "V8Storage.h" 39 #include "V8Storage.h"
44 #include "V8Uint16Array.h"
45 #include "V8Uint32Array.h"
46 #include "V8Uint8Array.h"
47 #include "V8Uint8ClampedArray.h"
48 #include "bindings/tests/results/V8Float64Array.h"
49 #include "bindings/v8/BindingSecurity.h" 40 #include "bindings/v8/BindingSecurity.h"
50 #include "bindings/v8/ScriptDebugServer.h" 41 #include "bindings/v8/ScriptDebugServer.h"
51 #include "bindings/v8/ScriptValue.h" 42 #include "bindings/v8/ScriptValue.h"
52 #include "bindings/v8/V8AbstractEventListener.h" 43 #include "bindings/v8/V8AbstractEventListener.h"
53 #include "bindings/v8/V8Binding.h" 44 #include "bindings/v8/V8Binding.h"
54 #include "bindings/v8/V8HiddenPropertyName.h" 45 #include "bindings/v8/V8HiddenPropertyName.h"
55 #include "bindings/v8/V8ScriptRunner.h" 46 #include "bindings/v8/V8ScriptRunner.h"
47 #include "bindings/v8/custom/V8Float32ArrayCustom.h"
48 #include "bindings/v8/custom/V8Float64ArrayCustom.h"
49 #include "bindings/v8/custom/V8Int16ArrayCustom.h"
50 #include "bindings/v8/custom/V8Int32ArrayCustom.h"
51 #include "bindings/v8/custom/V8Int8ArrayCustom.h"
52 #include "bindings/v8/custom/V8Uint16ArrayCustom.h"
53 #include "bindings/v8/custom/V8Uint32ArrayCustom.h"
54 #include "bindings/v8/custom/V8Uint8ArrayCustom.h"
55 #include "bindings/v8/custom/V8Uint8ClampedArrayCustom.h"
56 #include "core/inspector/InjectedScript.h" 56 #include "core/inspector/InjectedScript.h"
57 #include "core/inspector/InjectedScriptHost.h" 57 #include "core/inspector/InjectedScriptHost.h"
58 #include "core/inspector/InspectorDOMAgent.h" 58 #include "core/inspector/InspectorDOMAgent.h"
59 #include "core/platform/JSONValues.h" 59 #include "core/platform/JSONValues.h"
60 #include "modules/webdatabase/Database.h" 60 #include "modules/webdatabase/Database.h"
61 61
62 namespace WebCore { 62 namespace WebCore {
63 63
64 Node* InjectedScriptHost::scriptValueAsNode(ScriptValue value) 64 Node* InjectedScriptHost::scriptValueAsNode(ScriptValue value)
65 { 65 {
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 int lineNumber; 431 int lineNumber;
432 int columnNumber; 432 int columnNumber;
433 if (!getFunctionLocation(args, &scriptId, &lineNumber, &columnNumber)) 433 if (!getFunctionLocation(args, &scriptId, &lineNumber, &columnNumber))
434 return; 434 return;
435 435
436 InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder()); 436 InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder());
437 host->unmonitorFunction(scriptId, lineNumber, columnNumber); 437 host->unmonitorFunction(scriptId, lineNumber, columnNumber);
438 } 438 }
439 439
440 } // namespace WebCore 440 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8ImageDataCustom.cpp ('k') | Source/bindings/v8/custom/V8Int16ArrayCustom.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698