| 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 11 matching lines...) Expand all Loading... |
| 22 enum class ButtonBackgroundType { | 22 enum class ButtonBackgroundType { |
| 23 DISABLED, | 23 DISABLED, |
| 24 HIGHLIGHTED, | 24 HIGHLIGHTED, |
| 25 NORMAL, | 25 NORMAL, |
| 26 PRESSED, | 26 PRESSED, |
| 27 COUNT | 27 COUNT |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 static NativeThemeMac* instance(); | 30 static NativeThemeMac* instance(); |
| 31 | 31 |
| 32 // Adjusts an SkColor based on the current system control tint. For example, |
| 33 // if the current tint is "graphite", this function maps the provided value to |
| 34 // an appropriate gray. |
| 35 static SkColor ApplySystemControlTint(SkColor color); |
| 36 |
| 32 // Overridden from NativeTheme: | 37 // Overridden from NativeTheme: |
| 33 SkColor GetSystemColor(ColorId color_id) const override; | 38 SkColor GetSystemColor(ColorId color_id) const override; |
| 34 | 39 |
| 35 // Overridden from NativeThemeBase: | 40 // Overridden from NativeThemeBase: |
| 36 void PaintMenuPopupBackground( | 41 void PaintMenuPopupBackground( |
| 37 SkCanvas* canvas, | 42 SkCanvas* canvas, |
| 38 const gfx::Size& size, | 43 const gfx::Size& size, |
| 39 const MenuBackgroundExtraParams& menu_background) const override; | 44 const MenuBackgroundExtraParams& menu_background) const override; |
| 40 void PaintMenuItemBackground( | 45 void PaintMenuItemBackground( |
| 41 SkCanvas* canvas, | 46 SkCanvas* canvas, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 66 private: | 71 private: |
| 67 NativeThemeMac(); | 72 NativeThemeMac(); |
| 68 ~NativeThemeMac() override; | 73 ~NativeThemeMac() override; |
| 69 | 74 |
| 70 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); | 75 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); |
| 71 }; | 76 }; |
| 72 | 77 |
| 73 } // namespace ui | 78 } // namespace ui |
| 74 | 79 |
| 75 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ | 80 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ |
| OLD | NEW |