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

Unified Diff: tools/metrics/histograms/histograms.xml

Side-by-side diff isn't available for this file because of its large size.
Issue 2082463002: Measure the usage of navigator.vibrate in for user gesture & subframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add back NavigatorVibrateSubFrame UserCounter since we decide to go ahead to remove vibrate from if… Created 4 years, 5 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:
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/histograms/histograms.xml
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 5ef2c93c7e9cb479aeaa0c797a5a52499b1ec56d..579db9d79939b42103112dda2d973c6e47fea58e 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -61243,6 +61243,14 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="Vibration.Context" enum="NavigatorVibrationType">
+ <owner>binlu@google.com</owner>
+ <summary>
+ Records instances of navigator.vibrate. Includes whether or not it comes
+ with a user gesture, same-origin subframe or cross-origin subframe.
+ </summary>
+</histogram>
+
<histogram name="VideoPlayer.CastAPIExtensionStatus"
enum="VideoPlayerCastAPIExtensionStatus">
<owner>yoshiki@chromium.org</owner>
@@ -82829,6 +82837,15 @@ To add a new entry, add it with any value and run test to compute valid value.
<int value="9" label="blob"/>
</enum>
+<enum name="NavigatorVibrationType" type="int">
+ <int value="0" label="Main frame vibrate, no user gesture"/>
+ <int value="1" label="Main frame vibrate, with user gesture"/>
+ <int value="2" label="Same-origin subframe vibrate, no user gesture"/>
+ <int value="3" label="Same-origin subframe vibrate, with user gesture"/>
+ <int value="4" label="Cross-origin subframe vibrate, no user gesture"/>
+ <int value="5" label="Cross-origin subframe vibrate, with user gesture"/>
+</enum>
+
<enum name="NetCacheState" type="int">
<int value="0" label="FROM_CACHE"/>
<int value="1" label="STILL_VALID"/>
« no previous file with comments | « third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698