OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
10 } | 10 } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 "resource/resource_bundle_mac.mm", | 188 "resource/resource_bundle_mac.mm", |
189 "resource/resource_bundle_win.cc", | 189 "resource/resource_bundle_win.cc", |
190 "resource/resource_bundle_win.h", | 190 "resource/resource_bundle_win.h", |
191 "resource/resource_data_dll_win.cc", | 191 "resource/resource_data_dll_win.cc", |
192 "resource/resource_data_dll_win.h", | 192 "resource/resource_data_dll_win.h", |
193 "resource/resource_handle.h", | 193 "resource/resource_handle.h", |
194 "text/bytes_formatting.cc", | 194 "text/bytes_formatting.cc", |
195 "text/bytes_formatting.h", | 195 "text/bytes_formatting.h", |
196 "theme_provider.cc", | 196 "theme_provider.cc", |
197 "theme_provider.h", | 197 "theme_provider.h", |
198 "touch/touch_device.cc", | |
199 "touch/touch_device.h", | 198 "touch/touch_device.h", |
200 "touch/touch_device_android.cc", | |
201 "touch/touch_device_ozone.cc", | |
202 "touch/touch_device_win.cc", | |
203 "touch/touch_editing_controller.cc", | 199 "touch/touch_editing_controller.cc", |
204 "touch/touch_editing_controller.h", | 200 "touch/touch_editing_controller.h", |
205 "touch/touch_enabled.cc", | 201 "touch/touch_enabled.cc", |
206 "touch/touch_enabled.h", | 202 "touch/touch_enabled.h", |
207 "ui_base_exports.cc", | 203 "ui_base_exports.cc", |
208 "ui_base_paths.cc", | 204 "ui_base_paths.cc", |
209 "ui_base_paths.h", | 205 "ui_base_paths.h", |
210 "ui_base_switches.cc", | 206 "ui_base_switches.cc", |
211 "ui_base_switches.h", | 207 "ui_base_switches.h", |
212 "ui_base_switches_util.cc", | 208 "ui_base_switches_util.cc", |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 "window_open_disposition.cc", | 248 "window_open_disposition.cc", |
253 "window_open_disposition.h", | 249 "window_open_disposition.h", |
254 "work_area_watcher_observer.h", | 250 "work_area_watcher_observer.h", |
255 "x/x11_menu_list.cc", | 251 "x/x11_menu_list.cc", |
256 "x/x11_menu_list.h", | 252 "x/x11_menu_list.h", |
257 "x/x11_util.cc", | 253 "x/x11_util.cc", |
258 "x/x11_util.h", | 254 "x/x11_util.h", |
259 "x/x11_util_internal.h", | 255 "x/x11_util_internal.h", |
260 ] | 256 ] |
261 | 257 |
| 258 if (is_win) { |
| 259 sources += [ "touch/touch_device_win.cc" ] |
| 260 } else if (is_android) { |
| 261 sources += [ "touch/touch_device_android.cc" ] |
| 262 } else if (use_ozone) { |
| 263 sources += [ "touch/touch_device_ozone.cc" ] |
| 264 } else if (use_aura && use_x11) { |
| 265 sources += [ "touch/touch_device_aurax11.cc" ] |
| 266 } else { |
| 267 # Empty implementation for all other cases. |
| 268 sources += [ "touch/touch_device.cc" ] |
| 269 } |
| 270 |
262 defines = [ "UI_BASE_IMPLEMENTATION" ] | 271 defines = [ "UI_BASE_IMPLEMENTATION" ] |
263 | 272 |
264 deps = [ | 273 deps = [ |
265 "//base", | 274 "//base", |
266 "//base/third_party/dynamic_annotations", | 275 "//base/third_party/dynamic_annotations", |
267 "//base:base_static", | 276 "//base:base_static", |
268 "//base:i18n", | 277 "//base:i18n", |
269 "//net", | 278 "//net", |
270 "//skia", | 279 "//skia", |
271 "//third_party/icu", | 280 "//third_party/icu", |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 ] | 321 ] |
313 } | 322 } |
314 if (!use_x11) { | 323 if (!use_x11) { |
315 sources -= [ | 324 sources -= [ |
316 "x/x11_util.cc", | 325 "x/x11_util.cc", |
317 "x/x11_util.h", | 326 "x/x11_util.h", |
318 "x/x11_util_internal.h", | 327 "x/x11_util_internal.h", |
319 ] | 328 ] |
320 } | 329 } |
321 | 330 |
322 if (!use_ozone) { | |
323 sources -= [ | |
324 "touch/touch_device_ozone.cc", | |
325 ] | |
326 } | |
327 | |
328 if (!use_aura || !is_linux) { | 331 if (!use_aura || !is_linux) { |
329 sources -= [ | 332 sources -= [ |
330 "resource/resource_bundle_auralinux.cc", | 333 "resource/resource_bundle_auralinux.cc", |
331 ] | 334 ] |
332 } | 335 } |
333 | 336 |
334 if (use_aura && is_win) { | 337 if (use_aura && is_win) { |
335 sources -= [ | 338 sources -= [ |
336 "dragdrop/drag_utils_aura.cc", | 339 "dragdrop/drag_utils_aura.cc", |
337 ] | 340 ] |
(...skipping 19 matching lines...) Expand all Loading... |
357 configs += [ | 360 configs += [ |
358 "//build/config/linux:pangocairo", | 361 "//build/config/linux:pangocairo", |
359 ] | 362 ] |
360 } | 363 } |
361 | 364 |
362 if (is_chromeos || (use_aura && is_linux && !use_x11)) { | 365 if (is_chromeos || (use_aura && is_linux && !use_x11)) { |
363 sources += [ | 366 sources += [ |
364 "dragdrop/os_exchange_data_provider_aura.cc", | 367 "dragdrop/os_exchange_data_provider_aura.cc", |
365 "dragdrop/os_exchange_data_provider_aura.h", | 368 "dragdrop/os_exchange_data_provider_aura.h", |
366 ] | 369 ] |
367 sources -= [ | |
368 "touch/touch_device.cc", | |
369 ] | |
370 } | 370 } |
371 | 371 |
372 libs = [] | 372 libs = [] |
373 if (is_win) { | 373 if (is_win) { |
374 deps += [ | 374 deps += [ |
375 "//third_party/wtl", | 375 "//third_party/wtl", |
376 ] | 376 ] |
377 sources -= [ | |
378 "touch/touch_device.cc", | |
379 ] | |
380 cflags = [ | 377 cflags = [ |
381 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int. | 378 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int. |
382 "/wd4324", # Structure was padded due to __declspec(align()), which is | 379 "/wd4324", # Structure was padded due to __declspec(align()), which is |
383 # uninteresting. | 380 # uninteresting. |
384 ] | 381 ] |
385 ldflags = [ | 382 ldflags = [ |
386 "/DELAYLOAD:d2d1.dll", | 383 "/DELAYLOAD:d2d1.dll", |
387 "/DELAYLOAD:d3d10_1.dll", | 384 "/DELAYLOAD:d3d10_1.dll", |
388 "/DELAYLOAD:dwmapi.dll", | 385 "/DELAYLOAD:dwmapi.dll", |
389 ] | 386 ] |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 "//build/config/linux:x11" | 430 "//build/config/linux:x11" |
434 ] | 431 ] |
435 } | 432 } |
436 | 433 |
437 if (use_aura) { | 434 if (use_aura) { |
438 if (use_x11) { | 435 if (use_x11) { |
439 sources += [ | 436 sources += [ |
440 "cursor/cursor_loader_x11.cc", | 437 "cursor/cursor_loader_x11.cc", |
441 "cursor/cursor_loader_x11.h", | 438 "cursor/cursor_loader_x11.h", |
442 "cursor/cursor_x11.cc", | 439 "cursor/cursor_x11.cc", |
443 "touch/touch_device_aurax11.cc", | |
444 ] | 440 ] |
445 if (!is_chromeos) { | 441 if (!is_chromeos) { |
446 # These Aura X11 files aren't used on ChromeOS. | 442 # These Aura X11 files aren't used on ChromeOS. |
447 sources += [ | 443 sources += [ |
448 "dragdrop/os_exchange_data_provider_aurax11.cc", | 444 "dragdrop/os_exchange_data_provider_aurax11.cc", |
449 "dragdrop/os_exchange_data_provider_aurax11.h", | 445 "dragdrop/os_exchange_data_provider_aurax11.h", |
450 ] | 446 ] |
451 } | 447 } |
452 } | 448 } |
453 } | 449 } |
(...skipping 12 matching lines...) Expand all Loading... |
466 | 462 |
467 if (is_android) { | 463 if (is_android) { |
468 sources -= [ | 464 sources -= [ |
469 "default_theme_provider.cc", | 465 "default_theme_provider.cc", |
470 "dragdrop/drag_utils.cc", | 466 "dragdrop/drag_utils.cc", |
471 "dragdrop/drag_utils.h", | 467 "dragdrop/drag_utils.h", |
472 "l10n/l10n_font_util.cc", | 468 "l10n/l10n_font_util.cc", |
473 "models/button_menu_item_model.cc", | 469 "models/button_menu_item_model.cc", |
474 "models/dialog_model.cc", | 470 "models/dialog_model.cc", |
475 "theme_provider.cc", | 471 "theme_provider.cc", |
476 "touch/touch_device.cc", | |
477 "touch/touch_editing_controller.cc", | 472 "touch/touch_editing_controller.cc", |
478 "ui_base_types.cc", | 473 "ui_base_types.cc", |
479 ] | 474 ] |
480 | 475 |
481 deps += [ | 476 deps += [ |
482 ":ui_base_jni_headers", | 477 ":ui_base_jni_headers", |
483 ] | 478 ] |
484 | 479 |
485 libs += [ | 480 libs += [ |
486 "jnigraphics", | 481 "jnigraphics", |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 "../android/java/src/org/chromium/ui/base/DeviceFormFactor.java", | 548 "../android/java/src/org/chromium/ui/base/DeviceFormFactor.java", |
554 "../android/java/src/org/chromium/ui/base/LocalizationUtils.java", | 549 "../android/java/src/org/chromium/ui/base/LocalizationUtils.java", |
555 "../android/java/src/org/chromium/ui/base/SelectFileDialog.java", | 550 "../android/java/src/org/chromium/ui/base/SelectFileDialog.java", |
556 "../android/java/src/org/chromium/ui/base/TouchDevice.java", | 551 "../android/java/src/org/chromium/ui/base/TouchDevice.java", |
557 "../android/java/src/org/chromium/ui/base/ViewAndroid.java", | 552 "../android/java/src/org/chromium/ui/base/ViewAndroid.java", |
558 "../android/java/src/org/chromium/ui/base/WindowAndroid.java", | 553 "../android/java/src/org/chromium/ui/base/WindowAndroid.java", |
559 ] | 554 ] |
560 jni_package = "base" | 555 jni_package = "base" |
561 } | 556 } |
562 } | 557 } |
OLD | NEW |