| OLD | NEW |
| 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/base/accessibility/accessible_view_state.h" | 7 #include "ui/base/accessibility/accessible_view_state.h" |
| 8 | 8 |
| 9 namespace views { | 9 namespace views { |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 int ScrollBar::GetMaxPosition() const { | 26 int ScrollBar::GetMaxPosition() const { |
| 27 return max_pos_; | 27 return max_pos_; |
| 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::GetVisibleSize() const { |
| 35 return GetLayoutSize(); |
| 36 } |
| 37 |
| 38 void ScrollBar::OnMouseEnteredScrollView(const ui::MouseEvent& event) { |
| 39 } |
| 40 |
| 41 void ScrollBar::OnMouseExitedScrollView(const ui::MouseEvent& event) { |
| 42 } |
| 43 |
| 34 ScrollBar::ScrollBar(bool is_horiz) | 44 ScrollBar::ScrollBar(bool is_horiz) |
| 35 : is_horiz_(is_horiz), | 45 : is_horiz_(is_horiz), |
| 36 controller_(NULL), | 46 controller_(NULL), |
| 37 max_pos_(0) { | 47 max_pos_(0) { |
| 38 } | 48 } |
| 39 | 49 |
| 40 } // namespace views | 50 } // namespace views |
| OLD | NEW |