OLD | NEW |
(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 #ifndef OriginTrialsTestPartial_h |
| 6 #define OriginTrialsTestPartial_h |
| 7 |
| 8 #include "wtf/Allocator.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class OriginTrialsTest; |
| 13 |
| 14 // This interface is used for testing that partial interfaces can extend other |
| 15 // interfaces at run-time, if the origin trial is enabled. |
| 16 class OriginTrialsTestPartial final { |
| 17 STATIC_ONLY(OriginTrialsTestPartial); |
| 18 public: |
| 19 static bool normalAttributePartial(OriginTrialsTest&) { return true; } |
| 20 static bool staticAttributePartial() { return true; } |
| 21 static bool methodPartial(OriginTrialsTest&) { return true; } |
| 22 static bool staticMethodPartial() { return true; } |
| 23 static const unsigned kConstantPartial = 2; |
| 24 }; |
| 25 |
| 26 } // namespace blink |
| 27 |
| 28 #endif // OriginTrialsTestPartial_h |
OLD | NEW |