| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 DOMStringList_Contains_Method_IndexedDB = 848, | 748 DOMStringList_Contains_Method_IndexedDB = 848, |
| 753 DOMStringList_Contains_Method_Location = 849, | 749 DOMStringList_Contains_Method_Location = 849, |
| 754 NavigatorVibrate = 850, | 750 NavigatorVibrate = 850, |
| 755 NavigatorVibrateSubFrame = 851, | 751 NavigatorVibrateSubFrame = 851, |
| 756 PermissionStatusStatus = 852, | 752 PermissionStatusStatus = 852, |
| 757 V8XPathEvaluator_Constructor = 853, | 753 V8XPathEvaluator_Constructor = 853, |
| 758 V8XPathEvaluator_CreateExpression_Method = 854, | 754 V8XPathEvaluator_CreateExpression_Method = 854, |
| 759 V8XPathEvaluator_CreateNSResolver_Method = 855, | 755 V8XPathEvaluator_CreateNSResolver_Method = 855, |
| 760 V8XPathEvaluator_Evaluate_Method = 856, | 756 V8XPathEvaluator_Evaluate_Method = 856, |
| 761 RequestMIDIAccess = 857, | 757 RequestMIDIAccess = 857, |
| 758 V8MouseEvent_LayerX_AttributeGetter = 858, |
| 759 V8MouseEvent_LayerY_AttributeGetter = 859, |
| 762 | 760 |
| 763 // Add new features immediately above this line. Don't change assigned | 761 // Add new features immediately above this line. Don't change assigned |
| 764 // numbers of any item, and don't reuse removed slots. | 762 // numbers of any item, and don't reuse removed slots. |
| 765 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 763 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 766 // to update the UMA mapping. | 764 // to update the UMA mapping. |
| 767 NumberOfFeatures, // This enum value must be last. | 765 NumberOfFeatures, // This enum value must be last. |
| 768 }; | 766 }; |
| 769 | 767 |
| 770 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 768 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 771 static void count(const Frame*, Feature); | 769 static void count(const Frame*, Feature); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 | 853 |
| 856 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 854 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
| 857 | 855 |
| 858 CountBits m_countBits; | 856 CountBits m_countBits; |
| 859 BitVector m_CSSFeatureBits; | 857 BitVector m_CSSFeatureBits; |
| 860 }; | 858 }; |
| 861 | 859 |
| 862 } // namespace blink | 860 } // namespace blink |
| 863 | 861 |
| 864 #endif // UseCounter_h | 862 #endif // UseCounter_h |
| OLD | NEW |