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

Side by Side Diff: third_party/WebKit/Source/core/animation/AnimationTestHelper.cpp

Issue 2834053003: Split V8Binding (Closed)
Patch Set: Rebase Created 3 years, 7 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 "core/animation/AnimationTestHelper.h" 5 #include "core/animation/AnimationTestHelper.h"
6 6
7 #include "bindings/core/v8/V8Binding.h" 7 #include "bindings/core/v8/V8BindingForCore.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 void SetV8ObjectPropertyAsString(v8::Isolate* isolate, 11 void SetV8ObjectPropertyAsString(v8::Isolate* isolate,
12 v8::Local<v8::Object> object, 12 v8::Local<v8::Object> object,
13 const StringView& name, 13 const StringView& name,
14 const StringView& value) { 14 const StringView& value) {
15 object 15 object
16 ->Set(isolate->GetCurrentContext(), V8String(isolate, name), 16 ->Set(isolate->GetCurrentContext(), V8String(isolate, name),
17 V8String(isolate, value)) 17 V8String(isolate, value))
18 .ToChecked(); 18 .ToChecked();
19 } 19 }
20 20
21 void SetV8ObjectPropertyAsNumber(v8::Isolate* isolate, 21 void SetV8ObjectPropertyAsNumber(v8::Isolate* isolate,
22 v8::Local<v8::Object> object, 22 v8::Local<v8::Object> object,
23 const StringView& name, 23 const StringView& name,
24 double value) { 24 double value) {
25 object 25 object
26 ->Set(isolate->GetCurrentContext(), V8String(isolate, name), 26 ->Set(isolate->GetCurrentContext(), V8String(isolate, name),
27 v8::Number::New(isolate, value)) 27 v8::Number::New(isolate, value))
28 .ToChecked(); 28 .ToChecked();
29 } 29 }
30 30
31 } // namespace blink 31 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698