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

Side by Side Diff: ui/native_theme/native_theme_dark_win.cc

Issue 2473863004: Remove MaterialDesignController::IsModeMaterial (Closed)
Patch Set: pkasting review and rebase 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/native_theme/native_theme_dark_win.h ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/native_theme/native_theme_dark_win.h"
6
7 #include "ui/base/material_design/material_design_controller.h"
8 #include "ui/native_theme/native_theme_dark_aura.h"
9
10 namespace ui {
11
12 NativeThemeDarkWin* NativeThemeDarkWin::instance() {
13 CR_DEFINE_STATIC_LOCAL(NativeThemeDarkWin, s_native_theme, ());
14 return &s_native_theme;
15 }
16
17 NativeThemeDarkWin::NativeThemeDarkWin() {}
18
19 NativeThemeDarkWin::~NativeThemeDarkWin() {}
20
21 SkColor NativeThemeDarkWin::GetSystemColor(ColorId color_id) const {
22 if (!ui::MaterialDesignController::IsModeMaterial())
23 return NativeThemeWin::GetSystemColor(color_id);
24
25 return NativeThemeDarkAura::instance()->GetSystemColor(color_id);
26 }
27
28 } // namespace ui
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_dark_win.h ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698