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

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

Issue 1148673002: Add UseCounter for multiple createShadowRoot() for deprecation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix for review Created 5 years, 7 months 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/dom/shadow/ElementShadow.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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 PushSubscriptionId = 769, 685 PushSubscriptionId = 769,
686 EncryptedMediaSecureOrigin = 770, 686 EncryptedMediaSecureOrigin = 770,
687 EncryptedMediaInsecureOrigin = 771, 687 EncryptedMediaInsecureOrigin = 771,
688 PerformanceFrameTiming = 772, 688 PerformanceFrameTiming = 772,
689 V8Element_Animate_Method = 773, 689 V8Element_Animate_Method = 773,
690 V8SVGSVGElement_PixelUnitToMillimeterX_AttributeGetter = 774, 690 V8SVGSVGElement_PixelUnitToMillimeterX_AttributeGetter = 774,
691 V8SVGSVGElement_PixelUnitToMillimeterY_AttributeGetter = 775, 691 V8SVGSVGElement_PixelUnitToMillimeterY_AttributeGetter = 775,
692 V8SVGSVGElement_ScreenPixelToMillimeterX_AttributeGetter = 776, 692 V8SVGSVGElement_ScreenPixelToMillimeterX_AttributeGetter = 776,
693 V8SVGSVGElement_ScreenPixelToMillimeterY_AttributeGetter = 777, 693 V8SVGSVGElement_ScreenPixelToMillimeterY_AttributeGetter = 777,
694 V8SVGSVGElement_GetElementById_Method = 778, 694 V8SVGSVGElement_GetElementById_Method = 778,
695 ElementCreateShadowRootMultiple = 779,
695 696
696 // Add new features immediately above this line. Don't change assigned 697 // Add new features immediately above this line. Don't change assigned
697 // numbers of any item, and don't reuse removed slots. 698 // numbers of any item, and don't reuse removed slots.
698 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 699 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
699 // to update the UMA mapping. 700 // to update the UMA mapping.
700 NumberOfFeatures, // This enum value must be last. 701 NumberOfFeatures, // This enum value must be last.
701 }; 702 };
702 703
703 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 704 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
704 static void count(const Frame*, Feature); 705 static void count(const Frame*, Feature);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 789
789 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 790 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
790 791
791 CountBits m_countBits; 792 CountBits m_countBits;
792 BitVector m_CSSFeatureBits; 793 BitVector m_CSSFeatureBits;
793 }; 794 };
794 795
795 } // namespace blink 796 } // namespace blink
796 797
797 #endif // UseCounter_h 798 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/ElementShadow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698