| 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 15 matching lines...) Expand all Loading... |
| 26 SkCanvas* canvas, | 26 SkCanvas* canvas, |
| 27 const gfx::Size& size, | 27 const gfx::Size& size, |
| 28 const MenuBackgroundExtraParams& menu_background) const override; | 28 const MenuBackgroundExtraParams& menu_background) const override; |
| 29 void PaintMenuItemBackground( | 29 void PaintMenuItemBackground( |
| 30 SkCanvas* canvas, | 30 SkCanvas* canvas, |
| 31 State state, | 31 State state, |
| 32 const gfx::Rect& rect, | 32 const gfx::Rect& rect, |
| 33 const MenuItemExtraParams& menu_item) const override; | 33 const MenuItemExtraParams& menu_item) const override; |
| 34 | 34 |
| 35 // Creates a shader appropriate for painting the background of a button. | 35 // Creates a shader appropriate for painting the background of a button. |
| 36 static skia::RefPtr<SkShader> GetButtonBackgroundShader( | 36 static sk_sp<SkShader> GetButtonBackgroundShader(State state, int height); |
| 37 State state, | |
| 38 int height); | |
| 39 | 37 |
| 40 private: | 38 private: |
| 41 NativeThemeMac(); | 39 NativeThemeMac(); |
| 42 ~NativeThemeMac() override; | 40 ~NativeThemeMac() override; |
| 43 | 41 |
| 44 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); | 42 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); |
| 45 }; | 43 }; |
| 46 | 44 |
| 47 } // namespace ui | 45 } // namespace ui |
| 48 | 46 |
| 49 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ | 47 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ |
| OLD | NEW |