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

Side by Side Diff: ui/views/controls/scroll_view.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
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_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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void OnMouseExited(const ui::MouseEvent& event) override; 98 void OnMouseExited(const ui::MouseEvent& event) override;
99 void OnScrollEvent(ui::ScrollEvent* event) override; 99 void OnScrollEvent(ui::ScrollEvent* event) override;
100 void OnGestureEvent(ui::GestureEvent* event) override; 100 void OnGestureEvent(ui::GestureEvent* event) override;
101 const char* GetClassName() const override; 101 const char* GetClassName() const override;
102 102
103 // ScrollBarController overrides: 103 // ScrollBarController overrides:
104 void ScrollToPosition(ScrollBar* source, int position) override; 104 void ScrollToPosition(ScrollBar* source, int position) override;
105 int GetScrollIncrement(ScrollBar* source, 105 int GetScrollIncrement(ScrollBar* source,
106 bool is_page, 106 bool is_page,
107 bool is_positive) override; 107 bool is_positive) override;
108 void OnScrollEventFromScrollBar(ui::ScrollEvent* event) override;
108 109
109 private: 110 private:
110 friend class test::ScrollViewTestApi; 111 friend class test::ScrollViewTestApi;
111 112
112 class Viewport; 113 class Viewport;
113 114
114 // Used internally by SetHeader() and SetContents() to reset the view. Sets 115 // Used internally by SetHeader() and SetContents() to reset the view. Sets
115 // |member| to |new_view|. If |new_view| is non-null it is added to |parent|. 116 // |member| to |new_view|. If |new_view| is non-null it is added to |parent|.
116 void SetHeaderOrContents(View* parent, View* new_view, View** member); 117 void SetHeaderOrContents(View* parent, View* new_view, View** member);
117 118
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 private: 251 private:
251 int top_margin_; 252 int top_margin_;
252 int row_height_; 253 int row_height_;
253 254
254 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper); 255 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper);
255 }; 256 };
256 257
257 } // namespace views 258 } // namespace views
258 259
259 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ 260 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_
OLDNEW
« no previous file with comments | « ui/events/blink/input_scroll_elasticity_controller_unittest.cc ('k') | ui/views/controls/scroll_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698