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

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

Issue 2839963004: [Sensors] Error handler in Senor class should stop the platform sensor (Closed)
Patch Set: fix test failures Created 3 years, 8 months 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/Sensor.h
diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.h b/third_party/WebKit/Source/modules/sensor/Sensor.h
index 28b8f5ba20f00291c49a30de31b2a15666095b23..e2e0e545d993dbb33229ee3d775ae57a5de9c6fa 100644
--- a/third_party/WebKit/Source/modules/sensor/Sensor.h
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.h
@@ -92,14 +92,15 @@ class Sensor : public EventTargetWithInlineData,
const String& sanitized_message,
const String& unsanitized_message) override;
- void OnStartRequestCompleted(bool);
- void OnStopRequestCompleted(bool);
+ void OnAddConfigurationRequestCompleted(bool);
void StartListening();
void StopListening();
+ void RequestAddConfiguration();
+
void UpdateState(SensorState new_state);
- void ReportError(ExceptionCode = kUnknownError,
+ void HandleError(ExceptionCode = kUnknownError,
const String& sanitized_message = String(),
const String& unsanitized_message = String());

Powered by Google App Engine
This is Rietveld 408576698