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/ToV8ForCore.h" |
8 #include "platform/wtf/text/WTFString.h" | 8 #include "platform/wtf/text/WTFString.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 ScriptValue WebGLAny(ScriptState* script_state, bool value) { | 12 ScriptValue WebGLAny(ScriptState* script_state, bool value) { |
13 return ScriptValue(script_state, | 13 return ScriptValue(script_state, |
14 V8Boolean(value, script_state->GetIsolate())); | 14 V8Boolean(value, script_state->GetIsolate())); |
15 } | 15 } |
16 | 16 |
17 ScriptValue WebGLAny(ScriptState* script_state, | 17 ScriptValue WebGLAny(ScriptState* script_state, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 script_state->GetIsolate())); | 118 script_state->GetIsolate())); |
119 } | 119 } |
120 | 120 |
121 ScriptValue WebGLAny(ScriptState* script_state, DOMUint32Array* value) { | 121 ScriptValue WebGLAny(ScriptState* script_state, DOMUint32Array* value) { |
122 return ScriptValue(script_state, | 122 return ScriptValue(script_state, |
123 ToV8(value, script_state->GetContext()->Global(), | 123 ToV8(value, script_state->GetContext()->Global(), |
124 script_state->GetIsolate())); | 124 script_state->GetIsolate())); |
125 } | 125 } |
126 | 126 |
127 } // namespace blink | 127 } // namespace blink |
OLD | NEW |