| OLD | NEW |
| 1 // Copyright (c) 2011 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" |
| 11 | 11 |
| 12 class SkBitmap; | 12 class SkBitmap; |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 | 15 |
| 16 class NativeThemeChromeos : public NativeThemeBase { | 16 class NativeThemeChromeos : public NativeThemeBase { |
| 17 public: | 17 public: |
| 18 static const NativeThemeChromeos* instance(); | 18 static const NativeThemeChromeos* instance(); |
| 19 | 19 |
| 20 private: | 20 private: |
| 21 NativeThemeChromeos(); | 21 NativeThemeChromeos(); |
| 22 virtual ~NativeThemeChromeos(); | 22 virtual ~NativeThemeChromeos(); |
| 23 | 23 |
| 24 // NativeTheme overrides | 24 // NativeTheme overrides |
| 25 virtual gfx::Size GetPartSize(Part part, | 25 virtual gfx::Size GetPartSize(Part part, |
| 26 State state, | 26 State state, |
| 27 const ExtraParams& extra) const OVERRIDE; | 27 const ExtraParams& extra) const OVERRIDE; |
| 28 virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE; |
| 28 | 29 |
| 29 // NativeThemeLinux overrides | 30 // NativeThemeBase overrides |
| 30 virtual void PaintScrollbarTrack(SkCanvas* canvas, | 31 virtual void PaintScrollbarTrack(SkCanvas* canvas, |
| 31 Part part, State state, | 32 Part part, State state, |
| 32 const ScrollbarTrackExtraParams& extra_params, | 33 const ScrollbarTrackExtraParams& extra_params, |
| 33 const gfx::Rect& rect) const OVERRIDE; | 34 const gfx::Rect& rect) const OVERRIDE; |
| 34 virtual void PaintArrowButton(SkCanvas* canvas, | 35 virtual void PaintArrowButton(SkCanvas* canvas, |
| 35 const gfx::Rect& rect, Part direction, State state) const OVERRIDE; | 36 const gfx::Rect& rect, Part direction, State state) const OVERRIDE; |
| 36 virtual void PaintScrollbarThumb(SkCanvas* canvas, | 37 virtual void PaintScrollbarThumb(SkCanvas* canvas, |
| 37 Part part, State state, const gfx::Rect& rect) const OVERRIDE; | 38 Part part, State state, const gfx::Rect& rect) const OVERRIDE; |
| 38 | 39 |
| 39 // Draw the checkbox. | 40 // Draw the checkbox. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // ownership of the pointers. | 100 // ownership of the pointers. |
| 100 typedef std::map<int, SkBitmap*> SkImageMap; | 101 typedef std::map<int, SkBitmap*> SkImageMap; |
| 101 mutable SkImageMap horizontal_bitmaps_; | 102 mutable SkImageMap horizontal_bitmaps_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); | 104 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace gfx | 107 } // namespace gfx |
| 107 | 108 |
| 108 #endif // UI_GFX_NATIVE_THEME_CHROMEOS_H_ | 109 #endif // UI_GFX_NATIVE_THEME_CHROMEOS_H_ |
| OLD | NEW |