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.
7 installClass("PrivateScriptTest", function(PrivateScriptTestPrototype) {
9 PrivateScriptTestPrototype.addIntegerInPartial = function(value1, value2) {
10 return value1 + value2;
13 PrivateScriptTestPrototype.addInteger2InPartial = function(value1, value2) {
14 // addValue_ is a method defined in PrivateScriptTest.js.
15 // Partial interfaces should be able to use methods defined in the base interface.
16 return this.addValues_(value1, value2);
19 Object.defineProperty(PrivateScriptTestPrototype, "stringAttributeInPartial", {
20 get: function() { return this.m_stringAttributeInPartial; },
21 set: function(value) { this.m_stringAttributeInPartial = value; }