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

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

Issue 2484863005: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Fix another conflict Created 4 years, 1 month 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/message_center/views/popup_alignment_delegate.h ('k') | ui/native_theme/native_theme_base.h » ('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 <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; 12 class SkCanvas;
13 13
14 namespace gfx {
15 class Canvas;
16 }
17
18 namespace ui { 14 namespace ui {
19 15
20 // Drawing code that is common for all platforms. 16 // Drawing code that is common for all platforms.
21 17
22 // Returns the color to use on Aura for |color_id|. For a few colors that are 18 // Returns the color to use on Aura for |color_id|. For a few colors that are
23 // theme-specific, |base_theme| must be non-null; consult the code to see which 19 // theme-specific, |base_theme| must be non-null; consult the code to see which
24 // color IDs fall into this category. 20 // color IDs fall into this category.
25 SkColor NATIVE_THEME_EXPORT GetAuraColor(NativeTheme::ColorId color_id, 21 SkColor NATIVE_THEME_EXPORT GetAuraColor(NativeTheme::ColorId color_id,
26 const NativeTheme* base_theme); 22 const NativeTheme* base_theme);
27 23
28 void NATIVE_THEME_EXPORT CommonThemePaintMenuItemBackground( 24 void NATIVE_THEME_EXPORT CommonThemePaintMenuItemBackground(
29 const NativeTheme* theme, 25 const NativeTheme* theme,
30 SkCanvas* canvas, 26 SkCanvas* canvas,
31 NativeTheme::State state, 27 NativeTheme::State state,
32 const gfx::Rect& rect, 28 const gfx::Rect& rect,
33 const NativeTheme::MenuItemExtraParams& menu_item); 29 const NativeTheme::MenuItemExtraParams& menu_item);
34 30
35 } // namespace ui 31 } // namespace ui
36 32
37 #endif // UI_NATIVE_THEME_COMMON_THEME_H_ 33 #endif // UI_NATIVE_THEME_COMMON_THEME_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/popup_alignment_delegate.h ('k') | ui/native_theme/native_theme_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698