|
Move gamepad_service out of content/ and into device/
This patch is a subtask of "Decoupling Gamepad from //content".
In this patch the GamepadService, GamepadServiceUnittest, GamepadMonitor and
GamepadSharedBuffer are moved out of content/browser/gamepad or render_host,
and into device/gamepad/.
The file //content/common/gamepad_hardware_buffer.h is removed, we move the
definition of GamepadHardwareBuffer into gamepad_shared_memory.h, and change
its definition by using generic SharedMemorySeqLockBuffer<blink::WebGamepads>.
In the unittest of GamepadProvider, we don't pass a MockSharedMemoryBuffer
(which has no seqlock controls) anymore. GamepadProvider will create a
SharedMemoryBuffer by default in its constructor, so we add the seqlock-read
accordingly in its unittest.
Based on a patch by bajones@chromium.org.
BUG = 612330
Committed: https://crrev.com/bee6a64bd524847e541f6ef11c73c0328094b9d3
Cr-Commit-Position: refs/heads/master@{#437716}
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+277 lines, -973 lines) |
Patch |
 |
M |
content/browser/BUILD.gn
|
View
|
|
3 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_main_loop.cc
|
View
|
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
D |
content/browser/gamepad/OWNERS
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
D |
content/browser/gamepad/gamepad_service.h
|
View
|
|
1 chunk |
+0 lines, -143 lines |
0 comments
|
Download
|
 |
D |
content/browser/gamepad/gamepad_service.cc
|
View
|
|
1 chunk |
+0 lines, -197 lines |
0 comments
|
Download
|
 |
D |
content/browser/gamepad/gamepad_service_test_helpers.h
|
View
|
|
1 chunk |
+0 lines, -38 lines |
0 comments
|
Download
|
 |
D |
content/browser/gamepad/gamepad_service_test_helpers.cc
|
View
|
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
D |
content/browser/gamepad/gamepad_service_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -137 lines |
0 comments
|
Download
|
 |
D |
content/browser/gamepad/gamepad_shared_buffer_impl.h
|
View
|
|
1 chunk |
+0 lines, -35 lines |
0 comments
|
Download
|
 |
D |
content/browser/gamepad/gamepad_shared_buffer_impl.cc
|
View
|
|
1 chunk |
+0 lines, -46 lines |
0 comments
|
Download
|
 |
D |
content/browser/renderer_host/gamepad_monitor.h
|
View
|
|
1 chunk |
+0 lines, -44 lines |
0 comments
|
Download
|
 |
D |
content/browser/renderer_host/gamepad_monitor.cc
|
View
|
|
1 chunk |
+0 lines, -65 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/pepper/pepper_gamepad_host.h
|
View
|
|
4 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/pepper/pepper_gamepad_host.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc
|
View
|
|
3 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
content/common/gamepad_hardware_buffer.h
|
View
|
|
1 chunk |
+0 lines, -34 lines |
0 comments
|
Download
|
 |
M |
content/renderer/gamepad_shared_memory_reader.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/gamepad_shared_memory_reader.cc
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/test/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
device/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
device/gamepad/BUILD.gn
|
View
|
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
device/gamepad/gamepad_monitor.h
|
View
|
|
2 chunks |
+13 lines, -11 lines |
0 comments
|
Download
|
 |
A + |
device/gamepad/gamepad_monitor.cc
|
View
|
|
2 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
device/gamepad/gamepad_provider.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
device/gamepad/gamepad_provider.cc
|
View
|
|
3 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
device/gamepad/gamepad_provider_unittest.cc
|
View
|
1
|
4 chunks |
+54 lines, -34 lines |
0 comments
|
Download
|
 |
A + |
device/gamepad/gamepad_service.h
|
View
|
|
5 chunks |
+15 lines, -14 lines |
0 comments
|
Download
|
 |
A + |
device/gamepad/gamepad_service.cc
|
View
|
|
10 chunks |
+36 lines, -43 lines |
0 comments
|
Download
|
 |
A + |
device/gamepad/gamepad_service_unittest.cc
|
View
|
1
|
6 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
 |
M |
device/gamepad/gamepad_shared_buffer.h
|
View
|
|
1 chunk |
+27 lines, -5 lines |
0 comments
|
Download
|
 |
A |
device/gamepad/gamepad_shared_buffer.cc
|
View
|
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/gamepad/gamepad_test_helpers.h
|
View
|
|
3 chunks |
+21 lines, -16 lines |
0 comments
|
Download
|
 |
M |
device/gamepad/gamepad_test_helpers.cc
|
View
|
|
1 chunk |
+10 lines, -21 lines |
0 comments
|
Download
|
 |
M |
device/gamepad/public/interfaces/gamepad.mojom
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/ppb_gamepad_shared.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 33 (21 generated)
|