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 "bindings/modules/v8/WebGLAny.h" | 5 #include "bindings/modules/v8/WebGLAny.h" |
6 | 6 |
7 #include "bindings/core/v8/ToV8.h" | 7 #include "bindings/core/v8/ToV8.h" |
8 #include "wtf/text/WTFString.h" | 8 #include "wtf/text/WTFString.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 ScriptValue WebGLAny(ScriptState* scriptState, String value) | 85 ScriptValue WebGLAny(ScriptState* scriptState, String value) |
86 { | 86 { |
87 return ScriptValue(scriptState, v8String(scriptState->isolate(), value)); | 87 return ScriptValue(scriptState, v8String(scriptState->isolate(), value)); |
88 } | 88 } |
89 | 89 |
90 ScriptValue WebGLAny(ScriptState* scriptState, WebGLObject* value) | 90 ScriptValue WebGLAny(ScriptState* scriptState, WebGLObject* value) |
91 { | 91 { |
92 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); | 92 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); |
93 } | 93 } |
94 | 94 |
95 ScriptValue WebGLAny(ScriptState* scriptState, DOMFloat32Array* value) | 95 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMFloat32Array> value
) |
96 { | 96 { |
97 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); | 97 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); |
98 } | 98 } |
99 | 99 |
100 ScriptValue WebGLAny(ScriptState* scriptState, DOMInt32Array* value) | 100 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMInt32Array> value) |
101 { | 101 { |
102 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); | 102 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); |
103 } | 103 } |
104 | 104 |
105 ScriptValue WebGLAny(ScriptState* scriptState, DOMUint8Array* value) | 105 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMUint8Array> value) |
106 { | 106 { |
107 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); | 107 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); |
108 } | 108 } |
109 | 109 |
110 ScriptValue WebGLAny(ScriptState* scriptState, DOMUint32Array* value) | 110 ScriptValue WebGLAny(ScriptState* scriptState, PassRefPtr<DOMUint32Array> value) |
111 { | 111 { |
112 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); | 112 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global()
, scriptState->isolate())); |
113 } | 113 } |
114 | 114 |
115 } // namespace blink | 115 } // namespace blink |
OLD | NEW |