| OLD | NEW | 
|   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_SCROLL_BAR_VIEWS_H_ |   5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_SCROLL_BAR_VIEWS_H_ | 
|   6 #define UI_VIEWS_CONTROLS_SCROLLBAR_SCROLL_BAR_VIEWS_H_ |   6 #define UI_VIEWS_CONTROLS_SCROLLBAR_SCROLL_BAR_VIEWS_H_ | 
|   7  |   7  | 
|   8 #include "base/compiler_specific.h" |   8 #include "base/compiler_specific.h" | 
|   9 #include "base/macros.h" |   9 #include "base/macros.h" | 
|  10 #include "ui/gfx/geometry/point.h" |  10 #include "ui/gfx/geometry/point.h" | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
|  32   static int GetVerticalScrollBarWidth(const ui::NativeTheme* theme); |  32   static int GetVerticalScrollBarWidth(const ui::NativeTheme* theme); | 
|  33  |  33  | 
|  34  protected: |  34  protected: | 
|  35   // View overrides: |  35   // View overrides: | 
|  36   void Layout() override; |  36   void Layout() override; | 
|  37   void OnPaint(gfx::Canvas* canvas) override; |  37   void OnPaint(gfx::Canvas* canvas) override; | 
|  38   gfx::Size GetPreferredSize() const override; |  38   gfx::Size GetPreferredSize() const override; | 
|  39   const char* GetClassName() const override; |  39   const char* GetClassName() const override; | 
|  40  |  40  | 
|  41   // ScrollBar overrides: |  41   // ScrollBar overrides: | 
|  42   int GetLayoutSize() const override; |  42   int GetThickness() const override; | 
|  43  |  43  | 
|  44   // BaseButton::ButtonListener overrides: |  44   // BaseButton::ButtonListener overrides: | 
|  45   void ButtonPressed(Button* sender, const ui::Event& event) override; |  45   void ButtonPressed(Button* sender, const ui::Event& event) override; | 
|  46  |  46  | 
|  47   // Returns the area for the track. This is the area of the scrollbar minus |  47   // Returns the area for the track. This is the area of the scrollbar minus | 
|  48   // the size of the arrow buttons. |  48   // the size of the arrow buttons. | 
|  49   gfx::Rect GetTrackBounds() const override; |  49   gfx::Rect GetTrackBounds() const override; | 
|  50  |  50  | 
|  51  private: |  51  private: | 
|  52   static int GetHorizontalScrollBarHeight(const ui::NativeTheme* theme); |  52   static int GetHorizontalScrollBarHeight(const ui::NativeTheme* theme); | 
|  53  |  53  | 
|  54   // The scroll bar buttons (Up/Down, Left/Right). |  54   // The scroll bar buttons (Up/Down, Left/Right). | 
|  55   Button* prev_button_; |  55   Button* prev_button_; | 
|  56   Button* next_button_; |  56   Button* next_button_; | 
|  57  |  57  | 
|  58   ui::NativeTheme::ExtraParams params_; |  58   ui::NativeTheme::ExtraParams params_; | 
|  59   ui::NativeTheme::Part part_; |  59   ui::NativeTheme::Part part_; | 
|  60   ui::NativeTheme::State state_; |  60   ui::NativeTheme::State state_; | 
|  61  |  61  | 
|  62   DISALLOW_COPY_AND_ASSIGN(ScrollBarViews); |  62   DISALLOW_COPY_AND_ASSIGN(ScrollBarViews); | 
|  63 }; |  63 }; | 
|  64  |  64  | 
|  65 }  // namespace views |  65 }  // namespace views | 
|  66  |  66  | 
|  67 #endif  // UI_VIEWS_CONTROLS_SCROLLBAR_SCROLL_BAR_VIEWS_H_ |  67 #endif  // UI_VIEWS_CONTROLS_SCROLLBAR_SCROLL_BAR_VIEWS_H_ | 
| OLD | NEW |