| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // value is used. | 72 // value is used. |
| 73 virtual int GetScrollIncrement(ScrollBar* source, | 73 virtual int GetScrollIncrement(ScrollBar* source, |
| 74 bool is_page, | 74 bool is_page, |
| 75 bool is_positive) OVERRIDE; | 75 bool is_positive) OVERRIDE; |
| 76 | 76 |
| 77 // Keyboard events | 77 // Keyboard events |
| 78 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 78 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 79 virtual bool OnMouseWheel(const ui::MouseWheelEvent& e) OVERRIDE; | 79 virtual bool OnMouseWheel(const ui::MouseWheelEvent& e) OVERRIDE; |
| 80 | 80 |
| 81 // Overridden from ui::EventHandler: | 81 // Overridden from ui::EventHandler: |
| 82 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 82 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 83 | 83 |
| 84 virtual std::string GetClassName() const OVERRIDE; | 84 virtual std::string GetClassName() const OVERRIDE; |
| 85 | 85 |
| 86 // Retrieves the vertical scrollbar width. | 86 // Retrieves the vertical scrollbar width. |
| 87 int GetScrollBarWidth() const; | 87 int GetScrollBarWidth() const; |
| 88 | 88 |
| 89 // Retrieves the horizontal scrollbar height. | 89 // Retrieves the horizontal scrollbar height. |
| 90 int GetScrollBarHeight() const; | 90 int GetScrollBarHeight() const; |
| 91 | 91 |
| 92 // Computes the visibility of both scrollbars, taking in account the view port | 92 // Computes the visibility of both scrollbars, taking in account the view port |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 private: | 203 private: |
| 204 int top_margin_; | 204 int top_margin_; |
| 205 int row_height_; | 205 int row_height_; |
| 206 | 206 |
| 207 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper); | 207 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper); |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 } // namespace views | 210 } // namespace views |
| 211 | 211 |
| 212 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ | 212 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ |
| OLD | NEW |