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

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

Issue 2303723003: macviews: always use Aura colors when --secondary-ui-md (Closed)
Patch Set: inline GetAuraColorWithSystemTint Created 4 years, 3 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/native_theme_mac.mm » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_NATIVE_THEME_MAC_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/native_theme/native_theme_base.h" 9 #include "ui/native_theme/native_theme_base.h"
10 #include "ui/native_theme/native_theme_export.h" 10 #include "ui/native_theme/native_theme_export.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Depending on the control part being drawn, the left or the right side can 62 // Depending on the control part being drawn, the left or the right side can
63 // be given rounded corners. 63 // be given rounded corners.
64 static void PaintStyledGradientButton(SkCanvas* canvas, 64 static void PaintStyledGradientButton(SkCanvas* canvas,
65 const gfx::Rect& bounds, 65 const gfx::Rect& bounds,
66 ButtonBackgroundType type, 66 ButtonBackgroundType type,
67 bool round_left, 67 bool round_left,
68 bool round_right, 68 bool round_right,
69 bool focus); 69 bool focus);
70 70
71 private: 71 private:
72 SkColor GetAuraColorWithSystemTint(NativeTheme::ColorId color_id,
73 const NativeTheme* base_theme) const;
74
75 NativeThemeMac(); 72 NativeThemeMac();
76 ~NativeThemeMac() override; 73 ~NativeThemeMac() override;
77 74
78 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); 75 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac);
79 }; 76 };
80 77
81 } // namespace ui 78 } // namespace ui
82 79
83 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ 80 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698