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

Unified Diff: content/common/device_motion_hardware_buffer.h

Issue 14678012: Implement the content/renderer and content/browser part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compilation: peer_handle -> PeerHandle() Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/device_motion_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/device_motion_hardware_buffer.h
diff --git a/content/common/device_motion_hardware_buffer.h b/content/common/device_motion_hardware_buffer.h
new file mode 100644
index 0000000000000000000000000000000000000000..5e56d7929b123c8ee901d8a1ae028948c66b5852
--- /dev/null
+++ b/content/common/device_motion_hardware_buffer.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_DEVICE_MOTION_HARDWARE_BUFFER_H_
+#define CONTENT_COMMON_DEVICE_MOTION_HARDWARE_BUFFER_H_
+
+#include "content/common/shared_memory_seqlock_buffer.h"
+#include "third_party/WebKit/public/platform/WebDeviceMotionData.h"
+
+namespace content {
+
+typedef SharedMemorySeqLockBuffer<WebKit::WebDeviceMotionData>
+ DeviceMotionHardwareBuffer;
+
+} // namespace content
+
+#endif // CONTENT_COMMON_DEVICE_MOTION_HARDWARE_BUFFER_H_
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/device_motion_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698