Chromium Code Reviews| 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_; |