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

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

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/Gyroscope.h
diff --git a/third_party/WebKit/Source/modules/sensor/Gyroscope.h b/third_party/WebKit/Source/modules/sensor/Gyroscope.h
index f92f0060eb11758f7dc10fb708e3aff82ed22b1d..058502985831b9a28ff0bc1432f955c44e60b844 100644
--- a/third_party/WebKit/Source/modules/sensor/Gyroscope.h
+++ b/third_party/WebKit/Source/modules/sensor/Gyroscope.h
@@ -15,15 +15,17 @@ class Gyroscope final : public Sensor {
DEFINE_WRAPPERTYPEINFO();
public:
- static Gyroscope* create(ScriptState*, const SensorOptions&, ExceptionState&);
- static Gyroscope* create(ScriptState*, ExceptionState&);
+ static Gyroscope* create(ExecutionContext*,
+ const SensorOptions&,
+ ExceptionState&);
+ static Gyroscope* create(ExecutionContext*, ExceptionState&);
GyroscopeReading* reading() const;
DECLARE_VIRTUAL_TRACE();
private:
- Gyroscope(ScriptState*, const SensorOptions&, ExceptionState&);
+ Gyroscope(ExecutionContext*, const SensorOptions&, ExceptionState&);
// Sensor overrides.
std::unique_ptr<SensorReadingFactory> createSensorReadingFactory() override;
};

Powered by Google App Engine
This is Rietveld 408576698