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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 State state, | 127 State state, |
128 const gfx::Rect& rect, | 128 const gfx::Rect& rect, |
129 const InnerSpinButtonExtraParams& spin_button) const; | 129 const InnerSpinButtonExtraParams& spin_button) const; |
130 | 130 |
131 virtual void PaintProgressBar( | 131 virtual void PaintProgressBar( |
132 SkCanvas* canvas, | 132 SkCanvas* canvas, |
133 State state, | 133 State state, |
134 const gfx::Rect& rect, | 134 const gfx::Rect& rect, |
135 const ProgressBarExtraParams& progress_bar) const; | 135 const ProgressBarExtraParams& progress_bar) const; |
136 | 136 |
137 virtual void PaintScrollbarThumbStateTransition( | 137 virtual void PaintScrollbarThumbStateTransition(SkCanvas* canvas, |
138 SkCanvas* canvas, | 138 Part part, |
139 State startState, | 139 State startState, |
140 State endState, | 140 State endState, |
141 double progress, | 141 double progress, |
142 const gfx::Rect& rect) const {} | 142 const gfx::Rect& rect) const { |
| 143 } |
143 | 144 |
144 // Shrinks checkbox/radio button rect, if necessary, to make room for padding | 145 // Shrinks checkbox/radio button rect, if necessary, to make room for padding |
145 // and drop shadow. | 146 // and drop shadow. |
146 // TODO(mohsen): This is needed because checkboxes/radio buttons on Android | 147 // TODO(mohsen): This is needed because checkboxes/radio buttons on Android |
147 // have different padding from those on desktop Chrome. Get rid of this when | 148 // have different padding from those on desktop Chrome. Get rid of this when |
148 // crbug.com/530746 is resolved. | 149 // crbug.com/530746 is resolved. |
149 virtual void AdjustCheckboxRadioRectForPadding(SkRect* rect) const; | 150 virtual void AdjustCheckboxRadioRectForPadding(SkRect* rect) const; |
150 | 151 |
151 void set_scrollbar_button_length(unsigned int length) { | 152 void set_scrollbar_button_length(unsigned int length) { |
152 scrollbar_button_length_ = length; | 153 scrollbar_button_length_ = length; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 208 |
208 // The length of the arrow buttons, 0 means no buttons are drawn. | 209 // The length of the arrow buttons, 0 means no buttons are drawn. |
209 unsigned int scrollbar_button_length_; | 210 unsigned int scrollbar_button_length_; |
210 | 211 |
211 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); | 212 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); |
212 }; | 213 }; |
213 | 214 |
214 } // namespace ui | 215 } // namespace ui |
215 | 216 |
216 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 217 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
OLD | NEW |