OLD | NEW |
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_COMMON_THEME_H_ | 5 #ifndef UI_NATIVE_THEME_COMMON_THEME_H_ |
6 #define UI_NATIVE_THEME_COMMON_THEME_H_ | 6 #define UI_NATIVE_THEME_COMMON_THEME_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ui/native_theme/native_theme.h" | 10 #include "ui/native_theme/native_theme.h" |
11 | 11 |
12 class SkCanvas; | |
13 | 12 |
14 namespace ui { | 13 namespace ui { |
15 | 14 |
16 // Drawing code that is common for all platforms. | 15 // Drawing code that is common for all platforms. |
17 | 16 |
18 // Returns the color to use on Aura for |color_id|. For a few colors that are | 17 // Returns the color to use on Aura for |color_id|. For a few colors that are |
19 // theme-specific, |base_theme| must be non-null; consult the code to see which | 18 // theme-specific, |base_theme| must be non-null; consult the code to see which |
20 // color IDs fall into this category. | 19 // color IDs fall into this category. |
21 SkColor NATIVE_THEME_EXPORT GetAuraColor(NativeTheme::ColorId color_id, | 20 SkColor NATIVE_THEME_EXPORT GetAuraColor(NativeTheme::ColorId color_id, |
22 const NativeTheme* base_theme); | 21 const NativeTheme* base_theme); |
23 | 22 |
24 void NATIVE_THEME_EXPORT CommonThemePaintMenuItemBackground( | 23 void NATIVE_THEME_EXPORT CommonThemePaintMenuItemBackground( |
25 const NativeTheme* theme, | 24 const NativeTheme* theme, |
26 SkCanvas* canvas, | 25 cc::PaintCanvas* canvas, |
27 NativeTheme::State state, | 26 NativeTheme::State state, |
28 const gfx::Rect& rect, | 27 const gfx::Rect& rect, |
29 const NativeTheme::MenuItemExtraParams& menu_item); | 28 const NativeTheme::MenuItemExtraParams& menu_item); |
30 | 29 |
31 } // namespace ui | 30 } // namespace ui |
32 | 31 |
33 #endif // UI_NATIVE_THEME_COMMON_THEME_H_ | 32 #endif // UI_NATIVE_THEME_COMMON_THEME_H_ |
OLD | NEW |