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

Unified Diff: ui/native_theme/native_theme_base.h

Issue 2421913002: Change Aura overlay scrollbars from solid color to painted scrollbars. (Closed)
Patch Set: Rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/native_theme/native_theme_aura.cc ('k') | ui/native_theme/native_theme_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_base.h
diff --git a/ui/native_theme/native_theme_base.h b/ui/native_theme/native_theme_base.h
index 3a8ddde23d1244ffdd37e2d09b88a4467b2660d5..716f72e94261bbeac3893df189ca3463515b568e 100644
--- a/ui/native_theme/native_theme_base.h
+++ b/ui/native_theme/native_theme_base.h
@@ -151,7 +151,7 @@ class NATIVE_THEME_EXPORT NativeThemeBase : public NativeTheme {
// crbug.com/530746 is resolved.
virtual void AdjustCheckboxRadioRectForPadding(SkRect* rect) const;
- void set_scrollbar_button_length(unsigned int length) {
+ void set_scrollbar_button_length(int length) {
scrollbar_button_length_ = length;
}
int scrollbar_button_length() const { return scrollbar_button_length_; }
@@ -169,6 +169,8 @@ class NATIVE_THEME_EXPORT NativeThemeBase : public NativeTheme {
// Returns the color used to draw the arrow.
SkColor GetArrowColor(State state) const;
+ int scrollbar_width_;
+
private:
friend class NativeThemeAuraTest;
@@ -201,10 +203,8 @@ class NATIVE_THEME_EXPORT NativeThemeBase : public NativeTheme {
const gfx::Rect& rect,
const SkScalar borderRadius) const;
- unsigned int scrollbar_width_;
-
// The length of the arrow buttons, 0 means no buttons are drawn.
- unsigned int scrollbar_button_length_;
+ int scrollbar_button_length_;
DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
};
« no previous file with comments | « ui/native_theme/native_theme_aura.cc ('k') | ui/native_theme/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698