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

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

Issue 2006643004: Fix scrollbar buttons on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 years, 7 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_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 SliderExtraParams slider; 214 SliderExtraParams slider;
215 TextFieldExtraParams text_field; 215 TextFieldExtraParams text_field;
216 TrackbarExtraParams trackbar; 216 TrackbarExtraParams trackbar;
217 }; 217 };
218 218
219 // Return the size of the part. 219 // Return the size of the part.
220 virtual gfx::Size GetPartSize(Part part, 220 virtual gfx::Size GetPartSize(Part part,
221 State state, 221 State state,
222 const ExtraParams& extra) const = 0; 222 const ExtraParams& extra) const = 0;
223 223
224 virtual bool HasScrollbarButtons() const;
225
224 // Paint the part to the canvas. 226 // Paint the part to the canvas.
225 virtual void Paint(SkCanvas* canvas, 227 virtual void Paint(SkCanvas* canvas,
226 Part part, 228 Part part,
227 State state, 229 State state,
228 const gfx::Rect& rect, 230 const gfx::Rect& rect,
229 const ExtraParams& extra) const = 0; 231 const ExtraParams& extra) const = 0;
230 232
231 // Paint part during state transition, used for overlay scrollbar state 233 // Paint part during state transition, used for overlay scrollbar state
232 // transition animation. 234 // transition animation.
233 virtual void PaintStateTransition(SkCanvas* canvas, 235 virtual void PaintStateTransition(SkCanvas* canvas,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 private: 380 private:
379 // Observers to notify when the native theme changes. 381 // Observers to notify when the native theme changes.
380 base::ObserverList<NativeThemeObserver> native_theme_observers_; 382 base::ObserverList<NativeThemeObserver> native_theme_observers_;
381 383
382 DISALLOW_COPY_AND_ASSIGN(NativeTheme); 384 DISALLOW_COPY_AND_ASSIGN(NativeTheme);
383 }; 385 };
384 386
385 } // namespace ui 387 } // namespace ui
386 388
387 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ 389 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698