OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include "gfx/native_theme_linux.h" | 9 #include "gfx/native_theme_linux.h" |
10 | 10 |
11 class SkBitmap; | 11 class SkBitmap; |
12 | 12 |
13 class NativeThemeChromeos : public gfx::NativeThemeLinux { | 13 class NativeThemeChromeos : public gfx::NativeThemeLinux { |
14 private: | 14 private: |
15 friend class NativeThemeLinux; | 15 friend class NativeThemeLinux; |
16 NativeThemeChromeos(); | 16 NativeThemeChromeos(); |
17 virtual ~NativeThemeChromeos(); | 17 virtual ~NativeThemeChromeos(); |
18 | 18 |
19 // Scrollbar painting overrides | 19 // Scrollbar painting overrides |
20 virtual gfx::Size GetSize(Part part) const; | 20 virtual gfx::Size GetPartSize(Part part) const; |
21 virtual void PaintTrack(skia::PlatformCanvas* canvas, | 21 virtual void PaintScrollbarTrack(skia::PlatformCanvas* canvas, |
22 Part part, State state, | 22 Part part, State state, |
23 const ScrollbarTrackExtraParams& extra_params, | 23 const ScrollbarTrackExtraParams& extra_params, |
24 const gfx::Rect& rect); | 24 const gfx::Rect& rect); |
25 virtual void PaintArrowButton(skia::PlatformCanvas* canvas, | 25 virtual void PaintArrowButton(skia::PlatformCanvas* canvas, |
26 const gfx::Rect& rect, Part direction, State state); | 26 const gfx::Rect& rect, Part direction, State state); |
27 virtual void PaintThumb(skia::PlatformCanvas* canvas, | 27 virtual void PaintScrollbarThumb(skia::PlatformCanvas* canvas, |
28 Part part, State state, const gfx::Rect& rect); | 28 Part part, State state, const gfx::Rect& rect); |
29 SkBitmap* GetHorizontalBitmapNamed(int resource_id); | 29 SkBitmap* GetHorizontalBitmapNamed(int resource_id); |
30 | 30 |
31 // Cached images. The ResourceBundle caches all retrieved bitmaps and keeps | 31 // Cached images. The ResourceBundle caches all retrieved bitmaps and keeps |
32 // ownership of the pointers. | 32 // ownership of the pointers. |
33 typedef std::map<int, SkBitmap*> SkImageMap; | 33 typedef std::map<int, SkBitmap*> SkImageMap; |
34 SkImageMap horizontal_bitmaps_; | 34 SkImageMap horizontal_bitmaps_; |
35 | 35 |
36 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); | 36 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); |
37 }; | 37 }; |
38 | 38 |
39 #endif // CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_ | 39 #endif // CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_ |
OLD | NEW |