| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 void NATIVE_THEME_EXPORT CommonThemePaintMenuGutter(SkCanvas* canvas, | 39 void NATIVE_THEME_EXPORT CommonThemePaintMenuGutter(SkCanvas* canvas, |
| 40 const gfx::Rect& rect); | 40 const gfx::Rect& rect); |
| 41 | 41 |
| 42 void NATIVE_THEME_EXPORT CommonThemePaintMenuBackground(SkCanvas* canvas, | 42 void NATIVE_THEME_EXPORT CommonThemePaintMenuBackground(SkCanvas* canvas, |
| 43 const gfx::Rect& rect); | 43 const gfx::Rect& rect); |
| 44 | 44 |
| 45 void NATIVE_THEME_EXPORT CommonThemePaintMenuItemBackground( | 45 void NATIVE_THEME_EXPORT CommonThemePaintMenuItemBackground( |
| 46 SkCanvas* canvas, | 46 SkCanvas* canvas, |
| 47 NativeTheme::State state, | 47 NativeTheme::State state, |
| 48 const gfx::Rect& rect); | 48 const gfx::Rect& rect, |
| 49 const NativeTheme::MenuItemExtraParams& menu_item); |
| 49 | 50 |
| 50 // Creates a gfx::Canvas wrapping an SkCanvas. | 51 // Creates a gfx::Canvas wrapping an SkCanvas. |
| 51 scoped_ptr<gfx::Canvas> NATIVE_THEME_EXPORT CommonThemeCreateCanvas( | 52 scoped_ptr<gfx::Canvas> NATIVE_THEME_EXPORT CommonThemeCreateCanvas( |
| 52 SkCanvas* sk_canvas); | 53 SkCanvas* sk_canvas); |
| 53 | 54 |
| 54 } // namespace ui | 55 } // namespace ui |
| 55 | 56 |
| 56 #endif // UI_NATIVE_THEME_COMMON_THEME_H_ | 57 #endif // UI_NATIVE_THEME_COMMON_THEME_H_ |
| OLD | NEW |