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

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

Issue 2506813003: Use new wrapper types for web_bluetooth.mojom (Closed)
Patch Set: merge master and resolve conflicts 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 source = "blink_image_resources.grd" 634 source = "blink_image_resources.grd"
635 outputs = [ 635 outputs = [
636 "grit/blink_image_resources.h", 636 "grit/blink_image_resources.h",
637 "blink_image_resources_100_percent.pak", 637 "blink_image_resources_100_percent.pak",
638 "blink_image_resources_200_percent.pak", 638 "blink_image_resources_200_percent.pak",
639 ] 639 ]
640 } 640 }
641 641
642 mojom("mojo_bindings") { 642 mojom("mojo_bindings") {
643 sources = [ 643 sources = [
644 "platform/modules/bluetooth/web_bluetooth.mojom",
645 ]
646 public_deps = [
647 ":android_mojo_bindings",
648 ":new_wrapper_types_mojo_bindings",
649 "//device/bluetooth/public/interfaces",
650 "//mojo/common:common_custom_types",
651 "//url/mojo:url_mojom_origin",
652 ]
653
654 use_new_wrapper_types = false
655
656 # The chromium variant must be linked with content and use the same export
657 # settings in component build because of the WebBluetoothDeviceId typemap
658 # inside content.
659 export_class_attribute = "CONTENT_EXPORT"
660 export_define = "CONTENT_IMPLEMENTATION=1"
661 export_header = "content/common/content_export.h"
662
663 # Similarly, the blink variant must be linked with the platform component
664 # since it uses types from it in its typemaps.
665 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
666 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
667 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
668 }
669
670 mojom("new_wrapper_types_mojo_bindings") {
671 sources = [
672 "platform/mime_registry.mojom", 644 "platform/mime_registry.mojom",
673 "platform/modules/app_banner/app_banner.mojom", 645 "platform/modules/app_banner/app_banner.mojom",
674 "platform/modules/background_sync/background_sync.mojom", 646 "platform/modules/background_sync/background_sync.mojom",
647 "platform/modules/bluetooth/web_bluetooth.mojom",
675 "platform/modules/broadcastchannel/broadcast_channel.mojom", 648 "platform/modules/broadcastchannel/broadcast_channel.mojom",
676 "platform/modules/budget_service/budget_service.mojom", 649 "platform/modules/budget_service/budget_service.mojom",
677 "platform/modules/hyphenation/hyphenation.mojom", 650 "platform/modules/hyphenation/hyphenation.mojom",
678 "platform/modules/mediasession/media_session.mojom", 651 "platform/modules/mediasession/media_session.mojom",
679 "platform/modules/notifications/notification.mojom", 652 "platform/modules/notifications/notification.mojom",
680 "platform/modules/notifications/notification_service.mojom", 653 "platform/modules/notifications/notification_service.mojom",
681 "platform/modules/permissions/permission.mojom", 654 "platform/modules/permissions/permission.mojom",
682 "platform/modules/permissions/permission_status.mojom", 655 "platform/modules/permissions/permission_status.mojom",
683 "platform/modules/presentation/presentation.mojom", 656 "platform/modules/presentation/presentation.mojom",
684 "platform/modules/screen_orientation/screen_orientation_lock_types.mojom", 657 "platform/modules/screen_orientation/screen_orientation_lock_types.mojom",
685 "platform/modules/sensitive_input_visibility/sensitive_input_visibility_serv ice.mojom", 658 "platform/modules/sensitive_input_visibility/sensitive_input_visibility_serv ice.mojom",
686 "platform/modules/serviceworker/service_worker_event_status.mojom", 659 "platform/modules/serviceworker/service_worker_event_status.mojom",
687 "platform/modules/shapedetection/shapedetection.mojom", 660 "platform/modules/shapedetection/shapedetection.mojom",
688 "platform/modules/websockets/websocket.mojom", 661 "platform/modules/websockets/websocket.mojom",
689 "platform/referrer.mojom", 662 "platform/referrer.mojom",
690 "web/window_features.mojom", 663 "web/window_features.mojom",
691 ] 664 ]
692 public_deps = [ 665 public_deps = [
666 ":android_mojo_bindings",
667 "//device/bluetooth/public/interfaces",
693 "//mojo/common:common_custom_types", 668 "//mojo/common:common_custom_types",
694 "//ui/gfx/geometry/mojo", 669 "//ui/gfx/geometry/mojo",
695 "//ui/gfx/geometry/mojo:mojo", 670 "//ui/gfx/geometry/mojo:mojo",
696 "//url/mojo:url_mojom_gurl", 671 "//url/mojo:url_mojom_gurl",
697 "//url/mojo:url_mojom_origin", 672 "//url/mojo:url_mojom_origin",
698 ] 673 ]
699 674
700 # See comment above. 675 # The chromium variant must be linked with content and use the same export
676 # settings in component build because of the WebBluetoothDeviceId typemap
677 # inside content.
701 export_class_attribute = "CONTENT_EXPORT" 678 export_class_attribute = "CONTENT_EXPORT"
702 export_define = "CONTENT_IMPLEMENTATION=1" 679 export_define = "CONTENT_IMPLEMENTATION=1"
703 export_header = "content/common/content_export.h" 680 export_header = "content/common/content_export.h"
681
682 # Similarly, the blink variant must be linked with the platform component
683 # since it uses types from it in its typemaps.
704 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" 684 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
705 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" 685 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
706 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" 686 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
707 } 687 }
708 688
709 mojom("android_mojo_bindings") { 689 mojom("android_mojo_bindings") {
710 sources = [ 690 sources = [
711 "platform/modules/webshare/webshare.mojom", 691 "platform/modules/webshare/webshare.mojom",
712 ] 692 ]
713 public_deps = [ 693 public_deps = [
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 734
755 # Some mojom typemaps are shared between Chromium and Blink variants and 735 # Some mojom typemaps are shared between Chromium and Blink variants and
756 # therefore require some shared traits implementation. These definitions are 736 # therefore require some shared traits implementation. These definitions are
757 # relegated to a separate target to avoid duplication between the variants. 737 # relegated to a separate target to avoid duplication between the variants.
758 source_set("shared_typemap_traits") { 738 source_set("shared_typemap_traits") {
759 visibility = [ ":*" ] 739 visibility = [ ":*" ]
760 sources = [ 740 sources = [
761 "web/WindowFeaturesStructTraits.cpp", 741 "web/WindowFeaturesStructTraits.cpp",
762 ] 742 ]
763 deps = [ 743 deps = [
764 ":new_wrapper_types_mojo_bindings_shared__generator", 744 ":mojo_bindings_shared__generator",
765 ] 745 ]
766 } 746 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698