| 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_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
| 6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 const gfx::Rect& rect, | 120 const gfx::Rect& rect, |
| 121 const InnerSpinButtonExtraParams& spin_button) const; | 121 const InnerSpinButtonExtraParams& spin_button) const; |
| 122 | 122 |
| 123 virtual void PaintProgressBar( | 123 virtual void PaintProgressBar( |
| 124 cc::PaintCanvas* canvas, | 124 cc::PaintCanvas* canvas, |
| 125 State state, | 125 State state, |
| 126 const gfx::Rect& rect, | 126 const gfx::Rect& rect, |
| 127 const ProgressBarExtraParams& progress_bar) const; | 127 const ProgressBarExtraParams& progress_bar) const; |
| 128 | 128 |
| 129 virtual void PaintFrameTopArea( | 129 virtual void PaintFrameTopArea( |
| 130 SkCanvas* canvas, | 130 cc::PaintCanvas* canvas, |
| 131 State state, | 131 State state, |
| 132 const gfx::Rect& rect, | 132 const gfx::Rect& rect, |
| 133 const FrameTopAreaExtraParams& frame_top_area) const; | 133 const FrameTopAreaExtraParams& frame_top_area) const; |
| 134 | 134 |
| 135 // Shrinks checkbox/radio button rect, if necessary, to make room for padding | 135 // Shrinks checkbox/radio button rect, if necessary, to make room for padding |
| 136 // and drop shadow. | 136 // and drop shadow. |
| 137 // TODO(mohsen): This is needed because checkboxes/radio buttons on Android | 137 // TODO(mohsen): This is needed because checkboxes/radio buttons on Android |
| 138 // have different padding from those on desktop Chrome. Get rid of this when | 138 // have different padding from those on desktop Chrome. Get rid of this when |
| 139 // crbug.com/530746 is resolved. | 139 // crbug.com/530746 is resolved. |
| 140 virtual void AdjustCheckboxRadioRectForPadding(SkRect* rect) const; | 140 virtual void AdjustCheckboxRadioRectForPadding(SkRect* rect) const; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 // The length of the arrow buttons, 0 means no buttons are drawn. | 193 // The length of the arrow buttons, 0 means no buttons are drawn. |
| 194 int scrollbar_button_length_; | 194 int scrollbar_button_length_; |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); | 196 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace ui | 199 } // namespace ui |
| 200 | 200 |
| 201 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 201 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
| OLD | NEW |