[email protected] | 33b0299 | 2014-03-01 01:06:29 | [diff] [blame] | 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. |
| 4 | |
tfarina | bccc34c7 | 2015-02-27 21:32:15 | [diff] [blame] | 5 | #ifndef CONTENT_RENDERER_WEBSCROLLBARBEHAVIOR_IMPL_MAC_H_ |
| 6 | #define CONTENT_RENDERER_WEBSCROLLBARBEHAVIOR_IMPL_MAC_H_ |
[email protected] | 33b0299 | 2014-03-01 01:06:29 | [diff] [blame] | 7 | |
| 8 | #include "third_party/WebKit/public/platform/WebScrollbarBehavior.h" |
| 9 | |
| 10 | namespace content { |
| 11 | |
| 12 | class WebScrollbarBehaviorImpl : public blink::WebScrollbarBehavior { |
| 13 | public: |
| 14 | WebScrollbarBehaviorImpl(); |
| 15 | |
avi | 5c77d21 | 2015-09-25 20:08:25 | [diff] [blame] | 16 | bool shouldCenterOnThumb(blink::WebScrollbarBehavior::Button mouseButton, |
| 17 | bool shiftKeyPressed, |
| 18 | bool altKeyPressed) override; |
[email protected] | 33b0299 | 2014-03-01 01:06:29 | [diff] [blame] | 19 | |
| 20 | void set_jump_on_track_click(bool jump_on_track_click) { |
| 21 | jump_on_track_click_ = jump_on_track_click; |
| 22 | } |
| 23 | |
| 24 | private: |
| 25 | // The current value of AppleScrollerPagingBehavior from NSUserDefaults. |
| 26 | bool jump_on_track_click_; |
| 27 | }; |
| 28 | |
| 29 | } // namespace content |
| 30 | |
tfarina | bccc34c7 | 2015-02-27 21:32:15 | [diff] [blame] | 31 | #endif // CONTENT_RENDERER_WEBSCROLLBARBEHAVIOR_IMPL_MAC_H_ |