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

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: hide default service implementation, fix android_aosp Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | device/vibration/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vibration/BUILD.gn
diff --git a/device/vibration/BUILD.gn b/device/vibration/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..4535b3c66d6add127ba063c27849d6c4a73102d1
--- /dev/null
+++ b/device/vibration/BUILD.gn
@@ -0,0 +1,47 @@
+# 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.h",
+ "vibration_manager_impl_android.cc",
+ "vibration_manager_impl_android.h",
+ "vibration_manager_impl_default.cc",
+ ]
+
+ defines = [
+ "DEVICE_VIBRATION_IMPLEMENTATION",
+ ]
+
+ deps = [
+ ":mojo_bindings",
+ "//base",
+ "//base/third_party/dynamic_annotations",
+ "//mojo/environment:chromium",
+ "//mojo/public/cpp/bindings",
+ "//mojo/edk/system",
+ ]
+
+ if (is_android) {
+ sources -= [
+ "vibration_manager_impl_default.cc",
+ ]
+ deps += [
+ "//device/vibration/android",
+ "//device/vibration/android:vibration_jni_headers",
+ ]
+ }
+}
+
+mojom("mojo_bindings") {
+ sources = [
+ "vibration_manager.mojom",
+ ]
+}
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | device/vibration/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698