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

Unified Diff: mojo/public/tools/bindings/blink_bindings_configuration.gni

Issue 1832703002: Mojo: Simplify typemap usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-bindings-variant-import
Patch Set: Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/tools/bindings/blink_bindings_configuration.gni
diff --git a/mojo/public/tools/bindings/blink_bindings_configuration.gni b/mojo/public/tools/bindings/blink_bindings_configuration.gni
new file mode 100644
index 0000000000000000000000000000000000000000..3ab029884d3f38482d05d39fb2325f83fa8401f5
--- /dev/null
+++ b/mojo/public/tools/bindings/blink_bindings_configuration.gni
@@ -0,0 +1,30 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+variant = "wtf"
+
+for_blink = true
+
+_typemaps = [
yzshen1 2016/04/05 17:36:14 I thought previously you said users didn't have to
Sam McNally 2016/04/06 07:02:53 Typemaps don't have to be added to this file expli
yzshen1 2016/04/06 16:00:47 Yeah, scanning using py script seems sad. By "the
Sam McNally 2016/04/07 00:19:43 I've extracted the typemap list into imported gni
+ "//mojo/public/cpp/bindings/tests/test_native_types_blink.typemap",
+ "//mojo/public/cpp/bindings/tests/rect_blink.typemap",
+]
+
+typemaps = []
+foreach(typemap, _typemaps) {
+ typemaps += [ read_file(typemap, "scope") ]
+}
+
+blacklist = [
+ # TODO(sammc): Remove the following once |for_blink| bindings support WTF
+ # maps. See https://crbug.com/583738.
+ "//components/mus/public/interfaces/window_manager.mojom",
+ "//components/mus/public/interfaces/window_tree.mojom",
+ "//extensions/common/api/mime_handler.mojom",
+ "//mojo/public/interfaces/bindings/tests/test_structs.mojom",
+ "//mojo/public/interfaces/bindings/tests/test_unions.mojom",
+ "//mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom",
+ "//mojo/services/catalog/public/interfaces/catalog.mojom",
+ "//mojo/shell/public/interfaces/capabilities.mojom",
+]

Powered by Google App Engine
This is Rietveld 408576698