Roll src/third_party/skia c64137c:b5fb5af
[chromium-blink-merge.git] / device / vibration / vibration_manager_impl_default.cc
blob12917226c425f0bde8defd200d14dfab93386a39
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"
10 namespace device {
12 namespace {
14 class VibrationManagerEmptyImpl : public VibrationManager {
15 public:
16 void Vibrate(int64 milliseconds) override {}
17 void Cancel() override {}
19 private:
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_;
31 } // namespace
33 // static
34 void VibrationManagerImpl::Create(
35 mojo::InterfaceRequest<VibrationManager> request) {
36 new VibrationManagerEmptyImpl(request.Pass());
39 } // namespace device