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

Unified Diff: device/vibration/BUILD.gn

Issue 583663003: Vibration API : migrate to device/vibration using mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove debug logging Created 6 years, 3 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: device/vibration/BUILD.gn
diff --git a/device/vibration/BUILD.gn b/device/vibration/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..7911fc78d187a10a7e45e4565e11321bbb1cda94
--- /dev/null
+++ b/device/vibration/BUILD.gn
@@ -0,0 +1,45 @@
+# Copyright 2014 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.
+
+import("//build/config/features.gni")
+import("//mojo/public/tools/bindings/mojom.gni")
+
+component("vibration") {
+ output_name = "device_vibration"
+
+ sources = [
+ "vibration_export.h",
+ "vibration_manager_impl.cc",
+ "vibration_manager_impl.h",
+ "vibration_provider.h",
+ "vibration_provider_android.cc",
+ "vibration_provider_android.h",
+ ]
+
+ defines = [
+ "DEVICE_VIBRATION_IMPLEMENTATION",
+ ]
+
+ deps = [
+ ":mojo_bindings",
+ "//base",
+ "//base/third_party/dynamic_annotations",
+ "//mojo/environment:chromium",
+ "//mojo/public/cpp/bindings",
+ "//mojo/system",
+ ]
+
+ if (is_android) {
+ deps += [
+ "//device/vibration/android",
+ "//device/vibration/android:vibration_jni_headers",
+ ]
+ }
+}
+
+mojom("mojo_bindings") {
+ sources = [
+ "vibration_manager.mojom",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698