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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_dark_win.cc
diff --git a/ui/native_theme/native_theme_dark_win.cc b/ui/native_theme/native_theme_dark_win.cc
deleted file mode 100644
index c79f51eb741a167ce56d6d081ecb5672a2238b42..0000000000000000000000000000000000000000
--- a/ui/native_theme/native_theme_dark_win.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/native_theme/native_theme_dark_win.h"
-
-#include "ui/base/material_design/material_design_controller.h"
-#include "ui/native_theme/native_theme_dark_aura.h"
-
-namespace ui {
-
-NativeThemeDarkWin* NativeThemeDarkWin::instance() {
- CR_DEFINE_STATIC_LOCAL(NativeThemeDarkWin, s_native_theme, ());
- return &s_native_theme;
-}
-
-NativeThemeDarkWin::NativeThemeDarkWin() {}
-
-NativeThemeDarkWin::~NativeThemeDarkWin() {}
-
-SkColor NativeThemeDarkWin::GetSystemColor(ColorId color_id) const {
- if (!ui::MaterialDesignController::IsModeMaterial())
- return NativeThemeWin::GetSystemColor(color_id);
-
- return NativeThemeDarkAura::instance()->GetSystemColor(color_id);
-}
-
-} // namespace ui
« 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