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

Unified Diff: content/renderer/webscrollbarbehavior_impl_gtkoraura.h

Issue 2489083002: Revert of Disable scrollbar snapback on desktop Linux (Closed)
Patch Set: Created 4 years, 1 month 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: content/renderer/webscrollbarbehavior_impl_gtkoraura.h
diff --git a/content/renderer/webscrollbarbehavior_impl_gtkoraura.h b/content/renderer/webscrollbarbehavior_impl_gtkoraura.h
new file mode 100644
index 0000000000000000000000000000000000000000..dcfb20000fd179b4a02b828d476e858e0ca32f98
--- /dev/null
+++ b/content/renderer/webscrollbarbehavior_impl_gtkoraura.h
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_WEBSCROLLBARBEHAVIOR_IMPL_GTKORAURA_H_
+#define CONTENT_RENDERER_WEBSCROLLBARBEHAVIOR_IMPL_GTKORAURA_H_
+
+#include "third_party/WebKit/public/platform/WebScrollbarBehavior.h"
+
+namespace content {
+
+class WebScrollbarBehaviorImpl : public blink::WebScrollbarBehavior {
+ public:
+ bool shouldCenterOnThumb(blink::WebPointerProperties::Button mouseButton,
+ bool shiftKeyPressed,
+ bool altKeyPressed) override;
+ bool shouldSnapBackToDragOrigin(const blink::WebPoint& eventPoint,
+ const blink::WebRect& scrollbarRect,
+ bool isHorizontal) override;
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_WEBSCROLLBARBEHAVIOR_IMPL_GTKORAURA_H_
« no previous file with comments | « content/renderer/webscrollbarbehavior_impl_aura.cc ('k') | content/renderer/webscrollbarbehavior_impl_gtkoraura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698