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

Side by Side Diff: ui/native_theme/native_theme_aurawin.h

Issue 146693015: Plumbs through support for painting the scrollbarcorner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bad upload Created 6 years, 10 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 | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_aurawin.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/native_theme/native_theme_aura.h" 10 #include "ui/native_theme/native_theme_aura.h"
(...skipping 24 matching lines...) Expand all
35 virtual void PaintScrollbarTrack( 35 virtual void PaintScrollbarTrack(
36 SkCanvas* sk_canvas, 36 SkCanvas* sk_canvas,
37 Part part, 37 Part part,
38 State state, 38 State state,
39 const ScrollbarTrackExtraParams& extra_params, 39 const ScrollbarTrackExtraParams& extra_params,
40 const gfx::Rect& rect) const OVERRIDE; 40 const gfx::Rect& rect) const OVERRIDE;
41 virtual void PaintScrollbarThumb(SkCanvas* sk_canvas, 41 virtual void PaintScrollbarThumb(SkCanvas* sk_canvas,
42 Part part, 42 Part part,
43 State state, 43 State state,
44 const gfx::Rect& rect) const OVERRIDE; 44 const gfx::Rect& rect) const OVERRIDE;
45 virtual void PaintScrollbarCorner(SkCanvas* canvas,
46 State state,
47 const gfx::Rect& rect) const OVERRIDE;
45 48
46 // Returns the NineImagePainter used to paint the specified state, creating if 49 // Returns the NineImagePainter used to paint the specified state, creating if
47 // necessary. If no image is provided for the specified state the normal state 50 // necessary. If no image is provided for the specified state the normal state
48 // images are used. 51 // images are used.
49 gfx::NineImagePainter* GetOrCreatePainter( 52 gfx::NineImagePainter* GetOrCreatePainter(
50 const int image_ids[kMaxState][9], 53 const int image_ids[kMaxState][9],
51 State state, 54 State state,
52 scoped_ptr<gfx::NineImagePainter> painters[kMaxState]) const; 55 scoped_ptr<gfx::NineImagePainter> painters[kMaxState]) const;
53 56
54 // Paints |painter| into the canvas using |rect|. 57 // Paints |painter| into the canvas using |rect|.
55 void PaintPainter(gfx::NineImagePainter* painter, 58 void PaintPainter(gfx::NineImagePainter* painter,
56 SkCanvas* sk_canvas, 59 SkCanvas* sk_canvas,
57 const gfx::Rect& rect) const; 60 const gfx::Rect& rect) const;
58 61
59 mutable scoped_ptr<gfx::NineImagePainter> scrollbar_track_painter_; 62 mutable scoped_ptr<gfx::NineImagePainter> scrollbar_track_painter_;
60 63
61 mutable scoped_ptr<gfx::NineImagePainter> 64 mutable scoped_ptr<gfx::NineImagePainter>
62 scrollbar_thumb_painters_[kMaxState]; 65 scrollbar_thumb_painters_[kMaxState];
63 66
64 mutable scoped_ptr<gfx::NineImagePainter> 67 mutable scoped_ptr<gfx::NineImagePainter>
65 scrollbar_arrow_button_painters_[kMaxState]; 68 scrollbar_arrow_button_painters_[kMaxState];
66 69
67 DISALLOW_COPY_AND_ASSIGN(NativeThemeAuraWin); 70 DISALLOW_COPY_AND_ASSIGN(NativeThemeAuraWin);
68 }; 71 };
69 72
70 } // namespace ui 73 } // namespace ui
71 74
72 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_ 75 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_aurawin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698