Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 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 CONTENT_RENDERER_DEVICE_MOTION_SHARED_MEMORY_READER_H_ | |
| 6 #define CONTENT_RENDERER_DEVICE_MOTION_SHARED_MEMORY_READER_H_ | |
| 7 | |
| 8 #include "base/shared_memory.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 | |
| 11 namespace WebKit { | |
| 12 class WebDeviceMotionData; | |
| 13 } | |
| 14 | |
| 15 namespace content { | |
| 16 | |
| 17 struct DeviceMotionHardwareBuffer; | |
| 18 | |
| 19 class DeviceMotionSharedMemoryReader { | |
| 20 public: | |
| 21 DeviceMotionSharedMemoryReader(); | |
| 22 virtual ~DeviceMotionSharedMemoryReader() { } | |
| 23 | |
| 24 virtual bool latestDeviceMotionData(WebKit::WebDeviceMotionData& data); | |
|
darin (slow to review)
2013/05/29 06:41:53
nit: use google C++ style for naming methods
darin (slow to review)
2013/05/29 06:41:53
nit add a verb here... like "Query" or "Get"
timvolodine
2013/05/29 18:59:06
Done.
timvolodine
2013/05/29 18:59:06
Done.
| |
| 25 virtual void startUpdating(); | |
| 26 virtual void stopUpdating(); | |
| 27 | |
| 28 private: | |
| 29 base::SharedMemoryHandle renderer_shared_memory_handle_; | |
| 30 scoped_ptr<base::SharedMemory> renderer_shared_memory_; | |
| 31 DeviceMotionHardwareBuffer* device_motion_hardware_buffer_; | |
| 32 }; | |
| 33 | |
| 34 } // namespace content | |
| 35 | |
| 36 #endif // CONTENT_RENDERER_DEVICE_MOTION_SHARED_MEMORY_READER_H_ | |
| OLD | NEW |