| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Sets whether this ScrollView has a focus ring or not. | 91 // Sets whether this ScrollView has a focus ring or not. |
| 92 void SetHasFocusRing(bool has_focus_ring); | 92 void SetHasFocusRing(bool has_focus_ring); |
| 93 | 93 |
| 94 // View overrides: | 94 // View overrides: |
| 95 gfx::Size GetPreferredSize() const override; | 95 gfx::Size GetPreferredSize() const override; |
| 96 int GetHeightForWidth(int width) const override; | 96 int GetHeightForWidth(int width) const override; |
| 97 void Layout() override; | 97 void Layout() override; |
| 98 bool OnKeyPressed(const ui::KeyEvent& event) override; | 98 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 99 bool OnMouseWheel(const ui::MouseWheelEvent& e) override; | 99 bool OnMouseWheel(const ui::MouseWheelEvent& e) override; |
| 100 void OnMouseEntered(const ui::MouseEvent& event) override; | |
| 101 void OnMouseExited(const ui::MouseEvent& event) override; | |
| 102 void OnScrollEvent(ui::ScrollEvent* event) override; | 100 void OnScrollEvent(ui::ScrollEvent* event) override; |
| 103 void OnGestureEvent(ui::GestureEvent* event) override; | 101 void OnGestureEvent(ui::GestureEvent* event) override; |
| 104 const char* GetClassName() const override; | 102 const char* GetClassName() const override; |
| 105 | 103 |
| 106 // ScrollBarController overrides: | 104 // ScrollBarController overrides: |
| 107 void ScrollToPosition(ScrollBar* source, int position) override; | 105 void ScrollToPosition(ScrollBar* source, int position) override; |
| 108 int GetScrollIncrement(ScrollBar* source, | 106 int GetScrollIncrement(ScrollBar* source, |
| 109 bool is_page, | 107 bool is_page, |
| 110 bool is_positive) override; | 108 bool is_positive) override; |
| 111 | 109 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 private: | 258 private: |
| 261 int top_margin_; | 259 int top_margin_; |
| 262 int row_height_; | 260 int row_height_; |
| 263 | 261 |
| 264 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper); | 262 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper); |
| 265 }; | 263 }; |
| 266 | 264 |
| 267 } // namespace views | 265 } // namespace views |
| 268 | 266 |
| 269 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ | 267 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ |
| OLD | NEW |