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

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

Issue 1819443002: MacViews: draw combobox arrow backgrounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 const ProgressBarExtraParams& progress_bar) const; 135 const ProgressBarExtraParams& progress_bar) const;
136 136
137 virtual void PaintScrollbarThumbStateTransition(SkCanvas* canvas, 137 virtual void PaintScrollbarThumbStateTransition(SkCanvas* canvas,
138 Part part, 138 Part part,
139 State startState, 139 State startState,
140 State endState, 140 State endState,
141 double progress, 141 double progress,
142 const gfx::Rect& rect) const { 142 const gfx::Rect& rect) const {
143 } 143 }
144 144
145 virtual void PaintComboboxArrowBackground(SkCanvas* canvas,
146 State state,
147 const gfx::Rect& rect) const {
148 }
149
145 // Shrinks checkbox/radio button rect, if necessary, to make room for padding 150 // Shrinks checkbox/radio button rect, if necessary, to make room for padding
146 // and drop shadow. 151 // and drop shadow.
147 // TODO(mohsen): This is needed because checkboxes/radio buttons on Android 152 // TODO(mohsen): This is needed because checkboxes/radio buttons on Android
148 // have different padding from those on desktop Chrome. Get rid of this when 153 // have different padding from those on desktop Chrome. Get rid of this when
149 // crbug.com/530746 is resolved. 154 // crbug.com/530746 is resolved.
150 virtual void AdjustCheckboxRadioRectForPadding(SkRect* rect) const; 155 virtual void AdjustCheckboxRadioRectForPadding(SkRect* rect) const;
151 156
152 void set_scrollbar_button_length(unsigned int length) { 157 void set_scrollbar_button_length(unsigned int length) {
153 scrollbar_button_length_ = length; 158 scrollbar_button_length_ = length;
154 } 159 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 213
209 // The length of the arrow buttons, 0 means no buttons are drawn. 214 // The length of the arrow buttons, 0 means no buttons are drawn.
210 unsigned int scrollbar_button_length_; 215 unsigned int scrollbar_button_length_;
211 216
212 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); 217 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
213 }; 218 };
214 219
215 } // namespace ui 220 } // namespace ui
216 221
217 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 222 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698