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

Unified Diff: ui/native_theme/BUILD.gn

Issue 2290743002: Partial revert of https://codereview.chromium.org/1911973002/ (Closed)
Patch Set: . Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
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 = []

Powered by Google App Engine
This is Rietveld 408576698