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

Unified Diff: third_party/WebKit/Source/core/frame/Deprecation.h

Issue 1585383003: Add deprecation message for -webkit-background-composite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698