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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 SVGSMILElementInDocument = 501, | 426 SVGSMILElementInDocument = 501, |
427 MouseEventOffsetX = 502, | 427 MouseEventOffsetX = 502, |
428 MouseEventOffsetY = 503, | 428 MouseEventOffsetY = 503, |
429 MouseEventX = 504, | 429 MouseEventX = 504, |
430 MouseEventY = 505, | 430 MouseEventY = 505, |
431 MouseEventFromElement = 506, | 431 MouseEventFromElement = 506, |
432 MouseEventToElement = 507, | 432 MouseEventToElement = 507, |
433 RequestFileSystem = 508, | 433 RequestFileSystem = 508, |
434 RequestFileSystemWorker = 509, | 434 RequestFileSystemWorker = 509, |
435 RequestFileSystemSyncWorker = 510, | 435 RequestFileSystemSyncWorker = 510, |
436 UIEventLayerX = 511, | |
437 UIEventLayerY = 512, | |
438 UIEventPageX = 513, | |
439 UIEventPageY = 514, | |
440 DevToolsConsoleProfile = 518, | 436 DevToolsConsoleProfile = 518, |
441 SVGStyleElementTitle = 519, | 437 SVGStyleElementTitle = 519, |
442 PictureSourceSrc = 520, | 438 PictureSourceSrc = 520, |
443 // The above items are available in M38 branch. | 439 // The above items are available in M38 branch. |
444 | 440 |
445 Picture = 521, | 441 Picture = 521, |
446 Sizes = 522, | 442 Sizes = 522, |
447 SrcsetXDescriptor = 523, | 443 SrcsetXDescriptor = 523, |
448 SrcsetWDescriptor = 524, | 444 SrcsetWDescriptor = 524, |
449 SelectionContainsNode = 525, | 445 SelectionContainsNode = 525, |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 ClientHintsResourceWidth = 836, | 736 ClientHintsResourceWidth = 836, |
741 ClientHintsViewportWidth = 837, | 737 ClientHintsViewportWidth = 837, |
742 SRIElementIntegrityAttributeButIneligible = 838, | 738 SRIElementIntegrityAttributeButIneligible = 838, |
743 FormDataAppendFile = 839, | 739 FormDataAppendFile = 839, |
744 FormDataAppendFileWithFilename = 840, | 740 FormDataAppendFileWithFilename = 840, |
745 FormDataAppendBlob = 841, | 741 FormDataAppendBlob = 841, |
746 FormDataAppendBlobWithFilename = 842, | 742 FormDataAppendBlobWithFilename = 842, |
747 FormDataAppendNull = 843, | 743 FormDataAppendNull = 843, |
748 HTMLDocumentCreateAttributeNameNotLowercase = 844, | 744 HTMLDocumentCreateAttributeNameNotLowercase = 844, |
749 NonHTMLElementSetAttributeNodeFromHTMLDocumentNameNotLowercase = 845, | 745 NonHTMLElementSetAttributeNodeFromHTMLDocumentNameNotLowercase = 845, |
| 746 MouseEventLayerX = 846, |
| 747 MouseEventLayerY = 847, |
750 | 748 |
751 // Add new features immediately above this line. Don't change assigned | 749 // Add new features immediately above this line. Don't change assigned |
752 // numbers of any item, and don't reuse removed slots. | 750 // numbers of any item, and don't reuse removed slots. |
753 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 751 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
754 // to update the UMA mapping. | 752 // to update the UMA mapping. |
755 NumberOfFeatures, // This enum value must be last. | 753 NumberOfFeatures, // This enum value must be last. |
756 }; | 754 }; |
757 | 755 |
758 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 756 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
759 static void count(const Frame*, Feature); | 757 static void count(const Frame*, Feature); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 | 841 |
844 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 842 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
845 | 843 |
846 CountBits m_countBits; | 844 CountBits m_countBits; |
847 BitVector m_CSSFeatureBits; | 845 BitVector m_CSSFeatureBits; |
848 }; | 846 }; |
849 | 847 |
850 } // namespace blink | 848 } // namespace blink |
851 | 849 |
852 #endif // UseCounter_h | 850 #endif // UseCounter_h |
OLD | NEW |