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

Side by Side Diff: device/sensors/data_fetcher_shared_memory_chromeos.cc

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: update git log Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 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 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 "content/browser/device_sensors/data_fetcher_shared_memory.h" 5 #include "device/sensors/data_fetcher_shared_memory.h"
6 6
7 #include "content/browser/device_sensors/sensor_manager_chromeos.h" 7 #include "device/sensors/sensor_manager_chromeos.h"
8 8
9 namespace content { 9 namespace device {
10 10
11 DataFetcherSharedMemory::DataFetcherSharedMemory() { 11 DataFetcherSharedMemory::DataFetcherSharedMemory() {}
12 }
13 12
14 DataFetcherSharedMemory::~DataFetcherSharedMemory() { 13 DataFetcherSharedMemory::~DataFetcherSharedMemory() {}
15 }
16 14
17 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) { 15 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
18 DCHECK(buffer); 16 DCHECK(buffer);
19 if (!sensor_manager_) 17 if (!sensor_manager_)
20 sensor_manager_.reset(new SensorManagerChromeOS); 18 sensor_manager_.reset(new SensorManagerChromeOS);
21 19
22 switch (consumer_type) { 20 switch (consumer_type) {
23 case CONSUMER_TYPE_MOTION: 21 case CONSUMER_TYPE_MOTION:
24 sensor_manager_->StartFetchingDeviceMotionData( 22 sensor_manager_->StartFetchingDeviceMotionData(
25 static_cast<DeviceMotionHardwareBuffer*>(buffer)); 23 static_cast<DeviceMotionHardwareBuffer*>(buffer));
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 60 }
63 return true; 61 return true;
64 case CONSUMER_TYPE_LIGHT: 62 case CONSUMER_TYPE_LIGHT:
65 NOTIMPLEMENTED(); 63 NOTIMPLEMENTED();
66 return false; 64 return false;
67 } 65 }
68 NOTREACHED(); 66 NOTREACHED();
69 return false; 67 return false;
70 } 68 }
71 69
72 } // namespace content 70 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698