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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 MouseEventFromElement = 506, | 491 MouseEventFromElement = 506, |
492 MouseEventToElement = 507, | 492 MouseEventToElement = 507, |
493 RequestFileSystem = 508, | 493 RequestFileSystem = 508, |
494 RequestFileSystemWorker = 509, | 494 RequestFileSystemWorker = 509, |
495 RequestFileSystemSyncWorker = 510, | 495 RequestFileSystemSyncWorker = 510, |
496 UIEventLayerX = 511, | 496 UIEventLayerX = 511, |
497 UIEventLayerY = 512, | 497 UIEventLayerY = 512, |
498 UIEventPageX = 513, | 498 UIEventPageX = 513, |
499 UIEventPageY = 514, | 499 UIEventPageY = 514, |
500 BgPropertiesFixed = 515, | 500 BgPropertiesFixed = 515, |
| 501 HTMLImageElementComposite = 516, |
501 // Add new features immediately above this line. Don't change assigned | 502 // Add new features immediately above this line. Don't change assigned |
502 // numbers of any item, and don't reuse removed slots. | 503 // numbers of any item, and don't reuse removed slots. |
503 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 504 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
504 // to update the UMA mapping. | 505 // to update the UMA mapping. |
505 NumberOfFeatures, // This enum value must be last. | 506 NumberOfFeatures, // This enum value must be last. |
506 }; | 507 }; |
507 | 508 |
508 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 509 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
509 static void count(const Document&, Feature); | 510 static void count(const Document&, Feature); |
510 // This doesn't count for ExecutionContexts for shared workers and service | 511 // This doesn't count for ExecutionContexts for shared workers and service |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 562 |
562 void updateMeasurements(); | 563 void updateMeasurements(); |
563 | 564 |
564 OwnPtr<BitVector> m_countBits; | 565 OwnPtr<BitVector> m_countBits; |
565 BitVector m_CSSFeatureBits; | 566 BitVector m_CSSFeatureBits; |
566 }; | 567 }; |
567 | 568 |
568 } // namespace blink | 569 } // namespace blink |
569 | 570 |
570 #endif // UseCounter_h | 571 #endif // UseCounter_h |
OLD | NEW |