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

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

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances Created 4 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/webscrollbarbehavior_impl_mac.h" 5 #include "content/renderer/webscrollbarbehavior_impl_mac.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 WebScrollbarBehaviorImpl::WebScrollbarBehaviorImpl() 9 WebScrollbarBehaviorImpl::WebScrollbarBehaviorImpl()
10 : jump_on_track_click_(false) { 10 : jump_on_track_click_(false) {
11 } 11 }
12 12
13 bool WebScrollbarBehaviorImpl::shouldCenterOnThumb( 13 bool WebScrollbarBehaviorImpl::shouldCenterOnThumb(
14 blink::WebScrollbarBehavior::Button mouseButton, 14 blink::WebPointerProperties::Button mouseButton,
15 bool shiftKeyPressed, 15 bool shiftKeyPressed,
16 bool altKeyPressed) { 16 bool altKeyPressed) {
17 return (mouseButton == blink::WebScrollbarBehavior::ButtonLeft) && 17 return (mouseButton == blink::WebPointerProperties::Button::Left) &&
18 (jump_on_track_click_ != altKeyPressed); 18 (jump_on_track_click_ != altKeyPressed);
19 } 19 }
20 20
21 } // namespace content 21 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/webscrollbarbehavior_impl_mac.h ('k') | mojo/converters/blink/blink_input_events_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698