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

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

Issue 1671313002: MacViews: Overlay Scrollbars with Show/Hide Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments and fixed nits Created 4 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
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_NATIVE_THEME_NATIVE_THEME_BASE_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 SkCanvas* canvas, 56 SkCanvas* canvas,
57 Part part, 57 Part part,
58 State state, 58 State state,
59 const ScrollbarTrackExtraParams& extra_params, 59 const ScrollbarTrackExtraParams& extra_params,
60 const gfx::Rect& rect) const; 60 const gfx::Rect& rect) const;
61 // Draw the scrollbar thumb over the track. 61 // Draw the scrollbar thumb over the track.
62 virtual void PaintScrollbarThumb( 62 virtual void PaintScrollbarThumb(
63 SkCanvas* canvas, 63 SkCanvas* canvas,
64 Part part, 64 Part part,
65 State state, 65 State state,
66 const ScrollbarThumbExtraParams& extra_params,
66 const gfx::Rect& rect) const; 67 const gfx::Rect& rect) const;
67 68
68 virtual void PaintScrollbarCorner(SkCanvas* canvas, 69 virtual void PaintScrollbarCorner(SkCanvas* canvas,
69 State state, 70 State state,
70 const gfx::Rect& rect) const; 71 const gfx::Rect& rect) const;
71 72
72 virtual void PaintCheckbox( 73 virtual void PaintCheckbox(
73 SkCanvas* canvas, 74 SkCanvas* canvas,
74 State state, 75 State state,
75 const gfx::Rect& rect, 76 const gfx::Rect& rect,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 209
209 // The length of the arrow buttons, 0 means no buttons are drawn. 210 // The length of the arrow buttons, 0 means no buttons are drawn.
210 unsigned int scrollbar_button_length_; 211 unsigned int scrollbar_button_length_;
211 212
212 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); 213 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
213 }; 214 };
214 215
215 } // namespace ui 216 } // namespace ui
216 217
217 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 218 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698