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

Unified Diff: device/vibration/vibration_manager_impl_default.cc

Issue 2776983002: [DeviceService] Move all vibration codes into //services/device (Closed)
Patch Set: Rebase only Created 3 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
« no previous file with comments | « device/vibration/vibration_manager_impl.h ('k') | services/device/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vibration/vibration_manager_impl_default.cc
diff --git a/device/vibration/vibration_manager_impl_default.cc b/device/vibration/vibration_manager_impl_default.cc
deleted file mode 100644
index c073f69a1f0fecfc80974aee551ff36af7cf822d..0000000000000000000000000000000000000000
--- a/device/vibration/vibration_manager_impl_default.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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.
-
-#include <stdint.h>
-#include <utility>
-
-#include "base/memory/ptr_util.h"
-#include "device/vibration/vibration_manager_impl.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-
-namespace device {
-
-int64_t VibrationManagerImpl::milli_seconds_for_testing_ = -1;
-bool VibrationManagerImpl::cancelled_for_testing_ = false;
-
-namespace {
-
-class VibrationManagerEmptyImpl : public mojom::VibrationManager {
- public:
- VibrationManagerEmptyImpl() {}
- ~VibrationManagerEmptyImpl() override {}
-
- void Vibrate(int64_t milliseconds, const VibrateCallback& callback) override {
- VibrationManagerImpl::milli_seconds_for_testing_ = milliseconds;
- callback.Run();
- }
-
- void Cancel(const CancelCallback& callback) override {
- VibrationManagerImpl::cancelled_for_testing_ = true;
- callback.Run();
- }
-};
-
-} // namespace
-
-// static
-void VibrationManagerImpl::Create(mojom::VibrationManagerRequest request) {
- mojo::MakeStrongBinding(base::MakeUnique<VibrationManagerEmptyImpl>(),
- std::move(request));
-}
-
-} // namespace device
« no previous file with comments | « device/vibration/vibration_manager_impl.h ('k') | services/device/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698