| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 TextInputEventOnContentEditable= 445, | 445 TextInputEventOnContentEditable= 445, |
| 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 EditingAppleInterchangeNewline = 455, |
| 456 EditingAppleConvertedSpace = 456, |
| 457 EditingApplePasteAsQuotation = 457, |
| 458 EditingAppleStyleSpanClass = 458, |
| 459 EditingAppleTabSpanClass = 459, |
| 455 // Add new features immediately above this line. Don't change assigned | 460 // Add new features immediately above this line. Don't change assigned |
| 456 // numbers of any item, and don't reuse removed slots. | 461 // numbers of any item, and don't reuse removed slots. |
| 457 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 462 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 458 // to update the UMA mapping. | 463 // to update the UMA mapping. |
| 459 NumberOfFeatures, // This enum value must be last. | 464 NumberOfFeatures, // This enum value must be last. |
| 460 }; | 465 }; |
| 461 | 466 |
| 462 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 467 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 463 static void count(const Document&, Feature); | 468 static void count(const Document&, Feature); |
| 464 // This doesn't count for non-Document ExecutionContext. | 469 // This doesn't count for non-Document ExecutionContext. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 515 |
| 511 void updateMeasurements(); | 516 void updateMeasurements(); |
| 512 | 517 |
| 513 OwnPtr<BitVector> m_countBits; | 518 OwnPtr<BitVector> m_countBits; |
| 514 BitVector m_CSSFeatureBits; | 519 BitVector m_CSSFeatureBits; |
| 515 }; | 520 }; |
| 516 | 521 |
| 517 } // namespace WebCore | 522 } // namespace WebCore |
| 518 | 523 |
| 519 #endif // UseCounter_h | 524 #endif // UseCounter_h |
| OLD | NEW |