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

Side by Side Diff: third_party/WebKit/public/BUILD.gn

Issue 2506813003: Use new wrapper types for web_bluetooth.mojom (Closed)
Patch Set: address comments Created 4 years 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 unified diff | Download patch
OLDNEW
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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//mojo/public/tools/bindings/mojom.gni") 6 import("//mojo/public/tools/bindings/mojom.gni")
7 import("//third_party/WebKit/public/public_features.gni") 7 import("//third_party/WebKit/public/public_features.gni")
8 import("//third_party/WebKit/Source/config.gni") 8 import("//third_party/WebKit/Source/config.gni")
9 import("//third_party/WebKit/Source/core/core.gni") 9 import("//third_party/WebKit/Source/core/core.gni")
10 import("//tools/grit/grit_rule.gni") 10 import("//tools/grit/grit_rule.gni")
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 "grit/blink_image_resources.h", 637 "grit/blink_image_resources.h",
638 "blink_image_resources_100_percent.pak", 638 "blink_image_resources_100_percent.pak",
639 "blink_image_resources_200_percent.pak", 639 "blink_image_resources_200_percent.pak",
640 ] 640 ]
641 } 641 }
642 642
643 mojom("mojo_bindings") { 643 mojom("mojo_bindings") {
644 sources = [ 644 sources = [
645 "platform/mime_registry.mojom", 645 "platform/mime_registry.mojom",
646 "platform/modules/background_sync/background_sync.mojom", 646 "platform/modules/background_sync/background_sync.mojom",
647 "platform/modules/bluetooth/web_bluetooth.mojom",
648 "platform/modules/broadcastchannel/broadcast_channel.mojom", 647 "platform/modules/broadcastchannel/broadcast_channel.mojom",
649 "platform/modules/budget_service/budget_service.mojom", 648 "platform/modules/budget_service/budget_service.mojom",
650 "platform/modules/hyphenation/hyphenation.mojom", 649 "platform/modules/hyphenation/hyphenation.mojom",
651 "platform/modules/notifications/notification.mojom", 650 "platform/modules/notifications/notification.mojom",
652 "platform/modules/notifications/notification_service.mojom", 651 "platform/modules/notifications/notification_service.mojom",
653 "platform/modules/sensitive_input_visibility/sensitive_input_visibility_serv ice.mojom", 652 "platform/modules/sensitive_input_visibility/sensitive_input_visibility_serv ice.mojom",
654 "platform/modules/serviceworker/service_worker_event_status.mojom", 653 "platform/modules/serviceworker/service_worker_event_status.mojom",
655 ] 654 ]
656 public_deps = [ 655 public_deps = [
657 ":android_mojo_bindings", 656 ":android_mojo_bindings",
658 ":new_wrapper_types_mojo_bindings", 657 ":new_wrapper_types_mojo_bindings",
659 "//device/bluetooth/public/interfaces",
660 "//mojo/common:common_custom_types", 658 "//mojo/common:common_custom_types",
661 "//url/mojo:url_mojom_origin", 659 "//url/mojo:url_mojom_origin",
662 ] 660 ]
663 661
664 use_new_wrapper_types = false 662 use_new_wrapper_types = false
665 663
666 # The chromium variant must be linked with content and use the same export 664 # The chromium variant must be linked with content and use the same export
667 # settings in component build because of the WebBluetoothDeviceId typemap 665 # settings in component build because of the WebBluetoothDeviceId typemap
668 # inside content. 666 # inside content.
669 export_class_attribute = "CONTENT_EXPORT" 667 export_class_attribute = "CONTENT_EXPORT"
670 export_define = "CONTENT_IMPLEMENTATION=1" 668 export_define = "CONTENT_IMPLEMENTATION=1"
671 export_header = "content/common/content_export.h" 669 export_header = "content/common/content_export.h"
672 670
673 # Similarly, the blink variant must be linked with the platform component 671 # Similarly, the blink variant must be linked with the platform component
674 # since it uses types from it in its typemaps. 672 # since it uses types from it in its typemaps.
675 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" 673 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
676 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" 674 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
677 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" 675 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
678 } 676 }
679 677
680 mojom("new_wrapper_types_mojo_bindings") { 678 mojom("new_wrapper_types_mojo_bindings") {
681 sources = [ 679 sources = [
682 "platform/modules/app_banner/app_banner.mojom", 680 "platform/modules/app_banner/app_banner.mojom",
681 "platform/modules/bluetooth/web_bluetooth.mojom",
683 "platform/modules/mediasession/media_session.mojom", 682 "platform/modules/mediasession/media_session.mojom",
684 "platform/modules/permissions/permission.mojom", 683 "platform/modules/permissions/permission.mojom",
685 "platform/modules/permissions/permission_status.mojom", 684 "platform/modules/permissions/permission_status.mojom",
686 "platform/modules/presentation/presentation.mojom", 685 "platform/modules/presentation/presentation.mojom",
687 "platform/modules/shapedetection/shapedetection.mojom", 686 "platform/modules/shapedetection/shapedetection.mojom",
688 "platform/modules/websockets/websocket.mojom", 687 "platform/modules/websockets/websocket.mojom",
689 "platform/referrer.mojom", 688 "platform/referrer.mojom",
690 "web/window_features.mojom", 689 "web/window_features.mojom",
691 ] 690 ]
692 public_deps = [ 691 public_deps = [
692 "//device/bluetooth/public/interfaces",
693 "//mojo/common:common_custom_types", 693 "//mojo/common:common_custom_types",
694 "//ui/gfx/geometry/mojo", 694 "//ui/gfx/geometry/mojo",
695 "//ui/gfx/geometry/mojo:mojo", 695 "//ui/gfx/geometry/mojo:mojo",
696 "//url/mojo:url_mojom_gurl", 696 "//url/mojo:url_mojom_gurl",
697 "//url/mojo:url_mojom_origin", 697 "//url/mojo:url_mojom_origin",
698 ] 698 ]
699 699
700 # See comment above. 700 # See comment above.
701 export_class_attribute = "CONTENT_EXPORT" 701 export_class_attribute = "CONTENT_EXPORT"
702 export_define = "CONTENT_IMPLEMENTATION=1" 702 export_define = "CONTENT_IMPLEMENTATION=1"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 # relegated to a separate target to avoid duplication between the variants. 759 # relegated to a separate target to avoid duplication between the variants.
760 source_set("shared_typemap_traits") { 760 source_set("shared_typemap_traits") {
761 visibility = [ ":*" ] 761 visibility = [ ":*" ]
762 sources = [ 762 sources = [
763 "web/WindowFeaturesStructTraits.cpp", 763 "web/WindowFeaturesStructTraits.cpp",
764 ] 764 ]
765 deps = [ 765 deps = [
766 ":new_wrapper_types_mojo_bindings_shared__generator", 766 ":new_wrapper_types_mojo_bindings_shared__generator",
767 ] 767 ]
768 } 768 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698