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

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

Issue 2631113003: Add metric to know how user use scrollbar (Closed)
Patch Set: 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..ab7a56a5608f8d64024d4430dd1a4bedacf30326 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 ScrollbarPressedPart {
bokan 2017/01/16 21:25:33 This should reflect the fact that it's used only f
+ IgnorePart = 0,
+ VerticalScrollbarButton,
+ HorizontalScrollbarButton,
+ VerticalScrollbarThumb,
bokan 2017/01/16 21:25:33 Nit: I think it be better to group all the horizon
+ HorizontalScrollbarThumb,
+ VerticalScrollbarTrack,
+ HorizontalScrollbarTrack,
+ ScrollbarPressedPartMax
+};
+
class PLATFORM_EXPORT Scrollbar : public Widget,
public ScrollbarThemeClient,
public DisplayItemClient {

Powered by Google App Engine
This is Rietveld 408576698