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

Side by Side Diff: ui/views/controls/scrollbar/scroll_bar.cc

Issue 2454323002: MacViews: Reveal scrollbars when resting on the trackpad. (Closed)
Patch Set: fix compile Created 4 years, 1 month 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/views/controls/scrollbar/scroll_bar.h" 5 #include "ui/views/controls/scrollbar/scroll_bar.h"
6 6
7 #include "ui/accessibility/ax_node_data.h" 7 #include "ui/accessibility/ax_node_data.h"
8 8
9 namespace views { 9 namespace views {
10 10
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 int ScrollBar::GetMinPosition() const { 30 int ScrollBar::GetMinPosition() const {
31 return 0; 31 return 0;
32 } 32 }
33 33
34 int ScrollBar::GetContentOverlapSize() const { 34 int ScrollBar::GetContentOverlapSize() const {
35 return 0; 35 return 0;
36 } 36 }
37 37
38 void ScrollBar::OnMouseEnteredScrollView(const ui::MouseEvent& event) { 38 void ScrollBar::OnMouseEnteredScrollView(const ui::MouseEvent& event) {}
39 } 39 void ScrollBar::OnMouseExitedScrollView(const ui::MouseEvent& event) {}
40 40 void ScrollBar::ObserveScrollEvent(const ui::ScrollEvent& event) {}
41 void ScrollBar::OnMouseExitedScrollView(const ui::MouseEvent& event) {
42 }
43 41
44 ScrollBar::ScrollBar(bool is_horiz) 42 ScrollBar::ScrollBar(bool is_horiz)
45 : is_horiz_(is_horiz), 43 : is_horiz_(is_horiz),
46 controller_(NULL), 44 controller_(NULL),
47 max_pos_(0) { 45 max_pos_(0) {
48 } 46 }
49 47
50 } // namespace views 48 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698