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

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

Issue 2809243002: Split ToV8.h (Closed)
Patch Set: Rebase Created 3 years, 8 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698