| 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_SCROLL_VIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ |
| 6 #define UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // Customize the scrollbar design. ScrollView takes the ownership of the | 64 // Customize the scrollbar design. ScrollView takes the ownership of the |
| 65 // specified ScrollBar. |horiz_sb| and |vert_sb| cannot be NULL. | 65 // specified ScrollBar. |horiz_sb| and |vert_sb| cannot be NULL. |
| 66 void SetHorizontalScrollBar(ScrollBar* horiz_sb); | 66 void SetHorizontalScrollBar(ScrollBar* horiz_sb); |
| 67 void SetVerticalScrollBar(ScrollBar* vert_sb); | 67 void SetVerticalScrollBar(ScrollBar* vert_sb); |
| 68 | 68 |
| 69 // View overrides: | 69 // View overrides: |
| 70 virtual void Layout() OVERRIDE; | 70 virtual void Layout() OVERRIDE; |
| 71 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 71 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 72 virtual bool OnMouseWheel(const ui::MouseWheelEvent& e) OVERRIDE; | 72 virtual bool OnMouseWheel(const ui::MouseWheelEvent& e) OVERRIDE; |
| 73 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
| 74 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
| 73 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 75 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 74 virtual const char* GetClassName() const OVERRIDE; | 76 virtual const char* GetClassName() const OVERRIDE; |
| 75 | 77 |
| 76 // ScrollBarController overrides: | 78 // ScrollBarController overrides: |
| 77 virtual void ScrollToPosition(ScrollBar* source, int position) OVERRIDE; | 79 virtual void ScrollToPosition(ScrollBar* source, int position) OVERRIDE; |
| 78 virtual int GetScrollIncrement(ScrollBar* source, | 80 virtual int GetScrollIncrement(ScrollBar* source, |
| 79 bool is_page, | 81 bool is_page, |
| 80 bool is_positive) OVERRIDE; | 82 bool is_positive) OVERRIDE; |
| 81 | 83 |
| 82 private: | 84 private: |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 private: | 200 private: |
| 199 int top_margin_; | 201 int top_margin_; |
| 200 int row_height_; | 202 int row_height_; |
| 201 | 203 |
| 202 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper); | 204 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper); |
| 203 }; | 205 }; |
| 204 | 206 |
| 205 } // namespace views | 207 } // namespace views |
| 206 | 208 |
| 207 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ | 209 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ |
| OLD | NEW |