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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/Sensor.h

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 unified diff | Download patch
OLDNEW
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/ContextLifecycleObserver.h" 10 #include "core/dom/ContextLifecycleObserver.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // The default implementation will init frequency configuration parameter, 72 // The default implementation will init frequency configuration parameter,
73 // concrete sensor implementations can override this method to handle other 73 // concrete sensor implementations can override this method to handle other
74 // parameters if needed. 74 // parameters if needed.
75 virtual SensorConfigurationPtr createSensorConfig(); 75 virtual SensorConfigurationPtr createSensorConfig();
76 76
77 private: 77 private:
78 void initSensorProxyIfNeeded(); 78 void initSensorProxyIfNeeded();
79 79
80 // ContextLifecycleObserver overrides. 80 // ContextLifecycleObserver overrides.
81 void contextDestroyed() override; 81 void contextDestroyed(ExecutionContext*) override;
82 82
83 // SensorController::Observer overrides. 83 // SensorController::Observer overrides.
84 void onSensorInitialized() override; 84 void onSensorInitialized() override;
85 void onSensorReadingChanged(double timestamp) override; 85 void onSensorReadingChanged(double timestamp) override;
86 void onSensorError(ExceptionCode, 86 void onSensorError(ExceptionCode,
87 const String& sanitizedMessage, 87 const String& sanitizedMessage,
88 const String& unsanitizedMessage) override; 88 const String& unsanitizedMessage) override;
89 89
90 void onStartRequestCompleted(bool); 90 void onStartRequestCompleted(bool);
91 void onStopRequestCompleted(bool); 91 void onStopRequestCompleted(bool);
(...skipping 16 matching lines...) Expand all
108 SensorState m_state; 108 SensorState m_state;
109 Member<SensorProxy> m_sensorProxy; 109 Member<SensorProxy> m_sensorProxy;
110 device::SensorReading m_storedData; 110 device::SensorReading m_storedData;
111 SensorConfigurationPtr m_configuration; 111 SensorConfigurationPtr m_configuration;
112 double m_lastUpdateTimestamp; 112 double m_lastUpdateTimestamp;
113 }; 113 };
114 114
115 } // namespace blink 115 } // namespace blink
116 116
117 #endif // Sensor_h 117 #endif // Sensor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698