|
Generalize and refactor DeviceSensorEvent* architecture to support
multi-event type targets.
This patch performs a significant refactoring of the
DeviceSensorEvent{Controller,Dispatcher} and related classes.
It provides new Base classes to allow simple implementation of
APIs involving multi-event type non-window targets (e.g. Battery
Status API). Additionally it makes the implementation of existing
event-based APIs (device_orientation, device_light) simpler and
more compact.
In particular the following new classes have been added:
* DeviceEventControllerBase and DeviceEventDispatcherBase
(derived from by the Battery Status API).
* DeviceSingleWindowEventController is more specific and
contains functionality necessary for single-event type window
target APIs (used by Device Motion/Orientation and Device Light
APIs).
BUG= 122593, 360068
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175661
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175686
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175792
Total comments: 32
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+518 lines, -483 lines) |
Patch |
|
M |
Source/core/core.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/core/frame/DeviceEventControllerBase.h
|
View
|
1
2
3
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/core/frame/DeviceEventControllerBase.cpp
|
View
|
1
2
3
|
1 chunk |
+70 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/core/frame/DeviceEventDispatcherBase.h
|
View
|
1
2
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/core/frame/DeviceEventDispatcherBase.cpp
|
View
|
1
2
|
1 chunk |
+87 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/core/frame/DeviceSingleWindowEventController.h
|
View
|
1
2
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/core/frame/DeviceSingleWindowEventController.cpp
|
View
|
1
2
|
1 chunk |
+73 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/battery/BatteryDispatcher.h
|
View
|
1
2
3
|
2 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/modules/battery/BatteryDispatcher.cpp
|
View
|
1
2
3
|
2 chunks |
+3 lines, -48 lines |
0 comments
|
Download
|
|
M |
Source/modules/battery/BatteryManager.h
|
View
|
1
2
3
|
3 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
|
M |
Source/modules/battery/BatteryManager.cpp
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+31 lines, -39 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_light/DeviceLightController.h
|
View
|
1
2
3
|
2 chunks |
+9 lines, -16 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_light/DeviceLightController.cpp
|
View
|
1
2
3
|
3 chunks |
+11 lines, -42 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_light/DeviceLightDispatcher.h
|
View
|
|
2 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_light/DeviceLightDispatcher.cpp
|
View
|
|
3 chunks |
+1 line, -25 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_orientation/DeviceMotionController.h
|
View
|
1
2
3
4
5
|
2 chunks |
+12 lines, -42 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_orientation/DeviceMotionController.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+14 lines, -70 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_orientation/DeviceMotionDispatcher.h
|
View
|
|
3 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_orientation/DeviceMotionDispatcher.cpp
|
View
|
|
3 chunks |
+1 line, -24 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_orientation/DeviceOrientationController.h
|
View
|
1
2
3
4
5
|
2 chunks |
+18 lines, -41 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_orientation/DeviceOrientationController.cpp
|
View
|
1
2
3
4
5
|
6 chunks |
+21 lines, -73 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_orientation/DeviceOrientationDispatcher.h
|
View
|
|
3 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/modules/device_orientation/DeviceOrientationDispatcher.cpp
|
View
|
|
3 chunks |
+1 line, -24 lines |
0 comments
|
Download
|
Total messages: 46 (0 generated)
|