| 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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 SelectionAddRange = 1004, | 866 SelectionAddRange = 1004, |
| 867 SelectionRemoveAllRanges = 1005, | 867 SelectionRemoveAllRanges = 1005, |
| 868 SelectionCollapse = 1006, | 868 SelectionCollapse = 1006, |
| 869 SelectionCollapseToStart = 1007, | 869 SelectionCollapseToStart = 1007, |
| 870 SelectionCollapseToEnd = 1008, | 870 SelectionCollapseToEnd = 1008, |
| 871 SelectionExtend = 1009, | 871 SelectionExtend = 1009, |
| 872 SelectionSelectAllChildren = 1010, | 872 SelectionSelectAllChildren = 1010, |
| 873 SelectionDeleteDromDocument = 1011, | 873 SelectionDeleteDromDocument = 1011, |
| 874 SelectionDOMString = 1012, | 874 SelectionDOMString = 1012, |
| 875 InputTypeRangeVerticalAppearance = 1013, | 875 InputTypeRangeVerticalAppearance = 1013, |
| 876 BackgroundSyncRegister = 1014, |
| 876 | 877 |
| 877 // Add new features immediately above this line. Don't change assigned | 878 // Add new features immediately above this line. Don't change assigned |
| 878 // numbers of any item, and don't reuse removed slots. | 879 // numbers of any item, and don't reuse removed slots. |
| 879 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 880 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 880 // to update the UMA mapping. | 881 // to update the UMA mapping. |
| 881 NumberOfFeatures, // This enum value must be last. | 882 NumberOfFeatures, // This enum value must be last. |
| 882 }; | 883 }; |
| 883 | 884 |
| 884 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 885 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 885 static void count(const Frame*, Feature); | 886 static void count(const Frame*, Feature); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 | 971 |
| 971 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 972 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
| 972 | 973 |
| 973 CountBits m_countBits; | 974 CountBits m_countBits; |
| 974 BitVector m_CSSFeatureBits; | 975 BitVector m_CSSFeatureBits; |
| 975 }; | 976 }; |
| 976 | 977 |
| 977 } // namespace blink | 978 } // namespace blink |
| 978 | 979 |
| 979 #endif // UseCounter_h | 980 #endif // UseCounter_h |
| OLD | NEW |