Side by Side Diff
Use n/p to move between diff chunks;
N/P to move between comments.
Draft comments are only viewable by you.
Keyboard Shortcuts
File
u : up to issue
j / k : jump to file after / before current file
J / K : jump to next file with a comment after / before current file
Side-by-side diff
i : toggle intra-line diffs
e : expand all comments
c : collapse all comments
s : toggle showing all comments
n / p : next / previous diff chunk or comment
N / P : next / previous comment
<Up> / <Down> : next / previous line
Issue
u : up to list of issues
j / k : jump to patch after / before current patch
o / <Enter> : open current patch in side-by-side view
i : open current patch in unified diff view
Issue List
j / k : jump to issue after / before current issue
o / <Enter> : open current issue
(613)
Side by Side Diff: device/sensors/public/cpp/orientation_data.cc
Issue 2415083002 :
Move Device Sensors client files from Blink to //device/sensors client lib (Closed)
Patch Set: Rebase
Use n/p to move between diff chunks;
N/P to move between comments.
Draft comments are only viewable by you.
Jump to:
content/public/test/layouttest_support.h
content/renderer/BUILD.gn
content/renderer/device_sensors/device_motion_event_pump.h
content/renderer/device_sensors/device_motion_event_pump.cc
content/renderer/device_sensors/device_motion_event_pump_unittest.cc
content/renderer/device_sensors/device_orientation_event_pump.h
content/renderer/device_sensors/device_orientation_event_pump.cc
content/renderer/device_sensors/device_orientation_event_pump_unittest.cc
content/renderer/renderer_blink_platform_impl.h
content/renderer/renderer_blink_platform_impl.cc
content/shell/BUILD.gn
content/shell/renderer/layout_test/blink_test_runner.h
content/shell/renderer/layout_test/blink_test_runner.cc
content/shell/test_runner/BUILD.gn
content/shell/test_runner/DEPS
content/shell/test_runner/test_runner.cc
content/shell/test_runner/test_runner_for_specific_view.cc
content/shell/test_runner/web_test_delegate.h
content/test/BUILD.gn
content/test/DEPS
content/test/layouttest_support.cc
device/BUILD.gn
device/generic_sensor/BUILD.gn
device/sensors/BUILD.gn
device/sensors/public/cpp/BUILD.gn
device/sensors/public/cpp/DEPS
device/sensors/public/cpp/device_motion_hardware_buffer.h
device/sensors/public/cpp/device_orientation_hardware_buffer.h
device/sensors/public/cpp/motion_data.h
device/sensors/public/cpp/motion_data.cc
device/sensors/public/cpp/orientation_data.h
device/sensors/public/cpp/orientation_data.cc
third_party/WebKit/Source/modules/device_orientation/BUILD.gn
third_party/WebKit/Source/modules/device_orientation/DEPS
third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.h
third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp
third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.h
third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp
third_party/WebKit/Source/modules/device_orientation/DeviceOrientationData.h
third_party/WebKit/Source/modules/device_orientation/DeviceOrientationData.cpp
third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.h
third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.cpp
third_party/WebKit/Source/platform/BUILD.gn
third_party/WebKit/Source/platform/exported/WebDeviceMotionData.cpp
third_party/WebKit/Source/platform/exported/WebDeviceOrientationData.cpp
third_party/WebKit/public/BUILD.gn
third_party/WebKit/public/platform/modules/device_orientation/WebDeviceMotionData.h
third_party/WebKit/public/platform/modules/device_orientation/WebDeviceMotionListener.h
third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationData.h
third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationListener.h
OLD NEW
(Empty) 1 // Copyright 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 #include "device/sensors/public/cpp/orientation_data.h"
6
7 #include <string.h>
8
9 namespace device {
10
11 OrientationData::OrientationData() {
12 // Make sure to zero out the memory so that there are no uninitialized bits.
13 // This object is used in the shared memory buffer and is memory copied by
14 // two processes. Valgrind will complain if we copy around memory that is
15 // only partially initialized.
16 memset(this, 0, sizeof(*this));
17 }
18
19 } // namespace device
OLD NEW