| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..09ff3cd786a90e2c9cb75d90801dcf82a233ac0a
|
| --- /dev/null
|
| +++ b/device/vibration/vibration_manager_impl_default.cc
|
| @@ -0,0 +1,36 @@
|
| +// 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 "device/vibration/vibration_manager_impl.h"
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/bind.h"
|
| +
|
| +namespace device {
|
| +
|
| +namespace {
|
| +
|
| +class VibrationManagerEmptyImpl : public mojo::InterfaceImpl<VibrationManager> {
|
| + public:
|
| + static VibrationManagerEmptyImpl* Create() {
|
| + return new VibrationManagerEmptyImpl();
|
| + }
|
| +
|
| + void Vibrate(int64 milliseconds) override {}
|
| + void Cancel() override {}
|
| +
|
| + private:
|
| + VibrationManagerEmptyImpl() {}
|
| + virtual ~VibrationManagerEmptyImpl() {}
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +//static
|
| +void VibrationManagerImpl::Create(
|
| + mojo::InterfaceRequest<VibrationManager> request) {
|
| + BindToRequest(VibrationManagerEmptyImpl::Create(), &request);
|
| +}
|
| +
|
| +} // namespace device
|
|
|