|
Share Gamepad and WebKitGamepad implementation
Decided to just have C++ inheritance:
Factor out GamepadCommon base class from Gamepad and WebKitGamepad
https://codereview.chromium.org/195993007/
OLD:
Variant of:
Added non-prefixed navigator.getGamepads() with updated API
https://codereview.chromium.org/183313003/
...which shares the Blink implementation between the two IDL interfaces.
Note the use of [ImplementedAs] on both the interfaces
(to reuse the Gamepad implementation)
and on the |buttons| attribute (to provide a different
implementation of this attribute), as that differ between
Gamepad and WebKitGamepad.
For simplicity, CG-only changes in:
Add [DoNotGenerateClassBindings] extended attribute
https://codereview.chromium.org/196653003/
BUG= 344556
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+273 lines, -63 lines) |
Patch |
|
M |
LayoutTests/gamepad/gamepad-api.html
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/gamepad/gamepad-api-expected.txt
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/gamepad/gamepad-polling-access.html
|
View
|
|
2 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/gamepad/gamepad-polling-access-expected.txt
|
View
|
|
3 chunks |
+23 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/IDLExtendedAttributes.txt
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/code_generator_v8.py
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_callback_interface.py
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_interface.py
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/templates/interface.h
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/templates/interface.cpp
|
View
|
1
2
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/templates/interface_base.cpp
|
View
|
1
2
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/frame/UseCounter.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/UseCounter.cpp
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/gamepad/Gamepad.h
|
View
|
1
2
|
3 chunks |
+17 lines, -15 lines |
4 comments
|
Download
|
|
M |
Source/modules/gamepad/Gamepad.cpp
|
View
|
1
2
|
1 chunk |
+19 lines, -14 lines |
2 comments
|
Download
|
|
M |
Source/modules/gamepad/Gamepad.idl
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
A |
Source/modules/gamepad/GamepadButton.h
|
View
|
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/modules/gamepad/GamepadButton.cpp
|
View
|
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
|
A + |
Source/modules/gamepad/GamepadButton.idl
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/modules/gamepad/GamepadList.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/gamepad/GamepadList.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/gamepad/NavigatorGamepad.h
|
View
|
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/gamepad/NavigatorGamepad.cpp
|
View
|
|
4 chunks |
+33 lines, -13 lines |
0 comments
|
Download
|
|
M |
Source/modules/gamepad/NavigatorGamepad.idl
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
A + |
Source/modules/gamepad/WebKitGamepad.h
|
View
|
|
1 chunk |
+6 lines, -5 lines |
2 comments
|
Download
|
|
A |
Source/modules/gamepad/WebKitGamepad.idl
|
View
|
1
2
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
A + |
Source/modules/gamepad/WebKitGamepadList.h
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
A |
Source/modules/gamepad/WebKitGamepadList.idl
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/modules.gypi
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|