| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_GFX_NATIVE_THEME_AURA_H_ | |
| 6 #define UI_GFX_NATIVE_THEME_AURA_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "ui/gfx/native_theme_base.h" | |
| 12 | |
| 13 namespace gfx { | |
| 14 | |
| 15 // Aura implementation of native theme support. | |
| 16 class NativeThemeAura : public NativeThemeBase { | |
| 17 public: | |
| 18 static const NativeThemeAura* instance(); | |
| 19 | |
| 20 private: | |
| 21 NativeThemeAura(); | |
| 22 virtual ~NativeThemeAura(); | |
| 23 | |
| 24 // Overridden from NativeThemeBase: | |
| 25 virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE; | |
| 26 virtual void PaintMenuPopupBackground(SkCanvas* canvas, | |
| 27 const gfx::Size& size) const OVERRIDE; | |
| 28 virtual void PaintScrollbarTrack( | |
| 29 SkCanvas* canvas, | |
| 30 Part part, | |
| 31 State state, | |
| 32 const ScrollbarTrackExtraParams& extra_params, | |
| 33 const gfx::Rect& rect) const OVERRIDE; | |
| 34 virtual void PaintArrowButton(SkCanvas* canvas, | |
| 35 const gfx::Rect& rect, | |
| 36 Part direction, | |
| 37 State state) const OVERRIDE; | |
| 38 virtual void PaintScrollbarThumb(SkCanvas* canvas, | |
| 39 Part part, | |
| 40 State state, | |
| 41 const gfx::Rect& rect) const OVERRIDE; | |
| 42 | |
| 43 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura); | |
| 44 }; | |
| 45 | |
| 46 } // namespace gfx | |
| 47 | |
| 48 #endif // UI_GFX_NATIVE_THEME_AURA_H_ | |
| OLD | NEW |