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

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

Issue 1415573015: Count usage of <meter> with various -webkit-appearance values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update histograms.xml Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMeterElement.cpp » ('j') | 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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 ExternalAddSearchProvider = 981, 855 ExternalAddSearchProvider = 981,
856 ExternalIsSearchProviderInstalled = 982, 856 ExternalIsSearchProviderInstalled = 982,
857 V8Permissions_RequestAll_Method = 983, 857 V8Permissions_RequestAll_Method = 983,
858 BluetoothDeviceInstanceId = 984, 858 BluetoothDeviceInstanceId = 984,
859 HTMLLabelElementFormIDLAttribute = 985, 859 HTMLLabelElementFormIDLAttribute = 985,
860 HTMLLabelElementFormContentAttribute = 986, 860 HTMLLabelElementFormContentAttribute = 986,
861 DeviceOrientationAbsoluteInsecureOrigin = 987, 861 DeviceOrientationAbsoluteInsecureOrigin = 987,
862 DeviceOrientationAbsoluteSecureOrigin = 988, 862 DeviceOrientationAbsoluteSecureOrigin = 988,
863 FontFaceConstructor = 989, 863 FontFaceConstructor = 989,
864 ServiceWorkerControlledPage = 990, 864 ServiceWorkerControlledPage = 990,
865 MeterElementWithContinuousCapacityAppearance = 991,
866 MeterElementWithDiscreteCapacityAppearance = 992,
867 MeterElementWithMeterAppearance = 993,
868 MeterElementWithNoneAppearance = 994,
869 MeterElementWithRatingAppearance = 995,
870 MeterElementWithRelevancyAppearance = 996,
865 871
866 // Add new features immediately above this line. Don't change assigned 872 // Add new features immediately above this line. Don't change assigned
867 // numbers of any item, and don't reuse removed slots. 873 // numbers of any item, and don't reuse removed slots.
868 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 874 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
869 // to update the UMA mapping. 875 // to update the UMA mapping.
870 NumberOfFeatures, // This enum value must be last. 876 NumberOfFeatures, // This enum value must be last.
871 }; 877 };
872 878
873 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 879 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
874 static void count(const Frame*, Feature); 880 static void count(const Frame*, Feature);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 965
960 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 966 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
961 967
962 CountBits m_countBits; 968 CountBits m_countBits;
963 BitVector m_CSSFeatureBits; 969 BitVector m_CSSFeatureBits;
964 }; 970 };
965 971
966 } // namespace blink 972 } // namespace blink
967 973
968 #endif // UseCounter_h 974 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMeterElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698