-
Oksana Zhuravlova authored
This change moves Device*EventPump classes and appropriate unit tests to third_party/blink/renderer/modules/device_orientation. Their instances are now created in relevant Device*Dispatcher methods with a LocalFrame* passed to be used for Mojo interface creation. Some updates were required to satisfy blink dependencies limitations and for consistency: - base::RepeatingTimer was replaced by TaskRunnerTimer which has to be initialized with a base::SingleThreadTaskRunner, so the constructors were extended with a new parameter; - base::Time -> WTF::Time; - base::BindOnce -> WTF::Bind, base::Unretained -> WTF::Unretained; - device::mojom:: -> device::mojom::blink::; - in the unit tests, device::mojom::SensorProviderPtrInfo is wrapped into device::mojom::blink::SensorProviderPtr since FakeSensorProvider implements device::mojom::SensorProvider Bug: 850997 Change-Id: I440b9379f50ab42fc50b9d92490c2615ef8c3cc9 Reviewed-on: https://chromium-review.googlesource.com/1099492 Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org> Reviewed-by:
Tim Volodine <timvolodine@chromium.org> Reviewed-by:
Reilly Grant <reillyg@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#569659}
4540438b