| // 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 WebScrollbarBehavior_h |
| #define WebScrollbarBehavior_h |
| |
| #include "WebPointerProperties.h" |
| |
| namespace blink { |
| |
| struct WebPoint; |
| struct WebRect; |
| |
| class WebScrollbarBehavior { |
| public: |
| virtual ~WebScrollbarBehavior() {} |
| virtual bool ShouldCenterOnThumb(WebPointerProperties::Button, |
| bool shift_key_pressed, |
| bool alt_key_pressed) { |
| return false; |
| } |
| virtual bool ShouldSnapBackToDragOrigin(const WebPoint& event_point, |
| const WebRect& scrollbar_rect, |
| bool is_horizontal) { |
| return false; |
| } |
| }; |
| |
| } // namespace blink |
| |
| #endif |