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_GFX_NATIVE_THEME_CHROMEOS_H_ | 5 #ifndef UI_GFX_NATIVE_THEME_CHROMEOS_H_ |
6 #define UI_GFX_NATIVE_THEME_CHROMEOS_H_ | 6 #define UI_GFX_NATIVE_THEME_CHROMEOS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/gfx/native_theme_base.h" | 10 #include "ui/gfx/native_theme_base.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 State state, | 71 State state, |
72 const gfx::Rect& rect, | 72 const gfx::Rect& rect, |
73 const SliderExtraParams& slider) const OVERRIDE; | 73 const SliderExtraParams& slider) const OVERRIDE; |
74 | 74 |
75 // Draw the inner spin button. | 75 // Draw the inner spin button. |
76 virtual void PaintInnerSpinButton(SkCanvas* canvas, | 76 virtual void PaintInnerSpinButton(SkCanvas* canvas, |
77 State state, | 77 State state, |
78 const gfx::Rect& rect, | 78 const gfx::Rect& rect, |
79 const InnerSpinButtonExtraParams& spin_button) const OVERRIDE; | 79 const InnerSpinButtonExtraParams& spin_button) const OVERRIDE; |
80 | 80 |
81 virtual void PaintMenuPopupBackground( | 81 virtual void PaintMenuPopupBackground(SkCanvas* canvas, |
82 SkCanvas* canvas, | 82 const gfx::Size& size) const OVERRIDE; |
83 State state, | |
84 const gfx::Rect& rect, | |
85 const MenuListExtraParams& menu_list) const OVERRIDE; | |
86 | 83 |
87 // Draw the progress bar. | 84 // Draw the progress bar. |
88 virtual void PaintProgressBar(SkCanvas* canvas, | 85 virtual void PaintProgressBar(SkCanvas* canvas, |
89 State state, | 86 State state, |
90 const gfx::Rect& rect, | 87 const gfx::Rect& rect, |
91 const ProgressBarExtraParams& progress_bar) const OVERRIDE; | 88 const ProgressBarExtraParams& progress_bar) const OVERRIDE; |
92 | 89 |
93 SkBitmap* GetHorizontalBitmapNamed(int resource_id) const; | 90 SkBitmap* GetHorizontalBitmapNamed(int resource_id) const; |
94 | 91 |
95 // Paint a button like rounded rect with gradient background and stroke. | 92 // Paint a button like rounded rect with gradient background and stroke. |
96 void PaintButtonLike(SkCanvas* canvas, | 93 void PaintButtonLike(SkCanvas* canvas, |
97 State state, const gfx::Rect& rect, bool stroke_border) const; | 94 State state, const gfx::Rect& rect, bool stroke_border) const; |
98 | 95 |
99 // Cached images. Resource loader caches all retrieved bitmaps and keeps | 96 // Cached images. Resource loader caches all retrieved bitmaps and keeps |
100 // ownership of the pointers. | 97 // ownership of the pointers. |
101 typedef std::map<int, SkBitmap*> SkImageMap; | 98 typedef std::map<int, SkBitmap*> SkImageMap; |
102 mutable SkImageMap horizontal_bitmaps_; | 99 mutable SkImageMap horizontal_bitmaps_; |
103 | 100 |
104 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); | 101 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); |
105 }; | 102 }; |
106 | 103 |
107 } // namespace gfx | 104 } // namespace gfx |
108 | 105 |
109 #endif // UI_GFX_NATIVE_THEME_CHROMEOS_H_ | 106 #endif // UI_GFX_NATIVE_THEME_CHROMEOS_H_ |
OLD | NEW |