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

Side by Side Diff: third_party/WebKit/Source/core/testing/OriginTrialsTest.idl

Issue 2340323002: Add Origin Trials Test interface, rather than attaching trials directly to internals. (Closed)
Patch Set: Updates Created 4 years, 3 months 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 2016 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 interface OriginTrialsTest {
6 [OriginTrialEnabled=OriginTrialsSampleAPI] readonly attribute boolean normal Attribute;
7 [OriginTrialEnabled=OriginTrialsSampleAPI] static readonly attribute boolean staticAttribute;
8 [OriginTrialEnabled=OriginTrialsSampleAPI] const unsigned short CONSTANT = 1 ;
9
10 // This attribute uses native code to test whether the trial is enabled,
11 // and throws an exception in JavaScript if it is not.
12 [CallWith=ScriptState, RaisesException] readonly attribute boolean throwingA ttribute;
13
14 // This attribute is available whether or not the trial is enabled.
15 readonly attribute boolean unconditionalAttribute;
16
17 // This attribute mirrors |unconditionalAttribute| above, but should only be
18 // available if the trial is enabled.
19 [OriginTrialEnabled=OriginTrialsSampleAPI, ImplementedAs=unconditionalAttrib ute] readonly attribute boolean bindingsTest;
20 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698