1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "device/vibration/vibration_manager_impl.h"
7 #include "base/basictypes.h"
8 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
14 class VibrationManagerEmptyImpl
: public VibrationManager
{
16 void Vibrate(int64 milliseconds
) override
{}
17 void Cancel() override
{}
20 friend VibrationManagerImpl
;
22 explicit VibrationManagerEmptyImpl(
23 mojo::InterfaceRequest
<VibrationManager
> request
)
24 : binding_(this, request
.Pass()) {}
25 ~VibrationManagerEmptyImpl() override
{}
27 // The binding between this object and the other end of the pipe.
28 mojo::StrongBinding
<VibrationManager
> binding_
;
34 void VibrationManagerImpl::Create(
35 mojo::InterfaceRequest
<VibrationManager
> request
) {
36 new VibrationManagerEmptyImpl(request
.Pass());