Index: ui/display/BUILD.gn |
diff --git a/ui/display/BUILD.gn b/ui/display/BUILD.gn |
index 471148ad6e2be1ef8b852e32efa4a0c5e14bd456..7fc81d06b20b915d2b1d8cde36049c824e0d6a67 100644 |
--- a/ui/display/BUILD.gn |
+++ b/ui/display/BUILD.gn |
@@ -23,16 +23,6 @@ component("display") { |
"chromeos/query_content_protection_task.h", |
"chromeos/update_display_configuration_task.cc", |
"chromeos/update_display_configuration_task.h", |
- "chromeos/x11/display_mode_x11.cc", |
- "chromeos/x11/display_mode_x11.h", |
- "chromeos/x11/display_snapshot_x11.cc", |
- "chromeos/x11/display_snapshot_x11.h", |
- "chromeos/x11/display_util_x11.cc", |
- "chromeos/x11/display_util_x11.h", |
- "chromeos/x11/native_display_delegate_x11.cc", |
- "chromeos/x11/native_display_delegate_x11.h", |
- "chromeos/x11/native_display_event_dispatcher_x11.cc", |
- "chromeos/x11/native_display_event_dispatcher_x11.h", |
"display.cc", |
"display.h", |
"display_change_notifier.cc", |
@@ -46,6 +36,10 @@ component("display") { |
"display_observer.h", |
"display_switches.cc", |
"display_switches.h", |
+ "fake_display_delegate.cc", |
+ "fake_display_delegate.h", |
+ "fake_display_snapshot.cc", |
+ "fake_display_snapshot.h", |
"ios/screen_ios.mm", |
"mac/screen_mac.mm", |
"manager/display_layout.cc", |
@@ -90,34 +84,33 @@ component("display") { |
] |
if (is_chromeos && use_x11) { |
+ sources += [ |
+ "chromeos/x11/display_mode_x11.cc", |
+ "chromeos/x11/display_mode_x11.h", |
+ "chromeos/x11/display_snapshot_x11.cc", |
+ "chromeos/x11/display_snapshot_x11.h", |
+ "chromeos/x11/display_util_x11.cc", |
+ "chromeos/x11/display_util_x11.h", |
+ "chromeos/x11/native_display_delegate_x11.cc", |
+ "chromeos/x11/native_display_delegate_x11.h", |
+ "chromeos/x11/native_display_event_dispatcher_x11.cc", |
+ "chromeos/x11/native_display_event_dispatcher_x11.h", |
+ ] |
+ |
configs += [ |
"//build/config/linux:x11", |
"//build/config/linux:xext", |
"//build/config/linux:xi", |
"//build/config/linux:xrandr", |
] |
+ |
deps += [ "//ui/events/platform" ] |
} |
- deps += [] |
if (use_x11) { |
deps += [ "//ui/gfx/x" ] |
} |
- if (is_chromeos && use_ozone) { |
- sources -= [ |
- "chromeos/x11/display_mode_x11.cc", |
- "chromeos/x11/display_mode_x11.h", |
- "chromeos/x11/display_snapshot_x11.cc", |
- "chromeos/x11/display_snapshot_x11.h", |
- "chromeos/x11/display_util_x11.cc", |
- "chromeos/x11/display_util_x11.h", |
- "chromeos/x11/native_display_delegate_x11.cc", |
- "chromeos/x11/native_display_delegate_x11.h", |
- "chromeos/x11/native_display_event_dispatcher_x11.cc", |
- "chromeos/x11/native_display_event_dispatcher_x11.h", |
- ] |
- } |
if (!use_aura) { |
sources -= [ "screen_aura.cc" ] |
} |