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

Side by Side Diff: device/device_sensors/device_sensors_motion_impl.h

Issue 1164563003: Extract device_sensors to /device via Mojofication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
(Empty)
1 // Copyright 2015 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 #ifndef DEVICE_DEVICE_SENSORS_DEVICE_SENSORS_MOTION_IMPL_H_
6 #define DEVICE_DEVICE_SENSORS_DEVICE_SENSORS_MOTION_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "base/macros.h"
10 #include "base/single_thread_task_runner.h"
11 #include "device/device_sensors/device_sensors.mojom.h"
12 #include "device/device_sensors/device_sensors_export.h"
13 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
14
15 namespace device {
16
17 class DeviceSensorsMotionImpl : public DeviceSensorsMotion {
18 public:
19 DEVICE_SENSORS_EXPORT static void Create(
20 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
21 mojo::InterfaceRequest<DeviceSensorsMotion> request);
22
23 private:
24 explicit DeviceSensorsMotionImpl(
25 mojo::InterfaceRequest<DeviceSensorsMotion> request);
26 ~DeviceSensorsMotionImpl() override;
27
28 static void CreateOnTaskRunnerThread(
29 mojo::InterfaceRequest<DeviceSensorsMotion> request);
30
31 // DeviceSensorsMotion methods:
32 void StartPolling(int32 peer_process_id,
33 const StartPollingCallback& callback) override;
34
35 mojo::StrongBinding<DeviceSensorsMotion> binding_;
36 bool is_started_;
37
38 DISALLOW_COPY_AND_ASSIGN(DeviceSensorsMotionImpl);
39 };
40
41 } // namespace device
42
43 #endif // DEVICE_DEVICE_SENSORS_DEVICE_SENSORS_MOTION_IMPL_H_
OLDNEW
« no previous file with comments | « device/device_sensors/device_sensors_light_impl.cc ('k') | device/device_sensors/device_sensors_motion_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698