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

Side by Side Diff: third_party/WebKit/Source/core/testing/PrivateScriptTest.cpp

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698