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

Unified Diff: third_party/WebKit/Source/modules/sensor/Gyroscope.cpp

Issue 2537863003: Remove [ConstructorCallWith=ScriptState] from Sensor (Closed)
Patch Set: 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/Gyroscope.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/Gyroscope.cpp b/third_party/WebKit/Source/modules/sensor/Gyroscope.cpp
index c278f27a975d812793ebb9dc6c99238d3a4d67fc..e87ac84273c18629c7edd2bdff03fa279b7414b7 100644
--- a/third_party/WebKit/Source/modules/sensor/Gyroscope.cpp
+++ b/third_party/WebKit/Source/modules/sensor/Gyroscope.cpp
@@ -10,22 +10,23 @@ using device::mojom::blink::SensorType;
namespace blink {
-Gyroscope* Gyroscope::create(ScriptState* scriptState,
+Gyroscope* Gyroscope::create(ExecutionContext* executionContext,
const SensorOptions& options,
ExceptionState& exceptionState) {
- return new Gyroscope(scriptState, options, exceptionState);
+ return new Gyroscope(executionContext, options, exceptionState);
}
// static
-Gyroscope* Gyroscope::create(ScriptState* scriptState,
+Gyroscope* Gyroscope::create(ExecutionContext* executionContext,
ExceptionState& exceptionState) {
- return create(scriptState, SensorOptions(), exceptionState);
+ return create(executionContext, SensorOptions(), exceptionState);
}
-Gyroscope::Gyroscope(ScriptState* scriptState,
+Gyroscope::Gyroscope(ExecutionContext* executionContext,
const SensorOptions& options,
ExceptionState& exceptionState)
- : Sensor(scriptState, options, exceptionState, SensorType::GYROSCOPE) {}
+ : Sensor(executionContext, options, exceptionState, SensorType::GYROSCOPE) {
+}
GyroscopeReading* Gyroscope::reading() const {
return static_cast<GyroscopeReading*>(Sensor::reading());
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/Gyroscope.h ('k') | third_party/WebKit/Source/modules/sensor/Gyroscope.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698