summaryrefslogtreecommitdiffstats
path: root/ui/base/native_theme/native_theme_aura.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/native_theme/native_theme_aura.h')
-rw-r--r--ui/base/native_theme/native_theme_aura.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/ui/base/native_theme/native_theme_aura.h b/ui/base/native_theme/native_theme_aura.h
new file mode 100644
index 0000000..077a42a
--- /dev/null
+++ b/ui/base/native_theme/native_theme_aura.h
@@ -0,0 +1,48 @@
+// Copyright (c) 2012 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 UI_BASE_NATIVE_THEME_NATIVE_THEME_AURA_H_
+#define UI_BASE_NATIVE_THEME_NATIVE_THEME_AURA_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ui/base/native_theme/native_theme_base.h"
+
+namespace ui {
+
+// Aura implementation of native theme support.
+class NativeThemeAura : public NativeThemeBase {
+ public:
+ static const NativeThemeAura* instance();
+
+ private:
+ NativeThemeAura();
+ virtual ~NativeThemeAura();
+
+ // Overridden from NativeThemeBase:
+ virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE;
+ virtual void PaintMenuPopupBackground(SkCanvas* canvas,
+ const gfx::Size& size) const OVERRIDE;
+ virtual void PaintScrollbarTrack(
+ SkCanvas* canvas,
+ Part part,
+ State state,
+ const ScrollbarTrackExtraParams& extra_params,
+ const gfx::Rect& rect) const OVERRIDE;
+ virtual void PaintArrowButton(SkCanvas* canvas,
+ const gfx::Rect& rect,
+ Part direction,
+ State state) const OVERRIDE;
+ virtual void PaintScrollbarThumb(SkCanvas* canvas,
+ Part part,
+ State state,
+ const gfx::Rect& rect) const OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(NativeThemeAura);
+};
+
+} // namespace ui
+
+#endif // UI_BASE_NATIVE_THEME_NATIVE_THEME_AURA_H_