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

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

Issue 1671313002: MacViews: Overlay Scrollbars with Show/Hide Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 10 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_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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Scroll the contents by the specified offset (contents coordinates). 59 // Scroll the contents by the specified offset (contents coordinates).
60 bool ScrollByContentsOffset(int contents_offset); 60 bool ScrollByContentsOffset(int contents_offset);
61 61
62 // Called when the thumb state has been changed from |old_state| to 62 // Called when the thumb state has been changed from |old_state| to
63 // |new_state|. 63 // |new_state|.
64 void OnThumbStateChanged(CustomButton::ButtonState old_state, 64 void OnThumbStateChanged(CustomButton::ButtonState old_state,
65 CustomButton::ButtonState new_state); 65 CustomButton::ButtonState new_state);
66 66
67 // View overrides: 67 // View overrides:
68 gfx::Size GetPreferredSize() const override = 0; 68 gfx::Size GetPreferredSize() const override = 0;
69 void Layout() override = 0; 69 void Layout() override;
70 bool OnMousePressed(const ui::MouseEvent& event) override; 70 bool OnMousePressed(const ui::MouseEvent& event) override;
71 void OnMouseReleased(const ui::MouseEvent& event) override; 71 void OnMouseReleased(const ui::MouseEvent& event) override;
72 void OnMouseCaptureLost() override; 72 void OnMouseCaptureLost() override;
73 void OnMouseEntered(const ui::MouseEvent& event) override; 73 void OnMouseEntered(const ui::MouseEvent& event) override;
74 void OnMouseExited(const ui::MouseEvent& event) override; 74 void OnMouseExited(const ui::MouseEvent& event) override;
75 bool OnKeyPressed(const ui::KeyEvent& event) override; 75 bool OnKeyPressed(const ui::KeyEvent& event) override;
76 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; 76 bool OnMouseWheel(const ui::MouseWheelEvent& event) override;
77 77
78 // ui::EventHandler overrides: 78 // ui::EventHandler overrides:
79 void OnGestureEvent(ui::GestureEvent* event) override; 79 void OnGestureEvent(ui::GestureEvent* event) override;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // TODO(tdresser): This should be removed when raw pixel scrolling for views 184 // TODO(tdresser): This should be removed when raw pixel scrolling for views
185 // is enabled. See crbug.com/329354. 185 // is enabled. See crbug.com/329354.
186 gfx::Vector2dF roundoff_error_; 186 gfx::Vector2dF roundoff_error_;
187 187
188 DISALLOW_COPY_AND_ASSIGN(BaseScrollBar); 188 DISALLOW_COPY_AND_ASSIGN(BaseScrollBar);
189 }; 189 };
190 190
191 } // namespace views 191 } // namespace views
192 192
193 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ 193 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698