| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_MAC_H_ | 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ |
| 6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ | 6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/native_theme/native_theme_base.h" | 9 #include "ui/native_theme/native_theme_base.h" |
| 10 #include "ui/native_theme/native_theme_export.h" | 10 #include "ui/native_theme/native_theme_export.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // Depending on the control part being drawn, the left or the right side can | 62 // Depending on the control part being drawn, the left or the right side can |
| 63 // be given rounded corners. | 63 // be given rounded corners. |
| 64 static void PaintStyledGradientButton(SkCanvas* canvas, | 64 static void PaintStyledGradientButton(SkCanvas* canvas, |
| 65 const gfx::Rect& bounds, | 65 const gfx::Rect& bounds, |
| 66 ButtonBackgroundType type, | 66 ButtonBackgroundType type, |
| 67 bool round_left, | 67 bool round_left, |
| 68 bool round_right, | 68 bool round_right, |
| 69 bool focus); | 69 bool focus); |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 SkColor GetAuraColorWithSystemTint(NativeTheme::ColorId color_id, | |
| 73 const NativeTheme* base_theme) const; | |
| 74 | |
| 75 NativeThemeMac(); | 72 NativeThemeMac(); |
| 76 ~NativeThemeMac() override; | 73 ~NativeThemeMac() override; |
| 77 | 74 |
| 78 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); | 75 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); |
| 79 }; | 76 }; |
| 80 | 77 |
| 81 } // namespace ui | 78 } // namespace ui |
| 82 | 79 |
| 83 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ | 80 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ |
| OLD | NEW |