| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ |
| 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ | 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/views/animation/scroll_animator.h" | 10 #include "ui/views/animation/scroll_animator.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // View overrides: | 70 // View overrides: |
| 71 gfx::Size GetPreferredSize() const override = 0; | 71 gfx::Size GetPreferredSize() const override = 0; |
| 72 void Layout() override = 0; | 72 void Layout() override = 0; |
| 73 bool OnMousePressed(const ui::MouseEvent& event) override; | 73 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 74 void OnMouseReleased(const ui::MouseEvent& event) override; | 74 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 75 void OnMouseCaptureLost() override; | 75 void OnMouseCaptureLost() override; |
| 76 void OnMouseEntered(const ui::MouseEvent& event) override; | 76 void OnMouseEntered(const ui::MouseEvent& event) override; |
| 77 void OnMouseExited(const ui::MouseEvent& event) override; | 77 void OnMouseExited(const ui::MouseEvent& event) override; |
| 78 bool OnKeyPressed(const ui::KeyEvent& event) override; | 78 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 79 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; | 79 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; |
| 80 void OnScrollEvent(ui::ScrollEvent* event) override; |
| 80 | 81 |
| 81 // ui::EventHandler overrides: | 82 // ui::EventHandler overrides: |
| 82 void OnGestureEvent(ui::GestureEvent* event) override; | 83 void OnGestureEvent(ui::GestureEvent* event) override; |
| 83 | 84 |
| 84 // ScrollBar overrides: | 85 // ScrollBar overrides: |
| 85 void Update(int viewport_size, | 86 void Update(int viewport_size, |
| 86 int content_size, | 87 int content_size, |
| 87 int contents_scroll_offset) override; | 88 int contents_scroll_offset) override; |
| 88 int GetLayoutSize() const override = 0; | 89 int GetLayoutSize() const override = 0; |
| 89 int GetPosition() const override; | 90 int GetPosition() const override; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // TODO(tdresser): This should be removed when raw pixel scrolling for views | 191 // TODO(tdresser): This should be removed when raw pixel scrolling for views |
| 191 // is enabled. See crbug.com/329354. | 192 // is enabled. See crbug.com/329354. |
| 192 gfx::Vector2dF roundoff_error_; | 193 gfx::Vector2dF roundoff_error_; |
| 193 | 194 |
| 194 DISALLOW_COPY_AND_ASSIGN(BaseScrollBar); | 195 DISALLOW_COPY_AND_ASSIGN(BaseScrollBar); |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 } // namespace views | 198 } // namespace views |
| 198 | 199 |
| 199 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ | 200 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ |
| OLD | NEW |