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

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

Issue 2522553003: Mojo C++ bindings: switch WebKit mojom targets to use STL/WTF types. (Closed)
Patch Set: . 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
« no previous file with comments | « third_party/WebKit/Source/modules/budget/BudgetService.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/mime_registry.mojom",
645 "platform/modules/background_sync/background_sync.mojom",
646 "platform/modules/bluetooth/web_bluetooth.mojom", 644 "platform/modules/bluetooth/web_bluetooth.mojom",
647 "platform/modules/broadcastchannel/broadcast_channel.mojom",
648 "platform/modules/budget_service/budget_service.mojom",
649 "platform/modules/hyphenation/hyphenation.mojom",
650 "platform/modules/notifications/notification.mojom",
651 "platform/modules/notifications/notification_service.mojom",
652 "platform/modules/screen_orientation/screen_orientation_lock_types.mojom",
653 "platform/modules/sensitive_input_visibility/sensitive_input_visibility_serv ice.mojom",
654 "platform/modules/serviceworker/service_worker_event_status.mojom",
655 ] 645 ]
656 public_deps = [ 646 public_deps = [
657 ":android_mojo_bindings", 647 ":android_mojo_bindings",
658 ":new_wrapper_types_mojo_bindings", 648 ":new_wrapper_types_mojo_bindings",
659 "//device/bluetooth/public/interfaces", 649 "//device/bluetooth/public/interfaces",
660 "//mojo/common:common_custom_types", 650 "//mojo/common:common_custom_types",
661 "//url/mojo:url_mojom_origin", 651 "//url/mojo:url_mojom_origin",
662 ] 652 ]
663 653
664 use_new_wrapper_types = false 654 use_new_wrapper_types = false
665 655
666 # The chromium variant must be linked with content and use the same export 656 # The chromium variant must be linked with content and use the same export
667 # settings in component build because of the WebBluetoothDeviceId typemap 657 # settings in component build because of the WebBluetoothDeviceId typemap
668 # inside content. 658 # inside content.
669 export_class_attribute = "CONTENT_EXPORT" 659 export_class_attribute = "CONTENT_EXPORT"
670 export_define = "CONTENT_IMPLEMENTATION=1" 660 export_define = "CONTENT_IMPLEMENTATION=1"
671 export_header = "content/common/content_export.h" 661 export_header = "content/common/content_export.h"
672 662
673 # Similarly, the blink variant must be linked with the platform component 663 # Similarly, the blink variant must be linked with the platform component
674 # since it uses types from it in its typemaps. 664 # since it uses types from it in its typemaps.
675 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" 665 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
676 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" 666 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
677 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" 667 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
678 } 668 }
679 669
680 mojom("new_wrapper_types_mojo_bindings") { 670 mojom("new_wrapper_types_mojo_bindings") {
681 sources = [ 671 sources = [
672 "platform/mime_registry.mojom",
682 "platform/modules/app_banner/app_banner.mojom", 673 "platform/modules/app_banner/app_banner.mojom",
674 "platform/modules/background_sync/background_sync.mojom",
675 "platform/modules/broadcastchannel/broadcast_channel.mojom",
676 "platform/modules/budget_service/budget_service.mojom",
677 "platform/modules/hyphenation/hyphenation.mojom",
683 "platform/modules/mediasession/media_session.mojom", 678 "platform/modules/mediasession/media_session.mojom",
679 "platform/modules/notifications/notification.mojom",
680 "platform/modules/notifications/notification_service.mojom",
684 "platform/modules/permissions/permission.mojom", 681 "platform/modules/permissions/permission.mojom",
685 "platform/modules/permissions/permission_status.mojom", 682 "platform/modules/permissions/permission_status.mojom",
686 "platform/modules/presentation/presentation.mojom", 683 "platform/modules/presentation/presentation.mojom",
684 "platform/modules/screen_orientation/screen_orientation_lock_types.mojom",
685 "platform/modules/sensitive_input_visibility/sensitive_input_visibility_serv ice.mojom",
686 "platform/modules/serviceworker/service_worker_event_status.mojom",
687 "platform/modules/shapedetection/shapedetection.mojom", 687 "platform/modules/shapedetection/shapedetection.mojom",
688 "platform/modules/websockets/websocket.mojom", 688 "platform/modules/websockets/websocket.mojom",
689 "platform/referrer.mojom", 689 "platform/referrer.mojom",
690 "web/window_features.mojom", 690 "web/window_features.mojom",
691 ] 691 ]
692 public_deps = [ 692 public_deps = [
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",
(...skipping 11 matching lines...) Expand all
708 708
709 mojom("android_mojo_bindings") { 709 mojom("android_mojo_bindings") {
710 sources = [ 710 sources = [
711 "platform/modules/webshare/webshare.mojom", 711 "platform/modules/webshare/webshare.mojom",
712 ] 712 ]
713 public_deps = [ 713 public_deps = [
714 "//components/payments:payment_request", 714 "//components/payments:payment_request",
715 "//url/mojo:url_mojom_gurl", 715 "//url/mojo:url_mojom_gurl",
716 ] 716 ]
717 717
718 use_new_wrapper_types = false
719
720 # See comment above. 718 # See comment above.
721 export_class_attribute = "CONTENT_EXPORT" 719 export_class_attribute = "CONTENT_EXPORT"
722 export_define = "CONTENT_IMPLEMENTATION=1" 720 export_define = "CONTENT_IMPLEMENTATION=1"
723 export_header = "content/common/content_export.h" 721 export_header = "content/common/content_export.h"
724 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" 722 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
725 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" 723 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
726 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" 724 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
727 } 725 }
728 726
729 # The offscreen_canvas_mojo_bindings is separated from the rest of mojom files 727 # The offscreen_canvas_mojo_bindings is separated from the rest of mojom files
(...skipping 29 matching lines...) Expand all
759 # relegated to a separate target to avoid duplication between the variants. 757 # relegated to a separate target to avoid duplication between the variants.
760 source_set("shared_typemap_traits") { 758 source_set("shared_typemap_traits") {
761 visibility = [ ":*" ] 759 visibility = [ ":*" ]
762 sources = [ 760 sources = [
763 "web/WindowFeaturesStructTraits.cpp", 761 "web/WindowFeaturesStructTraits.cpp",
764 ] 762 ]
765 deps = [ 763 deps = [
766 ":new_wrapper_types_mojo_bindings_shared__generator", 764 ":new_wrapper_types_mojo_bindings_shared__generator",
767 ] 765 ]
768 } 766 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/budget/BudgetService.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698