| Index: trunk/src/ui/views/controls/scroll_view.cc
|
| ===================================================================
|
| --- trunk/src/ui/views/controls/scroll_view.cc (revision 266071)
|
| +++ trunk/src/ui/views/controls/scroll_view.cc (working copy)
|
| @@ -20,16 +20,23 @@
|
| // Subclass of ScrollView that resets the border when the theme changes.
|
| class ScrollViewWithBorder : public views::ScrollView {
|
| public:
|
| - ScrollViewWithBorder() {}
|
| + ScrollViewWithBorder() {
|
| + SetThemeSpecificState();
|
| + }
|
|
|
| // View overrides;
|
| virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE {
|
| + SetThemeSpecificState();
|
| + }
|
| +
|
| + private:
|
| + void SetThemeSpecificState() {
|
| SetBorder(Border::CreateSolidBorder(
|
| 1,
|
| - theme->GetSystemColor(ui::NativeTheme::kColorId_UnfocusedBorderColor)));
|
| + GetNativeTheme()->GetSystemColor(
|
| + ui::NativeTheme::kColorId_UnfocusedBorderColor)));
|
| }
|
|
|
| - private:
|
| DISALLOW_COPY_AND_ASSIGN(ScrollViewWithBorder);
|
| };
|
|
|
|
|