Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2083)

Unified Diff: chrome/browser/chromeos/native_theme_chromeos.h

Issue 6247012: Update ChromeOS theme engine to follow mocks in chromium-os:9256. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and try Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/native_theme_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/native_theme_chromeos.h
diff --git a/chrome/browser/chromeos/native_theme_chromeos.h b/chrome/browser/chromeos/native_theme_chromeos.h
index fe92c91c50d7c366f18ffc4a7149aa0dfcdffb78..5090a78a04ef5591780683a0cfe6dd23babadf9d 100644
--- a/chrome/browser/chromeos/native_theme_chromeos.h
+++ b/chrome/browser/chromeos/native_theme_chromeos.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_
#include <map>
+#include "base/compiler_specific.h"
#include "gfx/native_theme_linux.h"
class SkBitmap;
@@ -17,17 +18,70 @@ class NativeThemeChromeos : public gfx::NativeThemeLinux {
virtual ~NativeThemeChromeos();
// Scrollbar painting overrides
- virtual gfx::Size GetPartSize(Part part) const;
+ virtual gfx::Size GetPartSize(Part part) const OVERRIDE;
virtual void PaintScrollbarTrack(skia::PlatformCanvas* canvas,
Part part, State state,
const ScrollbarTrackExtraParams& extra_params,
- const gfx::Rect& rect);
+ const gfx::Rect& rect) OVERRIDE;
virtual void PaintArrowButton(skia::PlatformCanvas* canvas,
- const gfx::Rect& rect, Part direction, State state);
+ const gfx::Rect& rect, Part direction, State state) OVERRIDE;
virtual void PaintScrollbarThumb(skia::PlatformCanvas* canvas,
- Part part, State state, const gfx::Rect& rect);
+ Part part, State state, const gfx::Rect& rect) OVERRIDE;
+
+ // Draw the checkbox.
+ virtual void PaintCheckbox(skia::PlatformCanvas* canvas,
+ State state, const gfx::Rect& rect,
+ const ButtonExtraParams& button) OVERRIDE;
+
+ // Draw the radio.
+ virtual void PaintRadio(skia::PlatformCanvas* canvas,
+ State state,
+ const gfx::Rect& rect,
+ const ButtonExtraParams& button) OVERRIDE;
+
+ // Draw the push button.
+ virtual void PaintButton(skia::PlatformCanvas* canvas,
+ State state,
+ const gfx::Rect& rect,
+ const ButtonExtraParams& button) OVERRIDE;
+
+ // Draw the text field.
+ virtual void PaintTextField(skia::PlatformCanvas* canvas,
+ State state,
+ const gfx::Rect& rect,
+ const TextFieldExtraParams& text) OVERRIDE;
+
+ // Draw the slider track.
+ virtual void PaintSliderTrack(skia::PlatformCanvas* canvas,
+ State state,
+ const gfx::Rect& rect,
+ const SliderExtraParams& slider) OVERRIDE;
+
+ // Draw the slider thumb.
+ virtual void PaintSliderThumb(skia::PlatformCanvas* canvas,
+ State state,
+ const gfx::Rect& rect,
+ const SliderExtraParams& slider) OVERRIDE;
+
+ // Draw the inner spin button.
+ virtual void PaintInnerSpinButton(skia::PlatformCanvas* canvas,
+ State state,
+ const gfx::Rect& rect,
+ const InnerSpinButtonExtraParams& spin_button) OVERRIDE;
+
+ // Draw the progress bar.
+ virtual void PaintProgressBar(skia::PlatformCanvas* canvas,
+ State state,
+ const gfx::Rect& rect,
+ const ProgressBarExtraParams& progress_bar) OVERRIDE;
+
SkBitmap* GetHorizontalBitmapNamed(int resource_id);
+ // Paint a button like rounded rect with gradient background and stroke.
+ void PaintButtonLike(skia::PlatformCanvas* canvas,
+ State state, const gfx::Rect& rect,
+ const ButtonExtraParams& button);
+
// Cached images. The ResourceBundle caches all retrieved bitmaps and keeps
// ownership of the pointers.
typedef std::map<int, SkBitmap*> SkImageMap;
« no previous file with comments | « no previous file | chrome/browser/chromeos/native_theme_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698