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

Unified Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.h

Issue 2631113003: Add metric to know how user use scrollbar (Closed)
Patch Set: bokan comments addressed Created 3 years, 11 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/platform/scroll/Scrollbar.h
diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.h b/third_party/WebKit/Source/platform/scroll/Scrollbar.h
index a9cf98a131a2324eda0fa4c463733d68ebab51a1..dda90c03e278498a083417751fd09ea1044fa4dc 100644
--- a/third_party/WebKit/Source/platform/scroll/Scrollbar.h
+++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.h
@@ -44,6 +44,17 @@ class ScrollableArea;
class ScrollbarTheme;
class WebGestureEvent;
+enum ScrollbarUseUMA {
+ IgnorePart = 0,
+ VerticalScrollbarButton,
+ VerticalScrollbarThumb,
+ VerticalScrollbarTrack,
+ HorizontalScrollbarButton,
+ HorizontalScrollbarThumb,
+ HorizontalScrollbarTrack,
+ ScrollbarUseUMAMax
+};
+
class PLATFORM_EXPORT Scrollbar : public Widget,
public ScrollbarThemeClient,
public DisplayItemClient {
@@ -252,6 +263,8 @@ class PLATFORM_EXPORT Scrollbar : public Widget,
float scrollableAreaTargetPos() const;
bool thumbWillBeUnderMouse() const;
+ void sendScrollbarUseUMA(ScrollbarPart);
+
int m_themeScrollbarThickness;
bool m_trackNeedsRepaint;
bool m_thumbNeedsRepaint;

Powered by Google App Engine
This is Rietveld 408576698