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

Side by Side 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 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 Gyroscope_h 5 #ifndef Gyroscope_h
6 #define Gyroscope_h 6 #define Gyroscope_h
7 7
8 #include "modules/sensor/Sensor.h" 8 #include "modules/sensor/Sensor.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class GyroscopeReading; 12 class GyroscopeReading;
13 13
14 class Gyroscope final : public Sensor { 14 class Gyroscope final : public Sensor {
15 DEFINE_WRAPPERTYPEINFO(); 15 DEFINE_WRAPPERTYPEINFO();
16 16
17 public: 17 public:
18 static Gyroscope* create(ScriptState*, const SensorOptions&, ExceptionState&); 18 static Gyroscope* create(ExecutionContext*,
19 static Gyroscope* create(ScriptState*, ExceptionState&); 19 const SensorOptions&,
20 ExceptionState&);
21 static Gyroscope* create(ExecutionContext*, ExceptionState&);
20 22
21 GyroscopeReading* reading() const; 23 GyroscopeReading* reading() const;
22 24
23 DECLARE_VIRTUAL_TRACE(); 25 DECLARE_VIRTUAL_TRACE();
24 26
25 private: 27 private:
26 Gyroscope(ScriptState*, const SensorOptions&, ExceptionState&); 28 Gyroscope(ExecutionContext*, const SensorOptions&, ExceptionState&);
27 // Sensor overrides. 29 // Sensor overrides.
28 std::unique_ptr<SensorReadingFactory> createSensorReadingFactory() override; 30 std::unique_ptr<SensorReadingFactory> createSensorReadingFactory() override;
29 }; 31 };
30 32
31 } // namespace blink 33 } // namespace blink
32 34
33 #endif // Gyroscope_h 35 #endif // Gyroscope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698