blob: 09ff3cd786a90e2c9cb75d90801dcf82a233ac0a [file] [log] [blame]
// 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