|
Move Device Sensors client files from Blink to //device/sensors client lib
Currently, several Device Sensors files are part of the WebKit public
API. These files define POD structs that the Device Sensors implementation
and its clients use to consistently interpret shared memory.
As part of servicificying Device Sensors and enabling it to be used
by clients other than Blink, this CL moves those files into the Device
Sensors client library. It also updates naming conventions etc. to match
their new location.
Once concern in making this move is that Blink's modules implementations
cannot in general depend on Chromium code due to performance concerns. In
this particular case, the dependence is both necessary (for the
interpretation of shared memory) and safe (since the structs are POD and
must remain so). To avoid unwanted dependencies creeping in in the future,
the moved files are isolated in their own target within
//device/sensors/public/cpp, with a clear explanation in the BUILD.gn file
of the constraints on this target.
BUG= 612322
TBR=jam
Review-Url: https://codereview.chromium.org/2415083002
Cr-Commit-Position: refs/heads/master@{#458372}
Committed: https://chromium.googlesource.com/chromium/src/+/241fad6fdac74b820fa21e29652bbae49239840e
Total comments: 1
Total comments: 5
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+299 lines, -353 lines) |
Patch |
|
M |
content/public/test/layouttest_support.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/renderer/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/device_sensors/device_motion_event_pump.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/renderer/device_sensors/device_motion_event_pump.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/renderer/device_sensors/device_motion_event_pump_unittest.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
|
M |
content/renderer/device_sensors/device_orientation_event_pump.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/renderer/device_sensors/device_orientation_event_pump.cc
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/renderer/device_sensors/device_orientation_event_pump_unittest.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
|
M |
content/renderer/renderer_blink_platform_impl.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
|
M |
content/renderer/renderer_blink_platform_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/shell/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/shell/renderer/layout_test/blink_test_runner.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/shell/renderer/layout_test/blink_test_runner.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/shell/test_runner/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/shell/test_runner/DEPS
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/shell/test_runner/test_runner.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/shell/test_runner/test_runner_for_specific_view.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/shell/test_runner/web_test_delegate.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/test/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/test/DEPS
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/test/layouttest_support.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
device/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
device/generic_sensor/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
device/sensors/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
device/sensors/public/cpp/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+30 lines, -2 lines |
0 comments
|
Download
|
|
D |
device/sensors/public/cpp/DEPS
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
device/sensors/public/cpp/device_motion_hardware_buffer.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
device/sensors/public/cpp/device_orientation_hardware_buffer.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
device/sensors/public/cpp/motion_data.h
|
View
|
1
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
|
A |
device/sensors/public/cpp/motion_data.cc
|
View
|
1
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
device/sensors/public/cpp/orientation_data.h
|
View
|
1
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
A |
device/sensors/public/cpp/orientation_data.cc
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/device_orientation/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/device_orientation/DEPS
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.h
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/device_orientation/DeviceOrientationData.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/device_orientation/DeviceOrientationData.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.h
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/BUILD.gn
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/platform/exported/WebDeviceMotionData.cpp
|
View
|
|
1 chunk |
+0 lines, -45 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/platform/exported/WebDeviceOrientationData.cpp
|
View
|
|
1 chunk |
+0 lines, -45 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/public/platform/modules/device_orientation/WebDeviceMotionData.h
|
View
|
|
1 chunk |
+0 lines, -82 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/modules/device_orientation/WebDeviceMotionListener.h
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationData.h
|
View
|
|
1 chunk |
+0 lines, -66 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationListener.h
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
Total messages: 68 (42 generated)
|