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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 TextInputEventOnNotNode = 446, | 446 TextInputEventOnNotNode = 446, |
447 WebkitBeforeTextInsertedOnInput = 447, | 447 WebkitBeforeTextInsertedOnInput = 447, |
448 WebkitBeforeTextInsertedOnTextArea = 448, | 448 WebkitBeforeTextInsertedOnTextArea = 448, |
449 WebkitBeforeTextInsertedOnContentEditable = 449, | 449 WebkitBeforeTextInsertedOnContentEditable = 449, |
450 WebkitBeforeTextInsertedOnNotNode = 450, | 450 WebkitBeforeTextInsertedOnNotNode = 450, |
451 WebkitEditableContentChangedOnInput = 451, | 451 WebkitEditableContentChangedOnInput = 451, |
452 WebkitEditableContentChangedOnTextArea = 452, | 452 WebkitEditableContentChangedOnTextArea = 452, |
453 WebkitEditableContentChangedOnContentEditable = 453, | 453 WebkitEditableContentChangedOnContentEditable = 453, |
454 WebkitEditableContentChangedOnNotNode = 454, | 454 WebkitEditableContentChangedOnNotNode = 454, |
455 HTMLImports = 455, | 455 HTMLImports = 455, |
| 456 ElementCreateShadowRoot = 456, |
456 // Add new features immediately above this line. Don't change assigned | 457 // Add new features immediately above this line. Don't change assigned |
457 // numbers of any item, and don't reuse removed slots. | 458 // numbers of any item, and don't reuse removed slots. |
458 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 459 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
459 // to update the UMA mapping. | 460 // to update the UMA mapping. |
460 NumberOfFeatures, // This enum value must be last. | 461 NumberOfFeatures, // This enum value must be last. |
461 }; | 462 }; |
462 | 463 |
463 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 464 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
464 static void count(const Document&, Feature); | 465 static void count(const Document&, Feature); |
465 // This doesn't count for non-Document ExecutionContext. | 466 // This doesn't count for non-Document ExecutionContext. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 | 512 |
512 void updateMeasurements(); | 513 void updateMeasurements(); |
513 | 514 |
514 OwnPtr<BitVector> m_countBits; | 515 OwnPtr<BitVector> m_countBits; |
515 BitVector m_CSSFeatureBits; | 516 BitVector m_CSSFeatureBits; |
516 }; | 517 }; |
517 | 518 |
518 } // namespace WebCore | 519 } // namespace WebCore |
519 | 520 |
520 #endif // UseCounter_h | 521 #endif // UseCounter_h |
OLD | NEW |