[OnionSoup] Move payment_{app,request}.mojom into blink/public/mojom/
As part of Onion Soup effort, blink/public/mojom/payments/ should be the
right place for payment_{app,request}.mojom, this CL moves them there
from blink/public/platform/modules/payments/.
This movement facilitates moving
//content/common/service_worker/service_worker.mojom into
blink/public/mojom/service_worker/ in future.
BUG=789854
Change-Id: Idaa2abacfefe706d05acbe8f23a7daea00f4ab66
Reviewed-on: https://chromium-review.googlesource.com/1192687
Commit-Queue: Han Leon <[email protected]>
Reviewed-by: Lei Zhang <[email protected]>
Reviewed-by: Marijn Kruisselbrink <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Rouslan Solomakhin <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Cr-Commit-Position: refs/heads/master@{#587416}
diff --git a/third_party/blink/public/mojom/BUILD.gn b/third_party/blink/public/mojom/BUILD.gn
index 1dd105f..46834da 100644
--- a/third_party/blink/public/mojom/BUILD.gn
+++ b/third_party/blink/public/mojom/BUILD.gn
@@ -40,6 +40,7 @@
"net/ip_address_space.mojom",
"page/display_cutout.mojom",
"page/page_visibility_state.mojom",
+ "payments/payment_app.mojom",
"plugins/plugin_registry.mojom",
"presentation/presentation.mojom",
"quota/quota_dispatcher_host.mojom",
@@ -64,7 +65,9 @@
]
public_deps = [
+ ":android_mojo_bindings",
":speech_recognition_error_code",
+ "//components/payments/mojom",
"//components/services/filesystem/public/interfaces",
"//mojo/public/mojom/base",
"//services/device/public/mojom",
@@ -89,6 +92,26 @@
export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
}
+# Kept separate from "mojom_platform" because the Java bindings are specifically
+# needed by Android's implementation of payments
+# (in components/payments/content/android and chrome/android/).
+mojom("android_mojo_bindings") {
+ sources = [
+ "payments/payment_request.mojom",
+ ]
+ public_deps = [
+ "//components/payments/mojom",
+ ]
+
+ export_class_attribute = "BLINK_COMMON_EXPORT"
+ export_define = "BLINK_COMMON_IMPLEMENTATION=1"
+ export_header = "third_party/blink/common/common_export.h"
+
+ export_class_attribute_blink = "PLATFORM_EXPORT"
+ export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
+ export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
+}
+
# Kept separate from "mojom_platform" because the Java bindings are needed by
# Android's implementation of speech recognition.
mojom("speech_recognition_error_code") {