| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "core/testing/PrivateScriptTest.h" | |
| 6 | |
| 7 #include "bindings/core/v8/PrivateScriptRunner.h" | |
| 8 #include "core/dom/Document.h" | |
| 9 #include <v8.h> | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 PrivateScriptTest::PrivateScriptTest(Document* document) { | |
| 14 v8::Local<v8::Value> classObject = | |
| 15 PrivateScriptRunner::installClassIfNeeded(document, "PrivateScriptTest"); | |
| 16 RELEASE_ASSERT(!classObject.IsEmpty()); | |
| 17 } | |
| 18 | |
| 19 int PrivateScriptTest::addIntegerImplementedInCPPForPrivateScriptOnly( | |
| 20 int value1, | |
| 21 int value2) { | |
| 22 return value1 + value2; | |
| 23 } | |
| 24 | |
| 25 String | |
| 26 PrivateScriptTest::stringAttributeImplementedInCPPForPrivateScriptOnly() { | |
| 27 return m_stringAttributeImplementedInCPPForPrivateSriptOnly; | |
| 28 } | |
| 29 | |
| 30 void PrivateScriptTest::setStringAttributeImplementedInCPPForPrivateScriptOnly( | |
| 31 String value) { | |
| 32 m_stringAttributeImplementedInCPPForPrivateSriptOnly = value; | |
| 33 } | |
| 34 | |
| 35 } // namespace blink | |
| OLD | NEW |