| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef Sensor_h | 5 #ifndef Sensor_h |
| 6 #define Sensor_h | 6 #define Sensor_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "core/dom/ActiveDOMObject.h" | 10 #include "core/dom/ActiveDOMObject.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // ContextLifecycleObserver overrides. | 81 // ContextLifecycleObserver overrides. |
| 82 void contextDestroyed() override; | 82 void contextDestroyed() override; |
| 83 | 83 |
| 84 // SensorController::Observer overrides. | 84 // SensorController::Observer overrides. |
| 85 void onSensorInitialized() override; | 85 void onSensorInitialized() override; |
| 86 void onSensorReadingChanged() override; | 86 void onSensorReadingChanged() override; |
| 87 void onSensorError(ExceptionCode, | 87 void onSensorError(ExceptionCode, |
| 88 const String& sanitizedMessage, | 88 const String& sanitizedMessage, |
| 89 const String& unsanitizedMessage) override; | 89 const String& unsanitizedMessage) override; |
| 90 | 90 |
| 91 void onSensorPermissionChanged(); |
| 92 |
| 91 void onStartRequestCompleted(bool); | 93 void onStartRequestCompleted(bool); |
| 92 void onStopRequestCompleted(bool); | 94 void onStopRequestCompleted(bool); |
| 93 | 95 |
| 94 // PageVisibilityObserver overrides. | 96 // PageVisibilityObserver overrides. |
| 95 void pageVisibilityChanged() override; | 97 void pageVisibilityChanged() override; |
| 96 | 98 |
| 97 void startListening(); | 99 void startListening(); |
| 98 void stopListening(); | 100 void stopListening(); |
| 99 | 101 |
| 100 // Makes sensor reading refresh its values from the shared buffer. | 102 // Makes sensor reading refresh its values from the shared buffer. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 117 SensorState m_state; | 119 SensorState m_state; |
| 118 Member<SensorProxy> m_sensorProxy; | 120 Member<SensorProxy> m_sensorProxy; |
| 119 std::unique_ptr<SensorPollingStrategy> m_polling; | 121 std::unique_ptr<SensorPollingStrategy> m_polling; |
| 120 device::SensorReading m_storedData; | 122 device::SensorReading m_storedData; |
| 121 SensorConfigurationPtr m_configuration; | 123 SensorConfigurationPtr m_configuration; |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 } // namespace blink | 126 } // namespace blink |
| 125 | 127 |
| 126 #endif // Sensor_h | 128 #endif // Sensor_h |
| OLD | NEW |