OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "bindings/modules/v8/WebGLAny.h" | 6 #include "bindings/modules/v8/WebGLAny.h" |
7 | 7 |
8 #include "bindings/core/v8/ToV8.h" | 8 #include "bindings/core/v8/ToV8.h" |
9 #include "wtf/text/WTFString.h" | 9 #include "wtf/text/WTFString.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 ScriptValue WebGLAny(ScriptState* scriptState, float value) | 43 ScriptValue WebGLAny(ScriptState* scriptState, float value) |
44 { | 44 { |
45 return ScriptValue(scriptState, v8::Number::New(scriptState->isolate(), valu
e)); | 45 return ScriptValue(scriptState, v8::Number::New(scriptState->isolate(), valu
e)); |
46 } | 46 } |
47 | 47 |
48 ScriptValue WebGLAny(ScriptState* scriptState, String value) | 48 ScriptValue WebGLAny(ScriptState* scriptState, String value) |
49 { | 49 { |
50 return ScriptValue(scriptState, v8String(scriptState->isolate(), value)); | 50 return ScriptValue(scriptState, v8String(scriptState->isolate(), value)); |
51 } | 51 } |
52 | 52 |
53 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtrWillBeRawPtr<WebGLObjec
t> value) | 53 ScriptValue WebGLAny(ScriptState* scriptState, WebGLObject* value) |
54 { | 54 { |
55 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); | 55 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); |
56 } | 56 } |
57 | 57 |
58 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMFloat32Array> value
) | 58 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMFloat32Array> value
) |
59 { | 59 { |
60 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); | 60 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); |
61 } | 61 } |
62 | 62 |
63 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMInt32Array> value) | 63 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMInt32Array> value) |
64 { | 64 { |
65 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); | 65 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); |
66 } | 66 } |
67 | 67 |
68 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMUint8Array> value) | 68 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMUint8Array> value) |
69 { | 69 { |
70 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); | 70 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); |
71 } | 71 } |
72 | 72 |
73 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMUint32Array> value) | 73 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMUint32Array> value) |
74 { | 74 { |
75 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); | 75 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); |
76 } | 76 } |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
OLD | NEW |