summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/native_theme_chromeos.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/native_theme_chromeos.h')
-rw-r--r--chrome/browser/chromeos/native_theme_chromeos.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/native_theme_chromeos.h b/chrome/browser/chromeos/native_theme_chromeos.h
new file mode 100644
index 0000000..d501f682e
--- /dev/null
+++ b/chrome/browser/chromeos/native_theme_chromeos.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_
+#define CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_
+
+#include <map>
+#include "gfx/native_theme_linux.h"
+
+class SkBitmap;
+
+class NativeThemeChromeos : public gfx::NativeThemeLinux {
+ private:
+ friend class NativeThemeLinux;
+ NativeThemeChromeos();
+ virtual ~NativeThemeChromeos();
+
+ // Scrollbar painting overrides
+ virtual gfx::Size GetSize(Part part) const;
+ virtual void PaintTrack(skia::PlatformCanvas* canvas,
+ Part part, State state,
+ const ScrollbarTrackExtraParams& extra_params,
+ const gfx::Rect& rect);
+ virtual void PaintArrowButton(skia::PlatformCanvas* canvas,
+ const gfx::Rect& rect, Part direction, State state);
+ virtual void PaintThumb(skia::PlatformCanvas* canvas,
+ Part part, State state, const gfx::Rect& rect);
+ SkBitmap* GetHorizontalBitmapNamed(int resource_id);
+
+ // Cached images. The ResourceBundle caches all retrieved bitmaps and keeps
+ // ownership of the pointers.
+ typedef std::map<int, SkBitmap*> SkImageMap;
+ SkImageMap horizontal_bitmaps_;
+
+ DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos);
+};
+
+#endif // CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_