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

Unified Diff: third_party/WebKit/Source/modules/vibration/NavigatorVibration.h

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: Keep depcreated UserCounter metrics and suffix the labels with (obsolete). Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/vibration/NavigatorVibration.h
diff --git a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.h b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.h
index 22a5898677dce4aa7972c337e01693d7236d120b..4facf054c9715699e77d7e84bb82e9a3e1da39db 100644
--- a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.h
+++ b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.h
@@ -33,6 +33,16 @@ namespace blink {
class Navigator;
class VibrationController;
+enum NavigatorVibrationType {
+ MainFrameNoUserGesture = 0,
+ MainFrameWithUserGesture = 1,
+ SameOriginSubFrameNoUserGesture = 2,
+ SameOriginSubFrameWithUserGesture = 3,
+ CrossOriginSubFrameNoUserGesture = 4,
+ CrossOriginSubFrameWithUserGesture = 5,
+ EnumMax = 6
+};
+
class MODULES_EXPORT NavigatorVibration final
: public GarbageCollectedFinalized<NavigatorVibration>
, public Supplement<Navigator>

Powered by Google App Engine
This is Rietveld 408576698