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

Unified Diff: ui/views/controls/scroll_view.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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/scroll_view.h
diff --git a/ui/views/controls/scroll_view.h b/ui/views/controls/scroll_view.h
index da384801d9682208c19ae558986b06fdb3bbece9..798ea002aaa54f6571af1665ea84d733c8acaf69 100644
--- a/ui/views/controls/scroll_view.h
+++ b/ui/views/controls/scroll_view.h
@@ -10,6 +10,7 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
#include "ui/views/controls/scrollbar/scroll_bar.h"
namespace views {
@@ -68,7 +69,7 @@ class VIEWS_EXPORT ScrollView : public View, public ScrollBarController {
int GetScrollBarHeight() const;
// Returns the horizontal/vertical scrollbar. This may return NULL.
- const ScrollBar* horizontal_scroll_bar() const { return horiz_sb_; }
+ const ScrollBar* horizontal_scroll_bar() const { return horiz_sb_.get(); }
const ScrollBar* vertical_scroll_bar() const { return vert_sb_; }
// Customize the scrollbar design. ScrollView takes the ownership of the
@@ -132,7 +133,7 @@ class VIEWS_EXPORT ScrollView : public View, public ScrollBarController {
View* header_viewport_;
// Horizontal scrollbar.
- ScrollBar* horiz_sb_;
+ scoped_ptr<ScrollBar> horiz_sb_;
tapted 2016/02/09 23:51:48 I don't immediately grok this bit (I may just need
spqchan 2016/02/10 00:35:16 Sorry, this wasn't supposed to be here. This is ac
// Vertical scrollbar.
ScrollBar* vert_sb_;

Powered by Google App Engine
This is Rietveld 408576698