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

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

Issue 818093003: Standardize usage of virtual/override/final specifiers in device/. (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/serial/data_sender.h ('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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/vibration/vibration_manager_impl.h" 5 #include "device/vibration/vibration_manager_impl.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 9
10 namespace device { 10 namespace device {
11 11
12 namespace { 12 namespace {
13 13
14 class VibrationManagerEmptyImpl : public mojo::InterfaceImpl<VibrationManager> { 14 class VibrationManagerEmptyImpl : public mojo::InterfaceImpl<VibrationManager> {
15 public: 15 public:
16 static VibrationManagerEmptyImpl* Create() { 16 static VibrationManagerEmptyImpl* Create() {
17 return new VibrationManagerEmptyImpl(); 17 return new VibrationManagerEmptyImpl();
18 } 18 }
19 19
20 void Vibrate(int64 milliseconds) override {} 20 void Vibrate(int64 milliseconds) override {}
21 void Cancel() override {} 21 void Cancel() override {}
22 22
23 private: 23 private:
24 VibrationManagerEmptyImpl() {} 24 VibrationManagerEmptyImpl() {}
25 virtual ~VibrationManagerEmptyImpl() {} 25 ~VibrationManagerEmptyImpl() override {}
26 }; 26 };
27 27
28 } // namespace 28 } // namespace
29 29
30 //static 30 //static
31 void VibrationManagerImpl::Create( 31 void VibrationManagerImpl::Create(
32 mojo::InterfaceRequest<VibrationManager> request) { 32 mojo::InterfaceRequest<VibrationManager> request) {
33 BindToRequest(VibrationManagerEmptyImpl::Create(), &request); 33 BindToRequest(VibrationManagerEmptyImpl::Create(), &request);
34 } 34 }
35 35
36 } // namespace device 36 } // namespace device
OLDNEW
« no previous file with comments | « device/serial/data_sender.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698