| Index: ui/native_theme/native_theme_win_dark.cc
|
| diff --git a/ui/native_theme/native_theme_win_dark.cc b/ui/native_theme/native_theme_win_dark.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f6d59145cef39ec4912c5e1901b6eefbb6cc5139
|
| --- /dev/null
|
| +++ b/ui/native_theme/native_theme_win_dark.cc
|
| @@ -0,0 +1,28 @@
|
| +// 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_win_dark.h"
|
| +
|
| +#include "ui/base/resource/material_design/material_design_controller.h"
|
| +#include "ui/native_theme/native_theme_aura_dark.h"
|
| +
|
| +namespace ui {
|
| +
|
| +NativeThemeWinDark* NativeThemeWinDark::instance() {
|
| + CR_DEFINE_STATIC_LOCAL(NativeThemeWinDark, s_native_theme, ());
|
| + return &s_native_theme;
|
| +}
|
| +
|
| +NativeThemeWinDark::NativeThemeWinDark() {}
|
| +
|
| +NativeThemeWinDark::~NativeThemeWinDark() {}
|
| +
|
| +SkColor NativeThemeWinDark::GetSystemColor(ColorId color_id) const {
|
| + if (!ui::MaterialDesignController::IsModeMaterial())
|
| + return NativeThemeWin::GetSystemColor(color_id);
|
| +
|
| + return NativeThemeAuraDark::instance()->GetSystemColor(color_id);
|
| +}
|
| +
|
| +} // namespace ui
|
|
|