Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified Diff: third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h

Issue 2472403002: [Sensors] Align sensor reading attribute implementation with the specification (Closed)
Patch Set: Comments from Tim Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h b/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
index e4dfaa98bc634f49fe1fe27e8b7cd1fb8a492919..fc89f5407584eaa57d837ad5ab1825b271abdf7b 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h
@@ -14,6 +14,7 @@
namespace blink {
class SensorProxy;
+class SensorReadingFactory;
// This class wraps 'SensorProvider' mojo interface and it manages
// 'SensorProxy' instances.
@@ -28,7 +29,10 @@ class SensorProviderProxy final
~SensorProviderProxy();
- SensorProxy* getOrCreateSensor(device::mojom::blink::SensorType);
+ SensorProxy* createSensor(device::mojom::blink::SensorType,
+ std::unique_ptr<SensorReadingFactory>);
+
+ SensorProxy* getSensor(device::mojom::blink::SensorType);
DECLARE_VIRTUAL_TRACE();
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/Sensor.cpp ('k') | third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698