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

Side by Side Diff: ui/views/controls/scroll_view.h

Issue 2496643002: Implement Sebastien's overlay scrollbars for native UI (Views). (Closed)
Patch Set: fix test failure Created 4 years, 1 month 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 | « no previous file | ui/views/controls/scroll_view.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_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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/scroll_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698