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

Side by Side Diff: content/browser/device_sensors/data_fetcher_shared_memory.h

Issue 633503002: Replacing the OVERRIDE with override and FINAL with final in content/browser/device_sensors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | content/browser/device_sensors/data_fetcher_shared_memory_base_unittest.cc » ('j') | 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 #ifndef CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ 5 #ifndef CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_
6 #define CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ 6 #define CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_
7 7
8 #include "content/browser/device_sensors/data_fetcher_shared_memory_base.h" 8 #include "content/browser/device_sensors/data_fetcher_shared_memory_base.h"
9 9
10 #if !defined(OS_ANDROID) 10 #if !defined(OS_ANDROID)
(...skipping 12 matching lines...) Expand all
23 namespace content { 23 namespace content {
24 24
25 class CONTENT_EXPORT DataFetcherSharedMemory 25 class CONTENT_EXPORT DataFetcherSharedMemory
26 : public DataFetcherSharedMemoryBase { 26 : public DataFetcherSharedMemoryBase {
27 27
28 public: 28 public:
29 DataFetcherSharedMemory(); 29 DataFetcherSharedMemory();
30 virtual ~DataFetcherSharedMemory(); 30 virtual ~DataFetcherSharedMemory();
31 31
32 private: 32 private:
33 virtual bool Start(ConsumerType consumer_type, void* buffer) OVERRIDE; 33 virtual bool Start(ConsumerType consumer_type, void* buffer) override;
34 virtual bool Stop(ConsumerType consumer_type) OVERRIDE; 34 virtual bool Stop(ConsumerType consumer_type) override;
35 35
36 #if !defined(OS_ANDROID) 36 #if !defined(OS_ANDROID)
37 DeviceMotionHardwareBuffer* motion_buffer_; 37 DeviceMotionHardwareBuffer* motion_buffer_;
38 DeviceOrientationHardwareBuffer* orientation_buffer_; 38 DeviceOrientationHardwareBuffer* orientation_buffer_;
39 DeviceLightHardwareBuffer* light_buffer_; 39 DeviceLightHardwareBuffer* light_buffer_;
40 #endif 40 #endif
41 #if defined(OS_MACOSX) 41 #if defined(OS_MACOSX)
42 virtual void Fetch(unsigned consumer_bitmask) OVERRIDE; 42 virtual void Fetch(unsigned consumer_bitmask) override;
43 virtual FetcherType GetType() const OVERRIDE; 43 virtual FetcherType GetType() const override;
44 44
45 scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_; 45 scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_;
46 #elif defined(OS_WIN) 46 #elif defined(OS_WIN)
47 class SensorEventSink; 47 class SensorEventSink;
48 class SensorEventSinkMotion; 48 class SensorEventSinkMotion;
49 class SensorEventSinkOrientation; 49 class SensorEventSinkOrientation;
50 50
51 virtual FetcherType GetType() const OVERRIDE; 51 virtual FetcherType GetType() const override;
52 52
53 bool RegisterForSensor(REFSENSOR_TYPE_ID sensor_type, ISensor** sensor, 53 bool RegisterForSensor(REFSENSOR_TYPE_ID sensor_type, ISensor** sensor,
54 scoped_refptr<SensorEventSink> event_sink); 54 scoped_refptr<SensorEventSink> event_sink);
55 void DisableSensors(ConsumerType consumer_type); 55 void DisableSensors(ConsumerType consumer_type);
56 void SetBufferAvailableState(ConsumerType consumer_type, bool enabled); 56 void SetBufferAvailableState(ConsumerType consumer_type, bool enabled);
57 57
58 base::win::ScopedComPtr<ISensor> sensor_inclinometer_; 58 base::win::ScopedComPtr<ISensor> sensor_inclinometer_;
59 base::win::ScopedComPtr<ISensor> sensor_accelerometer_; 59 base::win::ScopedComPtr<ISensor> sensor_accelerometer_;
60 base::win::ScopedComPtr<ISensor> sensor_gyrometer_; 60 base::win::ScopedComPtr<ISensor> sensor_gyrometer_;
61 #endif 61 #endif
62 62
63 DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory); 63 DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory);
64 }; 64 };
65 65
66 } // namespace content 66 } // namespace content
67 67
68 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ 68 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/device_sensors/data_fetcher_shared_memory_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698