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 Deprecation_h |
| 6 #define Deprecation_h |
| 7 |
| 8 #include "core/CSSPropertyNames.h" |
| 9 #include "wtf/BitVector.h" |
| 10 #include "wtf/Noncopyable.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class LocalFrame; |
| 15 |
| 16 class Deprecation { |
| 17 DISALLOW_NEW(); |
| 18 WTF_MAKE_NONCOPYABLE(Deprecation); |
| 19 public: |
| 20 Deprecation(); |
| 21 ~Deprecation(); |
| 22 |
| 23 static void warnOnDeprecatedProperties(const LocalFrame*, CSSPropertyID unre
solvedProperty); |
| 24 void clearSuppression(); |
| 25 |
| 26 protected: |
| 27 void suppress(CSSPropertyID unresolvedProperty); |
| 28 bool isSuppressed(CSSPropertyID unresolvedProperty); |
| 29 // CSSPropertyIDs that aren't deprecated return an empty string. |
| 30 static String deprecationMessage(CSSPropertyID unresolvedProperty); |
| 31 |
| 32 BitVector m_cssPropertyDeprecationBits; |
| 33 }; |
| 34 |
| 35 } // namespace blink |
| 36 |
| 37 #endif // Deprecation_h |
OLD | NEW |