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

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

Issue 2537863003: Remove [ConstructorCallWith=ScriptState] from Sensor (Closed)
Patch Set: Created 4 years 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/Accelerometer.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/Accelerometer.cpp b/third_party/WebKit/Source/modules/sensor/Accelerometer.cpp
index 8e07474ae517b36e160b942a98f1cef32c40a017..20b9ae3b157c54ecaae7a9648085594325c4faa4 100644
--- a/third_party/WebKit/Source/modules/sensor/Accelerometer.cpp
+++ b/third_party/WebKit/Source/modules/sensor/Accelerometer.cpp
@@ -12,22 +12,22 @@ using device::mojom::blink::SensorType;
namespace blink {
-Accelerometer* Accelerometer::create(ScriptState* scriptState,
+Accelerometer* Accelerometer::create(ExecutionContext* executionContext,
const AccelerometerOptions& options,
ExceptionState& exceptionState) {
- return new Accelerometer(scriptState, options, exceptionState);
+ return new Accelerometer(executionContext, options, exceptionState);
}
// static
-Accelerometer* Accelerometer::create(ScriptState* scriptState,
+Accelerometer* Accelerometer::create(ExecutionContext* executionContext,
ExceptionState& exceptionState) {
- return create(scriptState, AccelerometerOptions(), exceptionState);
+ return create(executionContext, AccelerometerOptions(), exceptionState);
}
-Accelerometer::Accelerometer(ScriptState* scriptState,
+Accelerometer::Accelerometer(ExecutionContext* executionContext,
const AccelerometerOptions& options,
ExceptionState& exceptionState)
- : Sensor(scriptState,
+ : Sensor(executionContext,
options,
exceptionState,
options.includeGravity() ? SensorType::ACCELEROMETER
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/Accelerometer.h ('k') | third_party/WebKit/Source/modules/sensor/Accelerometer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698