| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // Test for [RuntimeEnabled] extended attribute applied to an interface that |
| // references an origin trial controlled feature. |
| |
| [ |
| RuntimeEnabled=OriginTrialInterfaceFeature |
| ] interface TestInterfaceOriginTrialEnabled { |
| const unsigned long UNSIGNED_LONG = 0; |
| const short CONST_JAVASCRIPT = 1; |
| |
| attribute double doubleAttribute; |
| [RuntimeEnabled=RuntimeFeature] attribute long conditionalLongAttribute; |
| [RuntimeEnabled=RuntimeFeature] readonly attribute long conditionalReadOnlyLongAttribute; |
| static attribute DOMString staticStringAttribute; |
| [RuntimeEnabled=RuntimeFeature] static readonly attribute long staticConditionalReadOnlyLongAttribute; |
| |
| void voidMethodDoubleArgFloatArg(double doubleArg, float floatArg); |
| |
| void voidMethodPartialOverload(); |
| void voidMethodPartialOverload(double doubleArg); |
| }; |