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

Unified Diff: content/renderer/webscrollbarbehavior_impl_gtkoraura.h

Issue 175903002: Re-add snap-back behavior (Chrome side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 10 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: content/renderer/webscrollbarbehavior_impl_gtkoraura.h
===================================================================
--- content/renderer/webscrollbarbehavior_impl_gtkoraura.h (revision 0)
+++ content/renderer/webscrollbarbehavior_impl_gtkoraura.h (working copy)
@@ -0,0 +1,25 @@
+// 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_CHILD_WEBSCROLLBARBEHAVIOR_IMPL_GTKORAURA_H_
+#define CONTENT_CHILD_WEBSCROLLBARBEHAVIOR_IMPL_GTKORAURA_H_
+
+#include "third_party/WebKit/public/platform/WebScrollbarBehavior.h"
+
+namespace content {
+
+class WebScrollbarBehaviorImpl : public blink::WebScrollbarBehavior {
+ public:
+ virtual bool shouldCenterOnThumb(
+ blink::WebScrollbarBehavior::Button mouseButton,
+ bool shiftKeyPressed,
+ bool altKeyPressed);
+ virtual bool shouldSnapBackToDragOrigin(const blink::WebPoint& eventPoint,
+ const blink::WebRect& scrollbarRect,
+ bool isHorizontal);
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_WEBSCROLLBARBEHAVIOR_IMPL_GTKORAURA_H_
Property changes on: content/renderer/webscrollbarbehavior_impl_gtkoraura.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property

Powered by Google App Engine
This is Rietveld 408576698