| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/native_theme/native_theme.h" | 9 #include "ui/native_theme/native_theme.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 gfx::Size NATIVE_THEME_EXPORT CommonThemeGetPartSize( | 27 gfx::Size NATIVE_THEME_EXPORT CommonThemeGetPartSize( |
| 28 NativeTheme::Part part, | 28 NativeTheme::Part part, |
| 29 NativeTheme::State state, | 29 NativeTheme::State state, |
| 30 const NativeTheme::ExtraParams& extra); | 30 const NativeTheme::ExtraParams& extra); |
| 31 | 31 |
| 32 void NATIVE_THEME_EXPORT CommonThemePaintComboboxArrow( | 32 void NATIVE_THEME_EXPORT CommonThemePaintComboboxArrow( |
| 33 SkCanvas* canvas, | 33 SkCanvas* canvas, |
| 34 const gfx::Rect& rect); | 34 const gfx::Rect& rect); |
| 35 | 35 |
| 36 void NATIVE_THEME_EXPORT | |
| 37 CommonThemePaintMenuSeparator(SkCanvas* canvas, const gfx::Rect& rect); | |
| 38 | |
| 39 void NATIVE_THEME_EXPORT CommonThemePaintMenuGutter(SkCanvas* canvas, | |
| 40 const gfx::Rect& rect); | |
| 41 | |
| 42 void NATIVE_THEME_EXPORT CommonThemePaintMenuBackground(SkCanvas* canvas, | |
| 43 const gfx::Rect& rect); | |
| 44 | |
| 45 void NATIVE_THEME_EXPORT CommonThemePaintMenuItemBackground( | 36 void NATIVE_THEME_EXPORT CommonThemePaintMenuItemBackground( |
| 37 const NativeTheme* theme, |
| 46 SkCanvas* canvas, | 38 SkCanvas* canvas, |
| 47 NativeTheme::State state, | 39 NativeTheme::State state, |
| 48 const gfx::Rect& rect, | 40 const gfx::Rect& rect, |
| 49 const NativeTheme::MenuItemExtraParams& menu_item); | 41 const NativeTheme::MenuItemExtraParams& menu_item); |
| 50 | 42 |
| 51 // Creates a gfx::Canvas wrapping an SkCanvas. | 43 // Creates a gfx::Canvas wrapping an SkCanvas. |
| 52 scoped_ptr<gfx::Canvas> NATIVE_THEME_EXPORT CommonThemeCreateCanvas( | 44 scoped_ptr<gfx::Canvas> NATIVE_THEME_EXPORT CommonThemeCreateCanvas( |
| 53 SkCanvas* sk_canvas); | 45 SkCanvas* sk_canvas); |
| 54 | 46 |
| 55 } // namespace ui | 47 } // namespace ui |
| 56 | 48 |
| 57 #endif // UI_NATIVE_THEME_COMMON_THEME_H_ | 49 #endif // UI_NATIVE_THEME_COMMON_THEME_H_ |
| OLD | NEW |