Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: Source/core/frame/UseCounter.h

Issue 815503002: Add counters for addEventListener/removeEventListener optional arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/events/EventTarget.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 AudioContextCreateScriptProcessor = 646, 587 AudioContextCreateScriptProcessor = 646,
588 AudioContextCreateStereoPanner = 647, 588 AudioContextCreateStereoPanner = 647,
589 AudioContextCreateWaveShaper = 648, 589 AudioContextCreateWaveShaper = 648,
590 AudioContextDecodeAudioData = 649, 590 AudioContextDecodeAudioData = 649,
591 AudioContextResume = 650, 591 AudioContextResume = 650,
592 AudioContextSuspend = 651, 592 AudioContextSuspend = 651,
593 AudioContext = 652, 593 AudioContext = 652,
594 OfflineAudioContext = 653, 594 OfflineAudioContext = 653,
595 PrefixedAudioContext = 654, 595 PrefixedAudioContext = 654,
596 PrefixedOfflineAudioContext = 655, 596 PrefixedOfflineAudioContext = 655,
597 AddEventListenerNoArguments = 656,
598 AddEventListenerOneArgument = 657,
599 RemoveEventListenerNoArguments = 658,
600 RemoveEventListenerOneArgument = 659,
597 601
598 // Add new features immediately above this line. Don't change assigned 602 // Add new features immediately above this line. Don't change assigned
599 // numbers of any item, and don't reuse removed slots. 603 // numbers of any item, and don't reuse removed slots.
600 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 604 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
601 // to update the UMA mapping. 605 // to update the UMA mapping.
602 NumberOfFeatures, // This enum value must be last. 606 NumberOfFeatures, // This enum value must be last.
603 }; 607 };
604 608
605 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 609 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
606 static void count(const Frame*, Feature); 610 static void count(const Frame*, Feature);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 674
671 void updateMeasurements(); 675 void updateMeasurements();
672 676
673 OwnPtr<BitVector> m_countBits; 677 OwnPtr<BitVector> m_countBits;
674 BitVector m_CSSFeatureBits; 678 BitVector m_CSSFeatureBits;
675 }; 679 };
676 680
677 } // namespace blink 681 } // namespace blink
678 682
679 #endif // UseCounter_h 683 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/events/EventTarget.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698