| Index: ui/native_theme/BUILD.gn
|
| diff --git a/ui/native_theme/BUILD.gn b/ui/native_theme/BUILD.gn
|
| index 6314939bcdf2eace3bd8b089de5feef45dfd40fa..3e71fba9df480eb3ce90ed52c6b721d18efcd02c 100644
|
| --- a/ui/native_theme/BUILD.gn
|
| +++ b/ui/native_theme/BUILD.gn
|
| @@ -15,16 +15,12 @@ component("native_theme") {
|
| "native_theme_android.h",
|
| "native_theme_base.cc",
|
| "native_theme_base.h",
|
| - "native_theme_dark_win.cc",
|
| - "native_theme_dark_win.h",
|
| "native_theme_mac.h",
|
| "native_theme_mac.mm",
|
| "native_theme_observer.cc",
|
| "native_theme_observer.h",
|
| "native_theme_switches.cc",
|
| "native_theme_switches.h",
|
| - "native_theme_win.cc",
|
| - "native_theme_win.h",
|
| ]
|
|
|
| if (use_aura) {
|
| @@ -34,13 +30,6 @@ component("native_theme") {
|
| "native_theme_dark_aura.cc",
|
| "native_theme_dark_aura.h",
|
| ]
|
| -
|
| - if (is_win) {
|
| - sources += [
|
| - "native_theme_aurawin.cc",
|
| - "native_theme_aurawin.h",
|
| - ]
|
| - }
|
| }
|
|
|
| defines = [ "NATIVE_THEME_IMPLEMENTATION" ]
|
| @@ -64,6 +53,26 @@ component("native_theme") {
|
| }
|
| }
|
|
|
| +component("native_theme_browser") {
|
| + defines = [ "NATIVE_THEME_IMPLEMENTATION" ]
|
| +
|
| + # These files cannot work in the renderer on Windows.
|
| + sources = [
|
| + "native_theme_dark_win.cc",
|
| + "native_theme_dark_win.h",
|
| + "native_theme_win.cc",
|
| + "native_theme_win.h",
|
| + ]
|
| +
|
| + deps = [
|
| + ":native_theme",
|
| + "//base",
|
| + "//ui/base",
|
| + "//ui/display",
|
| + "//ui/gfx",
|
| + ]
|
| +}
|
| +
|
| test("native_theme_unittests") {
|
| sources = []
|
|
|
|
|