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

Unified Diff: ui/platform_window/x11/BUILD.gn

Issue 1602173005: Add PlatformWindow/Event related code for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for comments. Created 4 years, 10 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/platform_window/x11/BUILD.gn
diff --git a/ui/platform_window/x11/BUILD.gn b/ui/platform_window/x11/BUILD.gn
index 4775aa771449011f02f181f1dc2c3a478a3b2824..b4cbfde1177e4477348aaa2d0786fdff08762fbc 100644
--- a/ui/platform_window/x11/BUILD.gn
+++ b/ui/platform_window/x11/BUILD.gn
@@ -3,8 +3,9 @@
# found in the LICENSE file.
import("//build/config/ui.gni")
+import("//ui/ozone/ozone.gni")
-assert(use_x11)
+assert(use_x11 || ozone_platform_x11)
component("x11") {
output_name = "x11_window"
@@ -16,6 +17,7 @@ component("x11") {
"//ui/events/devices",
"//ui/events/platform",
"//ui/events/platform/x11",
+ "//ui/events/x",
"//ui/gfx/x",
"//ui/platform_window",
]
@@ -25,8 +27,20 @@ component("x11") {
defines = [ "X11_WINDOW_IMPLEMENTATION" ]
sources = [
- "x11_window.cc",
- "x11_window.h",
+ "x11_window_base.cc",
+ "x11_window_base.h",
"x11_window_export.h",
]
+
+ if (ozone_platform_x11) {
+ sources += [
+ "x11_window_ozone.cc",
+ "x11_window_ozone.h",
+ ]
+ } else if (use_x11) {
+ sources += [
+ "x11_window.cc",
+ "x11_window.h",
+ ]
+ }
}

Powered by Google App Engine
This is Rietveld 408576698