Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: ui/native_theme/common_theme.h

Issue 1797053002: Move theme part drawing functions only used on Windows to NativeThemeWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/native_theme/common_theme.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/native_theme/common_theme.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698