After Aura copied the original Linux scrollbar behvaior, it never got updated
[chromium-blink-merge.git] / content / renderer / webscrollbarbehavior_impl_mac.mm
blob9f83f8a3de325f7fa9e04001d264f47a893c1f10
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/renderer/webscrollbarbehavior_impl_mac.h"
7 namespace content {
9 WebScrollbarBehaviorImpl::WebScrollbarBehaviorImpl()
10     : jump_on_track_click_(false) {
13 bool WebScrollbarBehaviorImpl::shouldCenterOnThumb(
14       blink::WebScrollbarBehavior::Button mouseButton,
15       bool shiftKeyPressed,
16       bool altKeyPressed) {
17   return (mouseButton == blink::WebScrollbarBehavior::ButtonLeft) &&
18       (jump_on_track_click_ != altKeyPressed);
21 }  // namespace content