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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/WebGLAny.cpp

Issue 2595543003: Rename toV8(...) function in Blink to ToV8(...). (Closed)
Patch Set: Rebasing... Created 3 years, 11 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 // 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 ScriptValue WebGLAny(ScriptState* scriptState, float value) { 84 ScriptValue WebGLAny(ScriptState* scriptState, float value) {
85 return ScriptValue(scriptState, 85 return ScriptValue(scriptState,
86 v8::Number::New(scriptState->isolate(), value)); 86 v8::Number::New(scriptState->isolate(), value));
87 } 87 }
88 88
89 ScriptValue WebGLAny(ScriptState* scriptState, String value) { 89 ScriptValue WebGLAny(ScriptState* scriptState, String value) {
90 return ScriptValue(scriptState, v8String(scriptState->isolate(), value)); 90 return ScriptValue(scriptState, v8String(scriptState->isolate(), value));
91 } 91 }
92 92
93 ScriptValue WebGLAny(ScriptState* scriptState, WebGLObject* value) { 93 ScriptValue WebGLAny(ScriptState* scriptState, WebGLObject* value) {
94 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), 94 return ScriptValue(scriptState, ToV8(value, scriptState->context()->Global(),
95 scriptState->isolate())); 95 scriptState->isolate()));
96 } 96 }
97 97
98 ScriptValue WebGLAny(ScriptState* scriptState, DOMFloat32Array* value) { 98 ScriptValue WebGLAny(ScriptState* scriptState, DOMFloat32Array* value) {
99 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), 99 return ScriptValue(scriptState, ToV8(value, scriptState->context()->Global(),
100 scriptState->isolate())); 100 scriptState->isolate()));
101 } 101 }
102 102
103 ScriptValue WebGLAny(ScriptState* scriptState, DOMInt32Array* value) { 103 ScriptValue WebGLAny(ScriptState* scriptState, DOMInt32Array* value) {
104 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), 104 return ScriptValue(scriptState, ToV8(value, scriptState->context()->Global(),
105 scriptState->isolate())); 105 scriptState->isolate()));
106 } 106 }
107 107
108 ScriptValue WebGLAny(ScriptState* scriptState, DOMUint8Array* value) { 108 ScriptValue WebGLAny(ScriptState* scriptState, DOMUint8Array* value) {
109 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), 109 return ScriptValue(scriptState, ToV8(value, scriptState->context()->Global(),
110 scriptState->isolate())); 110 scriptState->isolate()));
111 } 111 }
112 112
113 ScriptValue WebGLAny(ScriptState* scriptState, DOMUint32Array* value) { 113 ScriptValue WebGLAny(ScriptState* scriptState, DOMUint32Array* value) {
114 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), 114 return ScriptValue(scriptState, ToV8(value, scriptState->context()->Global(),
115 scriptState->isolate())); 115 scriptState->isolate()));
116 } 116 }
117 117
118 } // namespace blink 118 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698