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 "use strict"; | 5 "use strict"; |
6 | 6 |
7 installClass("PrivateScriptTest", function(global, InternalsPrototype) { | 7 installClass("PrivateScriptTest", function(global, InternalsPrototype) { |
8 | 8 |
9 InternalsPrototype.initialize = function() { | 9 InternalsPrototype.initialize = function() { |
10 this.m_shortAttribute = -1; | 10 this.m_shortAttribute = -1; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 } | 124 } |
125 | 125 |
126 InternalsPrototype.addIntegerForPrivateScriptOnly = function(value1, value2)
{ | 126 InternalsPrototype.addIntegerForPrivateScriptOnly = function(value1, value2)
{ |
127 return value1 + value2; | 127 return value1 + value2; |
128 } | 128 } |
129 | 129 |
130 Object.defineProperty(InternalsPrototype, "stringAttributeForPrivateScriptOn
ly", { | 130 Object.defineProperty(InternalsPrototype, "stringAttributeForPrivateScriptOn
ly", { |
131 get: function() { return this.m_stringAttributeForPrivateScriptOnly; }, | 131 get: function() { return this.m_stringAttributeForPrivateScriptOnly; }, |
132 set: function(value) { this.m_stringAttributeForPrivateScriptOnly = valu
e; } | 132 set: function(value) { this.m_stringAttributeForPrivateScriptOnly = valu
e; } |
133 }); | 133 }); |
| 134 |
| 135 InternalsPrototype.addIntegerImplementedInCPP = function(value1, value2) { |
| 136 return this.addIntegerImplementedInCPPForPrivateScriptOnly(value1, value
2); |
| 137 } |
| 138 |
| 139 Object.defineProperty(InternalsPrototype, "stringAttributeImplementedInCPP",
{ |
| 140 get: function() { return this.m_stringAttributeImplementedInCPPForPrivat
eScriptOnly; }, |
| 141 set: function(value) { this.m_stringAttributeImplementedInCPPForPrivateS
criptOnly = value; } |
| 142 }); |
134 }); | 143 }); |
OLD | NEW |