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

Unified Diff: ui/native_theme/BUILD.gn

Issue 2290743002: Partial revert of https://codereview.chromium.org/1911973002/ (Closed)
Patch Set: mac libtool 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
« no previous file with comments | « content/renderer/render_view_win.cc ('k') | ui/native_theme/native_theme_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/BUILD.gn
diff --git a/ui/native_theme/BUILD.gn b/ui/native_theme/BUILD.gn
index 6314939bcdf2eace3bd8b089de5feef45dfd40fa..a64cb968c028e805a8740babc6965e616b9dda5d 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,31 @@ component("native_theme") {
}
}
+if (is_win) {
+ 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",
+ ]
+ }
+} else {
+ source_set("native_theme_browser") {
+ }
+}
+
test("native_theme_unittests") {
sources = []
« no previous file with comments | « content/renderer/render_view_win.cc ('k') | ui/native_theme/native_theme_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698