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

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

Issue 1535803003: Add two UseCounters for form.imageName and form.elements.imageName. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLFormControlsCollection.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 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 SelectionRemoveAllRanges = 1005, 867 SelectionRemoveAllRanges = 1005,
868 SelectionCollapse = 1006, 868 SelectionCollapse = 1006,
869 SelectionCollapseToStart = 1007, 869 SelectionCollapseToStart = 1007,
870 SelectionCollapseToEnd = 1008, 870 SelectionCollapseToEnd = 1008,
871 SelectionExtend = 1009, 871 SelectionExtend = 1009,
872 SelectionSelectAllChildren = 1010, 872 SelectionSelectAllChildren = 1010,
873 SelectionDeleteDromDocument = 1011, 873 SelectionDeleteDromDocument = 1011,
874 SelectionDOMString = 1012, 874 SelectionDOMString = 1012,
875 InputTypeRangeVerticalAppearance = 1013, 875 InputTypeRangeVerticalAppearance = 1013,
876 BackgroundSyncRegister = 1025, 876 BackgroundSyncRegister = 1025,
877 FormNameAccessForNonDescendantImageElement = 1093,
878 FormControlsCollectionNameAccessForImageElement = 1094,
877 879
878 // Add new features immediately above this line. Don't change assigned 880 // Add new features immediately above this line. Don't change assigned
879 // numbers of any item, and don't reuse removed slots. 881 // numbers of any item, and don't reuse removed slots.
880 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 882 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
881 // to update the UMA mapping. 883 // to update the UMA mapping.
882 NumberOfFeatures, // This enum value must be last. 884 NumberOfFeatures, // This enum value must be last.
883 }; 885 };
884 886
885 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 887 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
886 static void count(const Frame*, Feature); 888 static void count(const Frame*, Feature);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 973
972 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 974 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
973 975
974 CountBits m_countBits; 976 CountBits m_countBits;
975 BitVector m_CSSFeatureBits; 977 BitVector m_CSSFeatureBits;
976 }; 978 };
977 979
978 } // namespace blink 980 } // namespace blink
979 981
980 #endif // UseCounter_h 982 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLFormControlsCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698