Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: content/renderer/webscrollbarbehavior_impl_mac.mm

Issue 175903002: Re-add snap-back behavior (Chrome side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/webscrollbarbehavior_impl_mac.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
OLDNEW
(Empty)
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
5 #include "content/renderer/webscrollbarbehavior_impl_mac.h"
6
7 namespace content {
8
9 WebScrollbarBehaviorImpl::WebScrollbarBehaviorImpl()
10 : jump_on_track_click_(false) {
11 }
12
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);
19 }
20
21 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/webscrollbarbehavior_impl_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698