| 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 #ifndef AnimationTestHelper_h | 5 #ifndef AnimationTestHelper_h |
| 6 #define AnimationTestHelper_h | 6 #define AnimationTestHelper_h |
| 7 | 7 |
| 8 #include "wtf/text/StringView.h" |
| 8 #include "wtf/text/WTFString.h" | 9 #include "wtf/text/WTFString.h" |
| 9 #include <v8.h> | 10 #include <v8.h> |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 v8::Local<v8::Value> stringToV8Value(String); | 14 void setV8ObjectPropertyAsString(v8::Isolate*, v8::Local<v8::Object>, const Stri
ngView& name, const StringView& value); |
| 14 | 15 void setV8ObjectPropertyAsNumber(v8::Isolate*, v8::Local<v8::Object>, const Stri
ngView& name, double value); |
| 15 v8::Local<v8::Value> doubleToV8Value(double); | |
| 16 | |
| 17 void setV8ObjectPropertyAsString(v8::Isolate*, v8::Local<v8::Object>, String, St
ring); | |
| 18 | |
| 19 void setV8ObjectPropertyAsNumber(v8::Isolate*, v8::Local<v8::Object>, String, do
uble); | |
| 20 | 16 |
| 21 } // namespace blink | 17 } // namespace blink |
| 22 | 18 |
| 23 #endif // AnimationTestHelper_h | 19 #endif // AnimationTestHelper_h |
| OLD | NEW |