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

Unified Diff: third_party/WebKit/Source/modules/sensor/Accelerometer.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/sensor/Accelerometer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/sensor/Accelerometer.h
diff --git a/third_party/WebKit/Source/modules/sensor/Accelerometer.h b/third_party/WebKit/Source/modules/sensor/Accelerometer.h
index 27f4d68a8b85ae81fb202dc3ad8afa9125756793..a7cc237e75f5081b2babb95b79e2af2660bbc0a3 100644
--- a/third_party/WebKit/Source/modules/sensor/Accelerometer.h
+++ b/third_party/WebKit/Source/modules/sensor/Accelerometer.h
@@ -16,10 +16,10 @@ class Accelerometer final : public Sensor {
DEFINE_WRAPPERTYPEINFO();
public:
- static Accelerometer* create(ScriptState*,
+ static Accelerometer* create(ExecutionContext*,
const AccelerometerOptions&,
ExceptionState&);
- static Accelerometer* create(ScriptState*, ExceptionState&);
+ static Accelerometer* create(ExecutionContext*, ExceptionState&);
AccelerometerReading* reading() const;
bool includesGravity() const;
@@ -27,7 +27,9 @@ class Accelerometer final : public Sensor {
DECLARE_VIRTUAL_TRACE();
private:
- Accelerometer(ScriptState*, const AccelerometerOptions&, ExceptionState&);
+ Accelerometer(ExecutionContext*,
+ const AccelerometerOptions&,
+ ExceptionState&);
// Sensor overrides.
std::unique_ptr<SensorReadingFactory> createSensorReadingFactory() override;
AccelerometerOptions m_accelerometerOptions;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/sensor/Accelerometer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698