Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/Deprecation.h |
| diff --git a/third_party/WebKit/Source/core/frame/Deprecation.h b/third_party/WebKit/Source/core/frame/Deprecation.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..11141ef4ba15d03b19557082fa52102b48c6b6af |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/frame/Deprecation.h |
| @@ -0,0 +1,36 @@ |
| +// 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. |
| + |
| +#ifndef Deprecation_h |
| +#define Deprecation_h |
| + |
| +#include "core/CSSPropertyNames.h" |
| +#include "wtf/BitVector.h" |
| +#include "wtf/Noncopyable.h" |
| + |
| +namespace blink { |
| + |
| +class LocalFrame; |
| + |
| +class Deprecation { |
| + DISALLOW_NEW(); |
| + WTF_MAKE_NONCOPYABLE(Deprecation); |
| +public: |
| + Deprecation(); |
| + ~Deprecation(); |
| + |
| + 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.
|
| + |
| +protected: |
| + void suppress(CSSPropertyID); |
| + bool isSuppressed(CSSPropertyID); |
| + // CSSPropertyIDs that aren't deprecated return an empty string. |
| + static String deprecationMessage(CSSPropertyID); |
| + |
| + BitVector m_cssPropertyDeprecationBits; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // Deprecation_h |