| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once |
| 7 | 8 |
| 8 #include <map> | 9 #include <map> |
| 10 |
| 9 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 10 #include "ui/gfx/native_theme_linux.h" | 12 #include "ui/gfx/native_theme_linux.h" |
| 11 | 13 |
| 12 class SkBitmap; | 14 class SkBitmap; |
| 13 | 15 |
| 14 class NativeThemeChromeos : public gfx::NativeThemeLinux { | 16 class NativeThemeChromeos : public gfx::NativeThemeLinux { |
| 17 public: |
| 18 NativeThemeChromeos(); |
| 19 virtual ~NativeThemeChromeos(); |
| 20 |
| 15 private: | 21 private: |
| 16 friend class NativeThemeLinux; | 22 friend class NativeThemeLinux; |
| 17 NativeThemeChromeos(); | |
| 18 virtual ~NativeThemeChromeos(); | |
| 19 | 23 |
| 20 // NativeTheme overrides | 24 // NativeTheme overrides |
| 21 virtual gfx::Size GetPartSize(Part part, | 25 virtual gfx::Size GetPartSize(Part part, |
| 22 State state, | 26 State state, |
| 23 const ExtraParams& extra) const OVERRIDE; | 27 const ExtraParams& extra) const OVERRIDE; |
| 24 | 28 |
| 25 // NativeThemeLinux overrides | 29 // NativeThemeLinux overrides |
| 26 virtual void PaintScrollbarTrack(SkCanvas* canvas, | 30 virtual void PaintScrollbarTrack(SkCanvas* canvas, |
| 27 Part part, State state, | 31 Part part, State state, |
| 28 const ScrollbarTrackExtraParams& extra_params, | 32 const ScrollbarTrackExtraParams& extra_params, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 91 |
| 88 // Cached images. Resource loader caches all retrieved bitmaps and keeps | 92 // Cached images. Resource loader caches all retrieved bitmaps and keeps |
| 89 // ownership of the pointers. | 93 // ownership of the pointers. |
| 90 typedef std::map<int, SkBitmap*> SkImageMap; | 94 typedef std::map<int, SkBitmap*> SkImageMap; |
| 91 mutable SkImageMap horizontal_bitmaps_; | 95 mutable SkImageMap horizontal_bitmaps_; |
| 92 | 96 |
| 93 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); | 97 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 #endif // UI_GFX_NATIVE_THEME_CHROMEOS_H_ | 100 #endif // UI_GFX_NATIVE_THEME_CHROMEOS_H_ |
| OLD | NEW |