Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: ui/views/controls/scrollbar/base_scroll_bar.h

Issue 2189583004: [not for review - epic CL] Adding Elastic+Momentum+Layered scrolling to views::ScrollView Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/controls/scroll_view.cc ('k') | ui/views/controls/scrollbar/base_scroll_bar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/views/controls/scroll_view.cc ('k') | ui/views/controls/scrollbar/base_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698