OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef Deprecation_h | 5 #ifndef Deprecation_h |
6 #define Deprecation_h | 6 #define Deprecation_h |
7 | 7 |
8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include "core/frame/UseCounter.h" | 10 #include "core/frame/UseCounter.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // doesn't count the usage but only sends a console warning. | 36 // doesn't count the usage but only sends a console warning. |
37 static void countDeprecation(const LocalFrame*, UseCounter::Feature); | 37 static void countDeprecation(const LocalFrame*, UseCounter::Feature); |
38 static void countDeprecation(ExecutionContext*, UseCounter::Feature); | 38 static void countDeprecation(ExecutionContext*, UseCounter::Feature); |
39 static void countDeprecation(const Document&, UseCounter::Feature); | 39 static void countDeprecation(const Document&, UseCounter::Feature); |
40 // Use countDeprecationIfNotPrivateScript() instead of countDeprecation() | 40 // Use countDeprecationIfNotPrivateScript() instead of countDeprecation() |
41 // if you don't want to count metrics in private scripts. You should use | 41 // if you don't want to count metrics in private scripts. You should use |
42 // countDeprecationIfNotPrivateScript() in a binding layer. | 42 // countDeprecationIfNotPrivateScript() in a binding layer. |
43 static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContex
t*, UseCounter::Feature); | 43 static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContex
t*, UseCounter::Feature); |
44 static String deprecationMessage(UseCounter::Feature); | 44 static String deprecationMessage(UseCounter::Feature); |
45 | 45 |
46 static String willBeRemoved(const char* feature, int milestone, const char*
details); | |
47 | |
48 protected: | 46 protected: |
49 void suppress(CSSPropertyID unresolvedProperty); | 47 void suppress(CSSPropertyID unresolvedProperty); |
50 bool isSuppressed(CSSPropertyID unresolvedProperty); | 48 bool isSuppressed(CSSPropertyID unresolvedProperty); |
51 // CSSPropertyIDs that aren't deprecated return an empty string. | 49 // CSSPropertyIDs that aren't deprecated return an empty string. |
52 static String deprecationMessage(CSSPropertyID unresolvedProperty); | 50 static String deprecationMessage(CSSPropertyID unresolvedProperty); |
53 | 51 |
54 BitVector m_cssPropertyDeprecationBits; | 52 BitVector m_cssPropertyDeprecationBits; |
55 }; | 53 }; |
56 | 54 |
57 } // namespace blink | 55 } // namespace blink |
58 | 56 |
59 #endif // Deprecation_h | 57 #endif // Deprecation_h |
OLD | NEW |