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

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

Issue 2776983002: [DeviceService] Move all vibration codes into //services/device (Closed)
Patch Set: Rebase only Created 3 years, 8 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
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 "services/device/vibration/vibration_manager_impl.h"
6
5 #include <stdint.h> 7 #include <stdint.h>
6 #include <utility> 8 #include <utility>
7 9
8 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
9 #include "device/vibration/vibration_manager_impl.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h" 11 #include "mojo/public/cpp/bindings/strong_binding.h"
11 12
12 namespace device { 13 namespace device {
13 14
14 int64_t VibrationManagerImpl::milli_seconds_for_testing_ = -1; 15 int64_t VibrationManagerImpl::milli_seconds_for_testing_ = -1;
15 bool VibrationManagerImpl::cancelled_for_testing_ = false; 16 bool VibrationManagerImpl::cancelled_for_testing_ = false;
16 17
17 namespace { 18 namespace {
18 19
19 class VibrationManagerEmptyImpl : public mojom::VibrationManager { 20 class VibrationManagerEmptyImpl : public mojom::VibrationManager {
(...skipping 14 matching lines...) Expand all
34 35
35 } // namespace 36 } // namespace
36 37
37 // static 38 // static
38 void VibrationManagerImpl::Create(mojom::VibrationManagerRequest request) { 39 void VibrationManagerImpl::Create(mojom::VibrationManagerRequest request) {
39 mojo::MakeStrongBinding(base::MakeUnique<VibrationManagerEmptyImpl>(), 40 mojo::MakeStrongBinding(base::MakeUnique<VibrationManagerEmptyImpl>(),
40 std::move(request)); 41 std::move(request));
41 } 42 }
42 43
43 } // namespace device 44 } // namespace device
OLDNEW
« no previous file with comments | « services/device/vibration/vibration_manager_impl.h ('k') | services/device/vibration/vibration_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698