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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 WindowMoveResizeMissingArguments = 684, | 619 WindowMoveResizeMissingArguments = 684, |
620 SVGSVGElementForceRedraw = 685, | 620 SVGSVGElementForceRedraw = 685, |
621 SVGSVGElementSuspendRedraw = 686, | 621 SVGSVGElementSuspendRedraw = 686, |
622 SVGSVGElementUnsuspendRedraw = 687, | 622 SVGSVGElementUnsuspendRedraw = 687, |
623 SVGSVGElementUnsuspendRedrawAll = 688, | 623 SVGSVGElementUnsuspendRedrawAll = 688, |
624 AudioContextClose = 689, | 624 AudioContextClose = 689, |
625 ServiceWorkerClientPostMessage = 690, | 625 ServiceWorkerClientPostMessage = 690, |
626 CSSZoomNotEqualToOne = 691, | 626 CSSZoomNotEqualToOne = 691, |
627 SVGGraphicsElementGetTransformToElement = 692, | 627 SVGGraphicsElementGetTransformToElement = 692, |
628 ServiceWorkerClientsGetAll = 693, | 628 ServiceWorkerClientsGetAll = 693, |
| 629 // The above items are available in M42 branch. |
| 630 |
629 ClientRectListItem = 694, | 631 ClientRectListItem = 694, |
| 632 WindowClientInformation = 695, |
| 633 WindowFind = 696, |
| 634 WindowScreenLeft = 697, |
| 635 WindowScreenTop = 698, |
630 | 636 |
631 // Add new features immediately above this line. Don't change assigned | 637 // Add new features immediately above this line. Don't change assigned |
632 // numbers of any item, and don't reuse removed slots. | 638 // numbers of any item, and don't reuse removed slots. |
633 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 639 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
634 // to update the UMA mapping. | 640 // to update the UMA mapping. |
635 NumberOfFeatures, // This enum value must be last. | 641 NumberOfFeatures, // This enum value must be last. |
636 }; | 642 }; |
637 | 643 |
638 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 644 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
639 static void count(const Frame*, Feature); | 645 static void count(const Frame*, Feature); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 bool recordMeasurement(Feature feature) { return m_countBits.recordMeasureme
nt(feature); } | 717 bool recordMeasurement(Feature feature) { return m_countBits.recordMeasureme
nt(feature); } |
712 void updateMeasurements(); | 718 void updateMeasurements(); |
713 | 719 |
714 CountBits m_countBits; | 720 CountBits m_countBits; |
715 BitVector m_CSSFeatureBits; | 721 BitVector m_CSSFeatureBits; |
716 }; | 722 }; |
717 | 723 |
718 } // namespace blink | 724 } // namespace blink |
719 | 725 |
720 #endif // UseCounter_h | 726 #endif // UseCounter_h |
OLD | NEW |