Chromium Code Reviews| 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 showConsoleWarning(const LocalFrame*, CSSPropertyID); | |
|
Timothy Loh
2016/01/25 04:48:41
please name all of the CSSPropertyID values here a
nainar
2016/01/25 05:33:22
Done.
| |
| 24 | |
| 25 protected: | |
| 26 void suppress(CSSPropertyID); | |
| 27 bool isSuppressed(CSSPropertyID); | |
| 28 // CSSPropertyIDs that aren't deprecated return an empty string. | |
| 29 static String deprecationMessage(CSSPropertyID); | |
| 30 | |
| 31 BitVector m_cssPropertyDeprecationBits; | |
| 32 }; | |
| 33 | |
| 34 } // namespace blink | |
| 35 | |
| 36 #endif // Deprecation_h | |
| OLD | NEW |