Index: chrome/browser/chromeos/native_theme_chromeos.h |
diff --git a/chrome/browser/chromeos/native_theme_chromeos.h b/chrome/browser/chromeos/native_theme_chromeos.h |
index d501f682e0e0ed36913cb48c39352f0b3f5e30ae..2d3d889c16b122f3073114d866f721ae58203f6e 100644 |
--- a/chrome/browser/chromeos/native_theme_chromeos.h |
+++ b/chrome/browser/chromeos/native_theme_chromeos.h |
@@ -26,8 +26,61 @@ class NativeThemeChromeos : public gfx::NativeThemeLinux { |
const gfx::Rect& rect, Part direction, State state); |
virtual void PaintThumb(skia::PlatformCanvas* canvas, |
Part part, State state, const gfx::Rect& rect); |
+ |
+ // Draw the checkbox. |
+ virtual void PaintCheckbox(skia::PlatformCanvas* canvas, |
+ State state, const gfx::Rect& rect, |
+ const ButtonExtraParams& button); |
tony
2011/01/14 22:06:04
Can you add OVERRIDE to the end of these methods?
xiyuan
2011/01/18 21:30:49
Done. And moved the chromeos specific changes into
|
+ |
+ // Draw the radio. |
+ virtual void PaintRadio(skia::PlatformCanvas* canvas, |
+ State state, |
+ const gfx::Rect& rect, |
+ const ButtonExtraParams& button); |
+ |
+ // Draw the push button. |
+ virtual void PaintButton(skia::PlatformCanvas* canvas, |
+ State state, |
+ const gfx::Rect& rect, |
+ const ButtonExtraParams& button); |
+ |
+ // Draw the text field. |
+ virtual void PaintTextField(skia::PlatformCanvas* canvas, |
+ State state, |
+ const gfx::Rect& rect, |
+ const TextFieldExtraParams& text); |
+ |
+ // Draw the slider track. |
+ virtual void PaintSliderTrack(skia::PlatformCanvas* canvas, |
+ State state, |
+ const gfx::Rect& rect, |
+ const SliderExtraParams& slider); |
+ |
+ // Draw the slider thumb. |
+ virtual void PaintSliderThumb(skia::PlatformCanvas* canvas, |
+ State state, |
+ const gfx::Rect& rect, |
+ const SliderExtraParams& slider); |
+ |
+ // Draw the inner spin button. |
+ virtual void PaintInnerSpinButton(skia::PlatformCanvas* canvas, |
+ State state, |
+ const gfx::Rect& rect, |
+ const InnerSpinButtonExtraParams& spin_button); |
+ |
+ // Draw the progress bar. |
+ virtual void PaintProgressBar(skia::PlatformCanvas* canvas, |
+ State state, |
+ const gfx::Rect& rect, |
+ const ProgressBarExtraParams& progress_bar); |
+ |
SkBitmap* GetHorizontalBitmapNamed(int resource_id); |
+ // Paint a button like rounded rect with gradient background and stroke. |
+ void PaintButtonLike(skia::PlatformCanvas* canvas, |
+ State state, const gfx::Rect& rect, |
+ const ButtonExtraParams& button); |
+ |
// Cached images. The ResourceBundle caches all retrieved bitmaps and keeps |
// ownership of the pointers. |
typedef std::map<int, SkBitmap*> SkImageMap; |