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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//content/browser/browser.gni") | 7 import("//content/browser/browser.gni") |
8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 9 import("//mojo/public/tools/bindings/mojom.gni") |
| 10 |
| 11 mojom("interfaces") { |
| 12 sources = [ |
| 13 "render_widget_view.mojom" |
| 14 ] |
| 15 |
| 16 import_dirs = [ |
| 17 |
| 18 get_path_info("../..", "abspath"), |
| 19 "//mojo/services", |
| 20 ] |
| 21 |
| 22 deps = [ |
| 23 "//ui/mojo/geometry:interfaces", |
| 24 "//ui/mojo/ime:interfaces", |
| 25 ] |
| 26 } |
9 | 27 |
10 source_set("browser") { | 28 source_set("browser") { |
11 # Only the public target should depend on this. All other targets (even | 29 # Only the public target should depend on this. All other targets (even |
12 # internal content ones) should depend on the public one. | 30 # internal content ones) should depend on the public one. |
13 visibility = [ "//content/public/browser:browser_sources" ] | 31 visibility = [ "//content/public/browser:browser_sources" ] |
14 | 32 |
15 configs += [ | 33 configs += [ |
16 "//build/config:precompiled_headers", | 34 "//build/config:precompiled_headers", |
17 "//content/public/common:mojo_shell_client", | 35 "//content/public/common:mojo_shell_client", |
18 ] | 36 ] |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 "media/capture/desktop_capture_device_uma_types.cc", | 219 "media/capture/desktop_capture_device_uma_types.cc", |
202 "media/capture/desktop_capture_device_uma_types.h", | 220 "media/capture/desktop_capture_device_uma_types.h", |
203 ] | 221 ] |
204 if (use_aura) { | 222 if (use_aura) { |
205 sources += [ | 223 sources += [ |
206 "media/capture/aura_window_capture_machine.cc", | 224 "media/capture/aura_window_capture_machine.cc", |
207 "media/capture/aura_window_capture_machine.h", | 225 "media/capture/aura_window_capture_machine.h", |
208 "media/capture/desktop_capture_device_aura.cc", | 226 "media/capture/desktop_capture_device_aura.cc", |
209 "media/capture/desktop_capture_device_aura.h", | 227 "media/capture/desktop_capture_device_aura.h", |
210 ] | 228 ] |
| 229 deps += [ ":interfaces" ] |
211 } | 230 } |
212 defines += [ "ENABLE_SCREEN_CAPTURE=1" ] | 231 defines += [ "ENABLE_SCREEN_CAPTURE=1" ] |
213 deps += [ "//third_party/webrtc/modules/desktop_capture" ] | 232 deps += [ "//third_party/webrtc/modules/desktop_capture" ] |
214 } | 233 } |
215 } | 234 } |
216 | 235 |
217 if (is_win) { | 236 if (is_win) { |
218 sources -= [ | 237 sources -= [ |
219 "device_sensors/data_fetcher_shared_memory_default.cc", | 238 "device_sensors/data_fetcher_shared_memory_default.cc", |
220 "geolocation/empty_wifi_data_provider.cc", | 239 "geolocation/empty_wifi_data_provider.cc", |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 sources -= [ "device_sensors/data_fetcher_shared_memory_default.cc" ] | 435 sources -= [ "device_sensors/data_fetcher_shared_memory_default.cc" ] |
417 deps += [ | 436 deps += [ |
418 "//chromeos", | 437 "//chromeos", |
419 "//chromeos:power_manager_proto", | 438 "//chromeos:power_manager_proto", |
420 ] | 439 ] |
421 } | 440 } |
422 | 441 |
423 if (use_aura) { | 442 if (use_aura) { |
424 deps += [ | 443 deps += [ |
425 "//components/bitmap_uploader", | 444 "//components/bitmap_uploader", |
| 445 "//components/mus/public/cpp", |
| 446 "//components/mus/public/interfaces", |
426 "//ui/aura", | 447 "//ui/aura", |
427 "//ui/aura_extra", | 448 "//ui/aura_extra", |
428 "//ui/strings", | 449 "//ui/strings", |
429 "//ui/views/mus:for_component", | 450 "//ui/views/mus:for_component", |
430 "//ui/wm", | 451 "//ui/wm", |
431 ] | 452 ] |
432 sources += [ | 453 sources += [ |
433 "compositor/software_output_device_mus.cc", | 454 "compositor/software_output_device_mus.cc", |
434 "compositor/software_output_device_mus.h", | 455 "compositor/software_output_device_mus.h", |
435 "renderer_host/render_widget_host_view_mus.cc", | 456 "renderer_host/render_widget_host_view_mus.cc", |
436 "renderer_host/render_widget_host_view_mus.h", | 457 "renderer_host/render_widget_host_view_mus.h", |
| 458 "render_widget_view_service_listener.cc", |
| 459 "render_widget_view_service_listener.h", |
437 "web_contents/web_contents_view_mus.cc", | 460 "web_contents/web_contents_view_mus.cc", |
438 "web_contents/web_contents_view_mus.h", | 461 "web_contents/web_contents_view_mus.h", |
439 ] | 462 ] |
440 defines += [ "MOJO_RUNNER_CLIENT" ] | 463 defines += [ "MOJO_RUNNER_CLIENT" ] |
441 } else { # Not aura. | 464 } else { # Not aura. |
442 sources -= [ | 465 sources -= [ |
443 "media/capture/cursor_renderer_aura.cc", | 466 "media/capture/cursor_renderer_aura.cc", |
444 "media/capture/cursor_renderer_aura.h", | 467 "media/capture/cursor_renderer_aura.h", |
445 "renderer_host/compositor_resize_lock_aura.cc", | 468 "renderer_host/compositor_resize_lock_aura.cc", |
446 "renderer_host/compositor_resize_lock_aura.h", | 469 "renderer_host/compositor_resize_lock_aura.h", |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 | 564 |
542 if (enable_webvr && is_android) { | 565 if (enable_webvr && is_android) { |
543 sources += [ | 566 sources += [ |
544 "vr/android/cardboard/cardboard_vr_device.cc", | 567 "vr/android/cardboard/cardboard_vr_device.cc", |
545 "vr/android/cardboard/cardboard_vr_device.h", | 568 "vr/android/cardboard/cardboard_vr_device.h", |
546 "vr/android/cardboard/cardboard_vr_device_provider.cc", | 569 "vr/android/cardboard/cardboard_vr_device_provider.cc", |
547 "vr/android/cardboard/cardboard_vr_device_provider.h", | 570 "vr/android/cardboard/cardboard_vr_device_provider.h", |
548 ] | 571 ] |
549 } | 572 } |
550 } | 573 } |
OLD | NEW |