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

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

Issue 1863503002: test hypothesis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: zappity Created 4 years, 8 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 | « ui/gfx/vector_icons/combobox_arrow_mac.icon ('k') | 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
11 class SkCanvas; 11 class SkCanvas;
12 12
13 namespace gfx { 13 namespace gfx {
14 class Canvas; 14 class Canvas;
15 } 15 }
16 16
17 namespace ui { 17 namespace ui {
18 18
19 // Drawing code that is common for all platforms. 19 // Drawing code that is common for all platforms.
20 20
21 // Returns the color to use on Aura for |color_id|. For a few colors that are 21 // Returns the color to use on Aura for |color_id|. For a few colors that are
22 // theme-specific, |base_theme| must be non-null; consult the code to see which 22 // theme-specific, |base_theme| must be non-null; consult the code to see which
23 // color IDs fall into this category. 23 // color IDs fall into this category.
24 SkColor NATIVE_THEME_EXPORT GetAuraColor(NativeTheme::ColorId color_id, 24 SkColor NATIVE_THEME_EXPORT GetAuraColor(NativeTheme::ColorId color_id,
25 const NativeTheme* base_theme); 25 const NativeTheme* base_theme);
26 26
27 gfx::Size NATIVE_THEME_EXPORT CommonThemeGetPartSize(
28 NativeTheme::Part part,
29 NativeTheme::State state,
30 const NativeTheme::ExtraParams& extra);
31
32 void NATIVE_THEME_EXPORT CommonThemePaintComboboxArrow( 27 void NATIVE_THEME_EXPORT CommonThemePaintComboboxArrow(
33 SkCanvas* canvas, 28 SkCanvas* canvas,
34 const gfx::Rect& rect); 29 const gfx::Rect& rect);
35 30
36 void NATIVE_THEME_EXPORT CommonThemePaintMenuItemBackground( 31 void NATIVE_THEME_EXPORT CommonThemePaintMenuItemBackground(
37 const NativeTheme* theme, 32 const NativeTheme* theme,
38 SkCanvas* canvas, 33 SkCanvas* canvas,
39 NativeTheme::State state, 34 NativeTheme::State state,
40 const gfx::Rect& rect, 35 const gfx::Rect& rect,
41 const NativeTheme::MenuItemExtraParams& menu_item); 36 const NativeTheme::MenuItemExtraParams& menu_item);
42 37
43 // Creates a gfx::Canvas wrapping an SkCanvas. 38 // Creates a gfx::Canvas wrapping an SkCanvas.
44 scoped_ptr<gfx::Canvas> NATIVE_THEME_EXPORT CommonThemeCreateCanvas( 39 scoped_ptr<gfx::Canvas> NATIVE_THEME_EXPORT CommonThemeCreateCanvas(
45 SkCanvas* sk_canvas); 40 SkCanvas* sk_canvas);
46 41
47 } // namespace ui 42 } // namespace ui
48 43
49 #endif // UI_NATIVE_THEME_COMMON_THEME_H_ 44 #endif // UI_NATIVE_THEME_COMMON_THEME_H_
OLDNEW
« no previous file with comments | « ui/gfx/vector_icons/combobox_arrow_mac.icon ('k') | ui/native_theme/common_theme.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698