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

Side by Side Diff: third_party/WebKit/Source/core/frame/Deprecation.h

Issue 1799253002: Stricter user gestures for touch - measure and warn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaks Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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 // Count only features if they're being used in an iframe which does not 44 // Count only features if they're being used in an iframe which does not
45 // have script access into the top level document. 45 // have script access into the top level document.
46 static void countDeprecationCrossOriginIframe(const LocalFrame*, UseCounter: :Feature);
46 static void countDeprecationCrossOriginIframe(const Document&, UseCounter::F eature); 47 static void countDeprecationCrossOriginIframe(const Document&, UseCounter::F eature);
47 static String deprecationMessage(UseCounter::Feature); 48 static String deprecationMessage(UseCounter::Feature);
48 49
49 protected: 50 protected:
50 void suppress(CSSPropertyID unresolvedProperty); 51 void suppress(CSSPropertyID unresolvedProperty);
51 bool isSuppressed(CSSPropertyID unresolvedProperty); 52 bool isSuppressed(CSSPropertyID unresolvedProperty);
52 // CSSPropertyIDs that aren't deprecated return an empty string. 53 // CSSPropertyIDs that aren't deprecated return an empty string.
53 static String deprecationMessage(CSSPropertyID unresolvedProperty); 54 static String deprecationMessage(CSSPropertyID unresolvedProperty);
54 55
55 BitVector m_cssPropertyDeprecationBits; 56 BitVector m_cssPropertyDeprecationBits;
56 }; 57 };
57 58
58 } // namespace blink 59 } // namespace blink
59 60
60 #endif // Deprecation_h 61 #endif // Deprecation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698