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

Unified Diff: ui/native_theme/native_theme_aura.h

Issue 377423003: Lots of random cleanups, mostly for native_theme_win.cc: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweak switches Created 6 years, 5 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.h ('k') | ui/native_theme/native_theme_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_aura.h
diff --git a/ui/native_theme/native_theme_aura.h b/ui/native_theme/native_theme_aura.h
index b63556c02849b88f61e7499e6e4e887c674346bd..82a6ec9b8e0f9e47af3e2f1c61368561d62dcb6e 100644
--- a/ui/native_theme/native_theme_aura.h
+++ b/ui/native_theme/native_theme_aura.h
@@ -63,9 +63,9 @@ class NATIVE_THEME_EXPORT NativeThemeAura : public FallbackTheme {
// necessary. If no image is provided for the specified state the normal state
// images are used.
gfx::NineImagePainter* GetOrCreatePainter(
- const int image_ids[kMaxState][9],
+ const int image_ids[kNumStates][9],
State state,
- scoped_ptr<gfx::NineImagePainter> painters[kMaxState]) const;
+ scoped_ptr<gfx::NineImagePainter> painters[kNumStates]) const;
// Paints |painter| into the canvas using |rect|.
void PaintPainter(gfx::NineImagePainter* painter,
@@ -75,10 +75,10 @@ class NATIVE_THEME_EXPORT NativeThemeAura : public FallbackTheme {
mutable scoped_ptr<gfx::NineImagePainter> scrollbar_track_painter_;
mutable scoped_ptr<gfx::NineImagePainter>
- scrollbar_thumb_painters_[kMaxState];
+ scrollbar_thumb_painters_[kNumStates];
mutable scoped_ptr<gfx::NineImagePainter>
- scrollbar_arrow_button_painters_[kMaxState];
+ scrollbar_arrow_button_painters_[kNumStates];
private:
struct DualPainter {
@@ -88,9 +88,9 @@ class NATIVE_THEME_EXPORT NativeThemeAura : public FallbackTheme {
// value associated with each state, so that a DualPainter for overlay
// scrollbar thumb would only need state as input to paint correctly.
DualPainter(scoped_ptr<gfx::NineImagePainter> fill_painter,
- const uint8 fill_alphas[kMaxState],
+ const uint8 fill_alphas[kNumStates],
scoped_ptr<gfx::NineImagePainter> stroke_painter,
- const uint8 stroke_alphas[kMaxState]);
+ const uint8 stroke_alphas[kNumStates]);
~DualPainter();
scoped_ptr<gfx::NineImagePainter> fill_painter;
@@ -102,9 +102,9 @@ class NATIVE_THEME_EXPORT NativeThemeAura : public FallbackTheme {
// Returns DualPainter from specific fill and stroke, creating if necessary.
scoped_ptr<DualPainter> CreateDualPainter(
const int fill_image_ids[9],
- const uint8 fill_alphas[kMaxState],
+ const uint8 fill_alphas[kNumStates],
const int stroke_image_ids[9],
- const uint8 stroke_alphas[kMaxState]) const;
+ const uint8 stroke_alphas[kNumStates]) const;
// Paints |dualPainter| into the canvas using |rect| and specific alpha.
void PaintDualPainter(DualPainter* dual_painter,
« no previous file with comments | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698