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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/Sensor.h

Issue 2742573005: Avoid to include IDL-generated headers from EventTarget.h and Node.h (Closed)
Patch Set: . Created 3 years, 9 months 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 Sensor_h 5 #ifndef Sensor_h
6 #define Sensor_h 6 #define Sensor_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "core/dom/ContextLifecycleObserver.h" 10 #include "core/dom/ContextLifecycleObserver.h"
11 #include "core/dom/DOMHighResTimeStamp.h" 11 #include "core/dom/DOMHighResTimeStamp.h"
12 #include "core/dom/DOMTimeStamp.h" 12 #include "core/dom/DOMTimeStamp.h"
13 #include "core/dom/SuspendableObject.h" 13 #include "core/dom/SuspendableObject.h"
14 #include "core/frame/PlatformEventController.h" 14 #include "core/frame/PlatformEventController.h"
15 #include "modules/EventTargetModules.h" 15 #include "modules/EventTargetModules.h"
16 #include "modules/sensor/SensorOptions.h" 16 #include "modules/sensor/SensorOptions.h"
17 #include "modules/sensor/SensorProxy.h" 17 #include "modules/sensor/SensorProxy.h"
18 #include "platform/heap/Handle.h" 18 #include "platform/heap/Handle.h"
19 19
20 namespace blink { 20 namespace blink {
21 21
22 class DOMException;
22 class ExceptionState; 23 class ExceptionState;
23 class ExecutionContext; 24 class ExecutionContext;
24 class SensorReading; 25 class SensorReading;
25 26
26 class Sensor : public EventTargetWithInlineData, 27 class Sensor : public EventTargetWithInlineData,
27 public ActiveScriptWrappable<Sensor>, 28 public ActiveScriptWrappable<Sensor>,
28 public ContextLifecycleObserver, 29 public ContextLifecycleObserver,
29 public SensorProxy::Observer { 30 public SensorProxy::Observer {
30 USING_GARBAGE_COLLECTED_MIXIN(Sensor); 31 USING_GARBAGE_COLLECTED_MIXIN(Sensor);
31 DEFINE_WRAPPERTYPEINFO(); 32 DEFINE_WRAPPERTYPEINFO();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 SensorState m_state; 111 SensorState m_state;
111 Member<SensorProxy> m_sensorProxy; 112 Member<SensorProxy> m_sensorProxy;
112 device::SensorReading m_storedData; 113 device::SensorReading m_storedData;
113 SensorConfigurationPtr m_configuration; 114 SensorConfigurationPtr m_configuration;
114 double m_lastUpdateTimestamp; 115 double m_lastUpdateTimestamp;
115 }; 116 };
116 117
117 } // namespace blink 118 } // namespace blink
118 119
119 #endif // Sensor_h 120 #endif // Sensor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698