summaryrefslogtreecommitdiffstats
path: root/content/renderer/webscrollbarbehavior_impl_gtkoraura.h
blob: 7d681d37250fe32f0a79b2eaf86ce87e07b7f2d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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_