| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 Google, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 ImageDocument = 1274, | 1089 ImageDocument = 1274, |
| 1090 ScriptPassesCSPDynamic = 1275, | 1090 ScriptPassesCSPDynamic = 1275, |
| 1091 ScriptPassesCSPNonce = 1276, | 1091 ScriptPassesCSPNonce = 1276, |
| 1092 CSPWithUnsafeDynamic = 1277, | 1092 CSPWithUnsafeDynamic = 1277, |
| 1093 ScrollAnchored = 1278, | 1093 ScrollAnchored = 1278, |
| 1094 AddEventListenerFourArguments = 1279, | 1094 AddEventListenerFourArguments = 1279, |
| 1095 RemoveEventListenerFourArguments = 1280, | 1095 RemoveEventListenerFourArguments = 1280, |
| 1096 InvalidReportUriDirectiveInMetaCSP = 1281, | 1096 InvalidReportUriDirectiveInMetaCSP = 1281, |
| 1097 InvalidSandboxDirectiveInMetaCSP = 1282, | 1097 InvalidSandboxDirectiveInMetaCSP = 1282, |
| 1098 InvalidFrameAncestorsDirectiveInMetaCSP = 1283, | 1098 InvalidFrameAncestorsDirectiveInMetaCSP = 1283, |
| 1099 TouchDragUserGestureUsed = 1284, | |
| 1100 DocumentCreateEventForeignFetchEvent = 1286, | 1099 DocumentCreateEventForeignFetchEvent = 1286, |
| 1101 SVGCalcModeDiscrete = 1287, | 1100 SVGCalcModeDiscrete = 1287, |
| 1102 SVGCalcModeLinear = 1288, | 1101 SVGCalcModeLinear = 1288, |
| 1103 SVGCalcModePaced = 1289, | 1102 SVGCalcModePaced = 1289, |
| 1104 SVGCalcModeSpline = 1290, | 1103 SVGCalcModeSpline = 1290, |
| 1105 FormSubmissionStarted = 1291, | 1104 FormSubmissionStarted = 1291, |
| 1106 FormValidationStarted = 1292, | 1105 FormValidationStarted = 1292, |
| 1107 FormValidationAbortedSubmission = 1293, | 1106 FormValidationAbortedSubmission = 1293, |
| 1108 FormValidationShowedMessage = 1294, | 1107 FormValidationShowedMessage = 1294, |
| 1109 WebAnimationsEasingAsFunctionLinear = 1295, | 1108 WebAnimationsEasingAsFunctionLinear = 1295, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 DurableStoragePersist = 1369, | 1184 DurableStoragePersist = 1369, |
| 1186 DurableStoragePersisted = 1370, | 1185 DurableStoragePersisted = 1370, |
| 1187 DurableStorageEstimate = 1371, | 1186 DurableStorageEstimate = 1371, |
| 1188 UntrustedEventDefaultHandled = 1372, | 1187 UntrustedEventDefaultHandled = 1372, |
| 1189 FixedRasterScaleBlurryContent = 1373, | 1188 FixedRasterScaleBlurryContent = 1373, |
| 1190 FixedRasterScalePotentialPerformanceRegression = 1374, | 1189 FixedRasterScalePotentialPerformanceRegression = 1374, |
| 1191 CSSDeepCombinatorAndShadow = 1375, | 1190 CSSDeepCombinatorAndShadow = 1375, |
| 1192 OpacityWithPreserve3DQuirk = 1376, | 1191 OpacityWithPreserve3DQuirk = 1376, |
| 1193 CSSSelectorPseudoReadOnly = 1377, | 1192 CSSSelectorPseudoReadOnly = 1377, |
| 1194 CSSSelectorPseudoReadWrite = 1378, | 1193 CSSSelectorPseudoReadWrite = 1378, |
| 1194 // The above items are available in M52 branch |
| 1195 |
| 1196 TouchStartUserGestureUtilized = 1380, |
| 1197 TouchMoveUserGestureUtilized = 1381, |
| 1198 TouchEndDuringScrollUserGestureUtilized = 1382, |
| 1195 | 1199 |
| 1196 // Add new features immediately above this line. Don't change assigned | 1200 // Add new features immediately above this line. Don't change assigned |
| 1197 // numbers of any item, and don't reuse removed slots. | 1201 // numbers of any item, and don't reuse removed slots. |
| 1198 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 1202 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 1199 // to update the UMA mapping. | 1203 // to update the UMA mapping. |
| 1200 NumberOfFeatures, // This enum value must be last. | 1204 NumberOfFeatures, // This enum value must be last. |
| 1201 }; | 1205 }; |
| 1202 | 1206 |
| 1203 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 1207 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 1204 static void count(const Frame*, Feature); | 1208 static void count(const Frame*, Feature); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 friend class UseCounterTest; | 1283 friend class UseCounterTest; |
| 1280 static int m_muteCount; | 1284 static int m_muteCount; |
| 1281 | 1285 |
| 1282 CountBits m_countBits; | 1286 CountBits m_countBits; |
| 1283 BitVector m_CSSFeatureBits; | 1287 BitVector m_CSSFeatureBits; |
| 1284 }; | 1288 }; |
| 1285 | 1289 |
| 1286 } // namespace blink | 1290 } // namespace blink |
| 1287 | 1291 |
| 1288 #endif // UseCounter_h | 1292 #endif // UseCounter_h |
| OLD | NEW |