summaryrefslogtreecommitdiffstats
path: root/chromium/content/renderer/webscrollbarbehavior_impl_gtkoraura.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/renderer/webscrollbarbehavior_impl_gtkoraura.h')
-rw-r--r--chromium/content/renderer/webscrollbarbehavior_impl_gtkoraura.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/chromium/content/renderer/webscrollbarbehavior_impl_gtkoraura.h b/chromium/content/renderer/webscrollbarbehavior_impl_gtkoraura.h
new file mode 100644
index 00000000000..7d681d37250
--- /dev/null
+++ b/chromium/content/renderer/webscrollbarbehavior_impl_gtkoraura.h
@@ -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_