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

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

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 years, 7 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 SensorProxy_h 5 #ifndef SensorProxy_h
6 #define SensorProxy_h 6 #define SensorProxy_h
7 7
8 #include "core/dom/ExceptionCode.h" 8 #include "core/dom/ExceptionCode.h"
9 #include "core/page/PageVisibilityObserver.h" 9 #include "core/page/PageVisibilityObserver.h"
10 #include "device/generic_sensor/public/cpp/sensor_reading.h"
11 #include "device/generic_sensor/public/interfaces/sensor.mojom-blink.h"
12 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom-blink.h"
13 #include "mojo/public/cpp/bindings/binding.h" 10 #include "mojo/public/cpp/bindings/binding.h"
14 #include "platform/Supplementable.h" 11 #include "platform/Supplementable.h"
15 #include "platform/Timer.h" 12 #include "platform/Timer.h"
16 #include "platform/heap/Handle.h" 13 #include "platform/heap/Handle.h"
17 #include "platform/wtf/Vector.h" 14 #include "platform/wtf/Vector.h"
15 #include "services/device/public/cpp/generic_sensor/sensor_reading.h"
16 #include "services/device/public/interfaces/sensor.mojom-blink.h"
17 #include "services/device/public/interfaces/sensor_provider.mojom-blink.h"
18 18
19 namespace blink { 19 namespace blink {
20 20
21 class SensorProviderProxy; 21 class SensorProviderProxy;
22 class SensorReading; 22 class SensorReading;
23 23
24 // This class wraps 'Sensor' mojo interface and used by multiple 24 // This class wraps 'Sensor' mojo interface and used by multiple
25 // JS sensor instances of the same type (within a single frame). 25 // JS sensor instances of the same type (within a single frame).
26 class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>, 26 class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>,
27 public device::mojom::blink::SensorClient, 27 public device::mojom::blink::SensorClient,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 using ReadingBuffer = device::SensorReadingSharedBuffer; 143 using ReadingBuffer = device::SensorReadingSharedBuffer;
144 static_assert( 144 static_assert(
145 sizeof(ReadingBuffer) == 145 sizeof(ReadingBuffer) ==
146 device::mojom::blink::SensorInitParams::kReadBufferSizeForTests, 146 device::mojom::blink::SensorInitParams::kReadBufferSizeForTests,
147 "Check reading buffer size for tests"); 147 "Check reading buffer size for tests");
148 }; 148 };
149 149
150 } // namespace blink 150 } // namespace blink
151 151
152 #endif // SensorProxy_h 152 #endif // SensorProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698