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

Side by Side Diff: content/renderer/device_sensors/device_light_event_pump.h

Issue 292693004: [DeviceLight] Browser+java part (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot some light bits removal from device_inertial_sensor_diagnostics.html Created 6 years, 3 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 #ifndef CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_ 5 #ifndef CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_
6 #define CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_ 6 #define CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/device_sensors/device_light_data.h" 9 #include "content/common/device_sensors/device_light_data.h"
10 #include "content/renderer/device_sensors/device_sensor_event_pump.h" 10 #include "content/renderer/device_sensors/device_sensor_event_pump.h"
(...skipping 24 matching lines...) Expand all
35 35
36 protected: 36 protected:
37 // Methods overriden from base class DeviceSensorEventPump 37 // Methods overriden from base class DeviceSensorEventPump
38 virtual void FireEvent() OVERRIDE; 38 virtual void FireEvent() OVERRIDE;
39 virtual bool InitializeReader(base::SharedMemoryHandle handle) OVERRIDE; 39 virtual bool InitializeReader(base::SharedMemoryHandle handle) OVERRIDE;
40 40
41 // PlatformEventObserver implementation. 41 // PlatformEventObserver implementation.
42 virtual void SendStartMessage() OVERRIDE; 42 virtual void SendStartMessage() OVERRIDE;
43 virtual void SendStopMessage() OVERRIDE; 43 virtual void SendStopMessage() OVERRIDE;
44 44
45 bool ShouldFireEvent(double data) const;
timvolodine 2014/09/08 15:20:19 does this need to be protected?
riju_ 2014/09/09 14:01:18 Done.
46
45 scoped_ptr<DeviceLightSharedMemoryReader> reader_; 47 scoped_ptr<DeviceLightSharedMemoryReader> reader_;
46 double last_seen_data_; 48 double last_seen_data_;
47 49
48 DISALLOW_COPY_AND_ASSIGN(DeviceLightEventPump); 50 DISALLOW_COPY_AND_ASSIGN(DeviceLightEventPump);
49 }; 51 };
50 52
51 } // namespace content 53 } // namespace content
52 54
53 #endif // CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_ 55 #endif // CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698