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

Side by Side Diff: ui/gfx/native_theme_aura.h

Issue 9565021: ui/gfx: Drop unused args from PaintMenuBackgroundColor() and pass gfx::Size instead of gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/gfx/native_theme_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 UI_GFX_NATIVE_THEME_AURA_H_ 5 #ifndef UI_GFX_NATIVE_THEME_AURA_H_
6 #define UI_GFX_NATIVE_THEME_AURA_H_ 6 #define UI_GFX_NATIVE_THEME_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ui/gfx/native_theme_base.h" 12 #include "ui/gfx/native_theme_base.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 14
15 class SkBitmap; 15 class SkBitmap;
16 16
17 namespace gfx { 17 namespace gfx {
18 18
19 // Aura implementation of native theme support. 19 // Aura implementation of native theme support.
20 class NativeThemeAura : public NativeThemeBase { 20 class NativeThemeAura : public NativeThemeBase {
21 public: 21 public:
22 static const NativeThemeAura* instance(); 22 static const NativeThemeAura* instance();
23 23
24 private: 24 private:
25 NativeThemeAura(); 25 NativeThemeAura();
26 virtual ~NativeThemeAura(); 26 virtual ~NativeThemeAura();
27 27
28 // NativeTheme overrides 28 // Overridden from NativeThemeBase:
29 virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE; 29 virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE;
30 30 virtual void PaintMenuPopupBackground(SkCanvas* canvas,
31 // NativeThemeBase overrides 31 const gfx::Size& size) const OVERRIDE;
32 virtual void PaintMenuPopupBackground(
33 SkCanvas* canvas,
34 State state,
35 const gfx::Rect& rect,
36 const MenuListExtraParams& menu_list) const OVERRIDE;
37
38 virtual void PaintScrollbarTrack( 32 virtual void PaintScrollbarTrack(
39 SkCanvas* canvas, 33 SkCanvas* canvas,
40 Part part, 34 Part part,
41 State state, 35 State state,
42 const ScrollbarTrackExtraParams& extra_params, 36 const ScrollbarTrackExtraParams& extra_params,
43 const gfx::Rect& rect) const OVERRIDE; 37 const gfx::Rect& rect) const OVERRIDE;
44 38 virtual void PaintArrowButton(SkCanvas* canvas,
45 virtual void PaintArrowButton( 39 const gfx::Rect& rect,
46 SkCanvas* canvas, 40 Part direction,
47 const gfx::Rect& rect, 41 State state) const OVERRIDE;
48 Part direction, 42 virtual void PaintScrollbarThumb(SkCanvas* canvas,
49 State state) const OVERRIDE; 43 Part part,
50 44 State state,
51 virtual void PaintScrollbarThumb( 45 const gfx::Rect& rect) const OVERRIDE;
52 SkCanvas* canvas,
53 Part part,
54 State state,
55 const gfx::Rect& rect) const OVERRIDE;
56 46
57 SkBitmap* GetHorizontalBitmapNamed(int resource_id) const; 47 SkBitmap* GetHorizontalBitmapNamed(int resource_id) const;
58 48
59 // Cached images. Resource loader caches all retrieved bitmaps and keeps 49 // Cached images. Resource loader caches all retrieved bitmaps and keeps
60 // ownership of the pointers. 50 // ownership of the pointers.
61 typedef std::map<int, SkBitmap*> SkImageMap; 51 typedef std::map<int, SkBitmap*> SkImageMap;
62 mutable SkImageMap horizontal_bitmaps_; 52 mutable SkImageMap horizontal_bitmaps_;
63 53
64 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura); 54 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura);
65 }; 55 };
66 56
67 } // namespace gfx 57 } // namespace gfx
68 58
69 #endif // UI_GFX_NATIVE_THEME_AURA_H_ 59 #endif // UI_GFX_NATIVE_THEME_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/native_theme_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698