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

Side by Side Diff: device/vibration/vibration_manager_impl_default.cc

Issue 826613003: Revert of Vibration API : migrate to device/vibration using mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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 unified diff | Download patch
« no previous file with comments | « device/vibration/vibration_manager_impl_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "device/vibration/vibration_manager_impl.h"
6
7 #include "base/basictypes.h"
8 #include "base/bind.h"
9
10 namespace device {
11
12 namespace {
13
14 class VibrationManagerEmptyImpl : public mojo::InterfaceImpl<VibrationManager> {
15 public:
16 static VibrationManagerEmptyImpl* Create() {
17 return new VibrationManagerEmptyImpl();
18 }
19
20 void Vibrate(int64 milliseconds) override {}
21 void Cancel() override {}
22
23 private:
24 VibrationManagerEmptyImpl() {}
25 virtual ~VibrationManagerEmptyImpl() {}
26 };
27
28 } // namespace
29
30 //static
31 void VibrationManagerImpl::Create(
32 mojo::InterfaceRequest<VibrationManager> request) {
33 BindToRequest(VibrationManagerEmptyImpl::Create(), &request);
34 }
35
36 } // namespace device
OLDNEW
« no previous file with comments | « device/vibration/vibration_manager_impl_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698