| 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 16 matching lines...) Expand all Loading... |
| 27 "android/window_android.cc", | 27 "android/window_android.cc", |
| 28 "android/window_android.h", | 28 "android/window_android.h", |
| 29 "android/window_android_compositor.h", | 29 "android/window_android_compositor.h", |
| 30 "android/window_android_observer.h", | 30 "android/window_android_observer.h", |
| 31 "base_window.cc", | 31 "base_window.cc", |
| 32 "base_window.h", | 32 "base_window.h", |
| 33 "clipboard/clipboard.cc", | 33 "clipboard/clipboard.cc", |
| 34 "clipboard/clipboard.h", | 34 "clipboard/clipboard.h", |
| 35 "clipboard/clipboard_android.cc", | 35 "clipboard/clipboard_android.cc", |
| 36 "clipboard/clipboard_android_initialization.h", | 36 "clipboard/clipboard_android_initialization.h", |
| 37 "clipboard/clipboard_aura.cc", | |
| 38 "clipboard/clipboard_aurax11.cc", | |
| 39 "clipboard/clipboard_constants.cc", | 37 "clipboard/clipboard_constants.cc", |
| 40 "clipboard/clipboard_mac.mm", | 38 "clipboard/clipboard_mac.mm", |
| 41 "clipboard/clipboard_types.h", | 39 "clipboard/clipboard_types.h", |
| 42 "clipboard/clipboard_util_win.cc", | 40 "clipboard/clipboard_util_win.cc", |
| 43 "clipboard/clipboard_util_win.h", | 41 "clipboard/clipboard_util_win.h", |
| 44 "clipboard/clipboard_win.cc", | 42 "clipboard/clipboard_win.cc", |
| 45 "clipboard/custom_data_helper.cc", | 43 "clipboard/custom_data_helper.cc", |
| 46 "clipboard/custom_data_helper.h", | 44 "clipboard/custom_data_helper.h", |
| 47 "clipboard/custom_data_helper_linux.cc", | 45 "clipboard/custom_data_helper_linux.cc", |
| 48 "clipboard/custom_data_helper_mac.mm", | 46 "clipboard/custom_data_helper_mac.mm", |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 "cocoa/view_description.h", | 88 "cocoa/view_description.h", |
| 91 "cocoa/view_description.mm", | 89 "cocoa/view_description.mm", |
| 92 "cocoa/window_size_constants.h", | 90 "cocoa/window_size_constants.h", |
| 93 "cocoa/window_size_constants.mm", | 91 "cocoa/window_size_constants.mm", |
| 94 "cursor/cursor.cc", | 92 "cursor/cursor.cc", |
| 95 "cursor/cursor.h", | 93 "cursor/cursor.h", |
| 96 "cursor/cursor_android.cc", | 94 "cursor/cursor_android.cc", |
| 97 "cursor/cursor_loader.h", | 95 "cursor/cursor_loader.h", |
| 98 "cursor/cursor_loader_win.cc", | 96 "cursor/cursor_loader_win.cc", |
| 99 "cursor/cursor_loader_win.h", | 97 "cursor/cursor_loader_win.h", |
| 100 "cursor/cursor_loader_x11.cc", | |
| 101 "cursor/cursor_loader_x11.h", | |
| 102 "cursor/cursor_util.cc", | 98 "cursor/cursor_util.cc", |
| 103 "cursor/cursor_util.h", | 99 "cursor/cursor_util.h", |
| 104 "cursor/cursor_win.cc", | 100 "cursor/cursor_win.cc", |
| 105 "cursor/cursor_x11.cc", | |
| 106 "cursor/cursors_aura.cc", | 101 "cursor/cursors_aura.cc", |
| 107 "cursor/cursors_aura.h", | 102 "cursor/cursors_aura.h", |
| 108 "default_theme_provider.cc", | 103 "default_theme_provider.cc", |
| 109 "default_theme_provider.h", | 104 "default_theme_provider.h", |
| 110 "default_theme_provider_mac.mm", | 105 "default_theme_provider_mac.mm", |
| 111 "device_form_factor_android.cc", | 106 "device_form_factor_android.cc", |
| 112 "device_form_factor_android.h", | 107 "device_form_factor_android.h", |
| 113 "device_form_factor_desktop.cc", | 108 "device_form_factor_desktop.cc", |
| 114 "device_form_factor_ios.mm", | 109 "device_form_factor_ios.mm", |
| 115 "device_form_factor.h", | 110 "device_form_factor.h", |
| 116 "dragdrop/cocoa_dnd_util.h", | 111 "dragdrop/cocoa_dnd_util.h", |
| 117 "dragdrop/cocoa_dnd_util.mm", | 112 "dragdrop/cocoa_dnd_util.mm", |
| 118 "dragdrop/drag_drop_types.h", | 113 "dragdrop/drag_drop_types.h", |
| 119 "dragdrop/drag_drop_types.h", | 114 "dragdrop/drag_drop_types.h", |
| 120 "dragdrop/drag_drop_types_win.cc", | 115 "dragdrop/drag_drop_types_win.cc", |
| 121 "dragdrop/drag_source_win.cc", | 116 "dragdrop/drag_source_win.cc", |
| 122 "dragdrop/drag_source_win.h", | 117 "dragdrop/drag_source_win.h", |
| 123 "dragdrop/drag_utils.cc", | 118 "dragdrop/drag_utils.cc", |
| 124 "dragdrop/drag_utils.h", | 119 "dragdrop/drag_utils.h", |
| 125 "dragdrop/drag_utils_aura.cc", | 120 "dragdrop/drag_utils_aura.cc", |
| 126 "dragdrop/drag_utils_win.cc", | 121 "dragdrop/drag_utils_win.cc", |
| 127 "dragdrop/drop_target_event.cc", | 122 "dragdrop/drop_target_event.cc", |
| 128 "dragdrop/drop_target_event.h", | 123 "dragdrop/drop_target_event.h", |
| 129 "dragdrop/drop_target_win.cc", | 124 "dragdrop/drop_target_win.cc", |
| 130 "dragdrop/drop_target_win.h", | 125 "dragdrop/drop_target_win.h", |
| 131 "dragdrop/file_info.cc", | 126 "dragdrop/file_info.cc", |
| 132 "dragdrop/file_info.h", | 127 "dragdrop/file_info.h", |
| 133 "dragdrop/os_exchange_data.cc", | 128 "dragdrop/os_exchange_data.cc", |
| 134 "dragdrop/os_exchange_data.h", | 129 "dragdrop/os_exchange_data.h", |
| 135 "dragdrop/os_exchange_data_provider_aura.cc", | |
| 136 "dragdrop/os_exchange_data_provider_aura.h", | |
| 137 "dragdrop/os_exchange_data_provider_aurax11.cc", | |
| 138 "dragdrop/os_exchange_data_provider_aurax11.h", | |
| 139 "dragdrop/os_exchange_data_provider_win.cc", | 130 "dragdrop/os_exchange_data_provider_win.cc", |
| 140 "dragdrop/os_exchange_data_provider_win.h", | 131 "dragdrop/os_exchange_data_provider_win.h", |
| 141 "hit_test.h", | 132 "hit_test.h", |
| 142 "l10n/formatter.cc", | 133 "l10n/formatter.cc", |
| 143 "l10n/formatter.h", | 134 "l10n/formatter.h", |
| 144 "l10n/l10n_font_util.cc", | 135 "l10n/l10n_font_util.cc", |
| 145 "l10n/l10n_font_util.h", | 136 "l10n/l10n_font_util.h", |
| 146 "l10n/l10n_util.cc", | 137 "l10n/l10n_util.cc", |
| 147 "l10n/l10n_util.h", | 138 "l10n/l10n_util.h", |
| 148 "l10n/l10n_util_android.cc", | 139 "l10n/l10n_util_android.cc", |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 "resource/resource_data_dll_win.cc", | 190 "resource/resource_data_dll_win.cc", |
| 200 "resource/resource_data_dll_win.h", | 191 "resource/resource_data_dll_win.h", |
| 201 "resource/resource_handle.h", | 192 "resource/resource_handle.h", |
| 202 "text/bytes_formatting.cc", | 193 "text/bytes_formatting.cc", |
| 203 "text/bytes_formatting.h", | 194 "text/bytes_formatting.h", |
| 204 "theme_provider.cc", | 195 "theme_provider.cc", |
| 205 "theme_provider.h", | 196 "theme_provider.h", |
| 206 "touch/touch_device.cc", | 197 "touch/touch_device.cc", |
| 207 "touch/touch_device.h", | 198 "touch/touch_device.h", |
| 208 "touch/touch_device_android.cc", | 199 "touch/touch_device_android.cc", |
| 209 "touch/touch_device_aurax11.cc", | |
| 210 "touch/touch_device_ozone.cc", | 200 "touch/touch_device_ozone.cc", |
| 211 "touch/touch_device_win.cc", | 201 "touch/touch_device_win.cc", |
| 212 "touch/touch_editing_controller.cc", | 202 "touch/touch_editing_controller.cc", |
| 213 "touch/touch_editing_controller.h", | 203 "touch/touch_editing_controller.h", |
| 214 "touch/touch_enabled.cc", | 204 "touch/touch_enabled.cc", |
| 215 "touch/touch_enabled.h", | 205 "touch/touch_enabled.h", |
| 216 "ui_base_exports.cc", | 206 "ui_base_exports.cc", |
| 217 "ui_base_paths.cc", | 207 "ui_base_paths.cc", |
| 218 "ui_base_paths.h", | 208 "ui_base_paths.h", |
| 219 "ui_base_switches.cc", | 209 "ui_base_switches.cc", |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 268 |
| 279 deps = [ | 269 deps = [ |
| 280 "//base", | 270 "//base", |
| 281 "//base/third_party/dynamic_annotations", | 271 "//base/third_party/dynamic_annotations", |
| 282 "//base:base_static", | 272 "//base:base_static", |
| 283 "//base:i18n", | 273 "//base:i18n", |
| 284 "//net", | 274 "//net", |
| 285 "//skia", | 275 "//skia", |
| 286 "//third_party/icu", | 276 "//third_party/icu", |
| 287 "//ui/resources", | 277 "//ui/resources", |
| 278 "//ui/resources:unscaled_resources", |
| 288 "//ui/strings", | 279 "//ui/strings", |
| 289 "//ui/webui/resources", | 280 "//ui/webui/resources", |
| 290 "//url", | 281 "//url", |
| 291 ] | 282 ] |
| 292 | 283 |
| 293 if (is_ios) { | 284 if (is_ios) { |
| 294 sources += [ | 285 sources += [ |
| 295 "l10n/l10n_util_mac.h", | 286 "l10n/l10n_util_mac.h", |
| 296 "l10n/l10n_util_mac.mm", | 287 "l10n/l10n_util_mac.mm", |
| 297 ] | 288 ] |
| 298 } | 289 } |
| 299 | 290 |
| 300 if (toolkit_views) { | 291 if (toolkit_views) { |
| 301 deps += [ | 292 deps += [ |
| 302 "//ui/events", | 293 "//ui/events", |
| 303 ] | 294 ] |
| 304 } | 295 } |
| 305 | 296 |
| 306 if (use_aura) { | 297 if (use_aura) { |
| 307 deps += [ | 298 deps += [ |
| 308 "//ui/events", | 299 "//ui/events", |
| 309 ] | 300 ] |
| 310 } else { | 301 } else { |
| 311 sources -= [ | 302 sources -= [ |
| 312 "cursor/cursor.cc", | 303 "cursor/cursor.cc", |
| 313 "cursor/cursor.h", | 304 "cursor/cursor.h", |
| 314 "cursor/cursor_loader_x11.cc", | |
| 315 "cursor/cursor_loader_x11.h", | |
| 316 "cursor/cursor_x11.cc", | |
| 317 "x/selection_owner.cc", | 305 "x/selection_owner.cc", |
| 318 "x/selection_owner.h", | 306 "x/selection_owner.h", |
| 319 "x/selection_requestor.cc", | 307 "x/selection_requestor.cc", |
| 320 "x/selection_requestor.h", | 308 "x/selection_requestor.h", |
| 321 "x/selection_utils.cc", | 309 "x/selection_utils.cc", |
| 322 "x/selection_utils.h", | 310 "x/selection_utils.h", |
| 323 ] | 311 ] |
| 324 } | 312 } |
| 325 | 313 |
| 326 if (!use_aura || !is_linux) { | 314 if (!use_aura || !is_linux) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 349 "dragdrop/drag_utils.h", | 337 "dragdrop/drag_utils.h", |
| 350 ] | 338 ] |
| 351 } | 339 } |
| 352 } | 340 } |
| 353 | 341 |
| 354 if (use_pango) { | 342 if (use_pango) { |
| 355 configs += [ | 343 configs += [ |
| 356 "//build/config/linux:pangocairo", | 344 "//build/config/linux:pangocairo", |
| 357 ] | 345 ] |
| 358 } | 346 } |
| 359 if (is_win || use_clipboard_aurax11) { | |
| 360 sources -= [ | |
| 361 "clipboard/clipboard_aura.cc", | |
| 362 ] | |
| 363 } else { | |
| 364 sources -= [ | |
| 365 "clipboard/clipboard_aurax11.cc", | |
| 366 ] | |
| 367 } | |
| 368 | 347 |
| 369 if (is_chromeos || (use_aura && is_linux && !use_x11)) { | 348 if (is_chromeos || (use_aura && is_linux && !use_x11)) { |
| 370 sources -= [ | 349 sources += [ |
| 371 "dragdrop/os_exchange_data_provider_aurax11.cc", | |
| 372 "touch/touch_device.cc", | |
| 373 ] | |
| 374 } else { | |
| 375 sources -= [ | |
| 376 "dragdrop/os_exchange_data_provider_aura.cc", | 350 "dragdrop/os_exchange_data_provider_aura.cc", |
| 377 "dragdrop/os_exchange_data_provider_aura.h", | 351 "dragdrop/os_exchange_data_provider_aura.h", |
| 378 "touch/touch_device_aurax11.cc", | 352 ] |
| 353 sources -= [ |
| 354 "touch/touch_device.cc", |
| 379 ] | 355 ] |
| 380 } | 356 } |
| 381 | 357 |
| 382 libs = [] | 358 libs = [] |
| 383 if (is_win) { | 359 if (is_win) { |
| 384 deps += [ | 360 deps += [ |
| 385 "//third_party/wtl", | 361 "//third_party/wtl", |
| 386 ] | 362 ] |
| 387 sources -= [ | 363 sources -= [ |
| 388 "touch/touch_device.cc", | 364 "touch/touch_device.cc", |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 #'all_dependent_settings': { | 413 #'all_dependent_settings': { |
| 438 #'ldflags': [ | 414 #'ldflags': [ |
| 439 #'-L<(PRODUCT_DIR)', | 415 #'-L<(PRODUCT_DIR)', |
| 440 #], | 416 #], |
| 441 #}, | 417 #}, |
| 442 configs += [ | 418 configs += [ |
| 443 "//build/config/linux:x11" | 419 "//build/config/linux:x11" |
| 444 ] | 420 ] |
| 445 } | 421 } |
| 446 | 422 |
| 423 if (use_aura) { |
| 424 if (use_x11) { |
| 425 sources += [ |
| 426 "cursor/cursor_loader_x11.cc", |
| 427 "cursor/cursor_loader_x11.h", |
| 428 "cursor/cursor_x11.cc", |
| 429 "touch/touch_device_aurax11.cc", |
| 430 ] |
| 431 if (!is_chromeos) { |
| 432 # These Aura X11 files aren't used on ChromeOS. |
| 433 sources += [ |
| 434 "dragdrop/os_exchange_data_provider_aurax11.cc", |
| 435 "dragdrop/os_exchange_data_provider_aurax11.h", |
| 436 ] |
| 437 } |
| 438 } |
| 439 } |
| 440 |
| 447 if (!toolkit_views) { | 441 if (!toolkit_views) { |
| 448 sources -= [ | 442 sources -= [ |
| 449 "dragdrop/drag_drop_types.h", | 443 "dragdrop/drag_drop_types.h", |
| 450 "dragdrop/drop_target_event.cc", | 444 "dragdrop/drop_target_event.cc", |
| 451 "dragdrop/drop_target_event.h", | 445 "dragdrop/drop_target_event.h", |
| 452 "dragdrop/os_exchange_data.cc", | 446 "dragdrop/os_exchange_data.cc", |
| 453 "dragdrop/os_exchange_data.h", | 447 "dragdrop/os_exchange_data.h", |
| 454 "nine_image_painter_factory.cc", | 448 "nine_image_painter_factory.cc", |
| 455 "nine_image_painter_factory.h", | 449 "nine_image_painter_factory.h", |
| 456 ] | 450 ] |
| (...skipping 28 matching lines...) Expand all Loading... |
| 485 #"//ui/android:ui_java", | 479 #"//ui/android:ui_java", |
| 486 ] | 480 ] |
| 487 } | 481 } |
| 488 | 482 |
| 489 if (is_android && !use_aura) { | 483 if (is_android && !use_aura) { |
| 490 sources -= [ | 484 sources -= [ |
| 491 "cursor/cursor_android.cc", | 485 "cursor/cursor_android.cc", |
| 492 ] | 486 ] |
| 493 } | 487 } |
| 494 | 488 |
| 495 if (is_android && use_aura) { | 489 # Aura clipboard. |
| 496 sources -= [ | 490 if (use_aura) { |
| 497 "clipboard/clipboard_aura.cc", | 491 if (use_x11) { |
| 498 ] | 492 sources += [ "clipboard/clipboard_aurax11.cc" ] |
| 493 } else if (!is_win) { |
| 494 # This file is used for all non-X11, non-Windows aura Builds. |
| 495 sources += [ "clipboard/clipboard_aura.cc" ] |
| 496 } |
| 499 } | 497 } |
| 500 | 498 |
| 501 if (is_android || is_ios) { | 499 if (is_android || is_ios) { |
| 502 sources -= [ | 500 sources -= [ |
| 503 "device_form_factor_desktop.cc", | 501 "device_form_factor_desktop.cc", |
| 504 ] | 502 ] |
| 505 } | 503 } |
| 506 } | 504 } |
| 507 | 505 |
| 508 source_set("ui_base_test_support") { | 506 source_set("ui_base_test_support") { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 "../android/java/src/org/chromium/ui/base/DeviceFormFactor.java", | 539 "../android/java/src/org/chromium/ui/base/DeviceFormFactor.java", |
| 542 "../android/java/src/org/chromium/ui/base/LocalizationUtils.java", | 540 "../android/java/src/org/chromium/ui/base/LocalizationUtils.java", |
| 543 "../android/java/src/org/chromium/ui/base/SelectFileDialog.java", | 541 "../android/java/src/org/chromium/ui/base/SelectFileDialog.java", |
| 544 "../android/java/src/org/chromium/ui/base/TouchDevice.java", | 542 "../android/java/src/org/chromium/ui/base/TouchDevice.java", |
| 545 "../android/java/src/org/chromium/ui/base/ViewAndroid.java", | 543 "../android/java/src/org/chromium/ui/base/ViewAndroid.java", |
| 546 "../android/java/src/org/chromium/ui/base/WindowAndroid.java", | 544 "../android/java/src/org/chromium/ui/base/WindowAndroid.java", |
| 547 ] | 545 ] |
| 548 jni_package = "base" | 546 jni_package = "base" |
| 549 } | 547 } |
| 550 } | 548 } |
| OLD | NEW |