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

Side by Side Diff: content/browser/device_orientation/inertial_sensor_consts.h

Issue 152893002: [DeviceLight API] Content Side Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix in Java file, stop() Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_DEVICE_ORIENTATION_INERTIAL_SENSOR_CONSTS_H_ 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_INERTIAL_SENSOR_CONSTS_H_
6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_INERTIAL_SENSOR_CONSTS_H_ 6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_INERTIAL_SENSOR_CONSTS_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 // Constants related to the Device Motion/Device Orientation APIs. 10 // Constants related to the Device Motion/Device Orientation/Device Light APIs.
11 11
12 enum ConsumerType { 12 enum ConsumerType {
13 CONSUMER_TYPE_MOTION = 1 << 0, 13 CONSUMER_TYPE_MOTION = 1 << 0,
14 CONSUMER_TYPE_ORIENTATION = 1 << 1, 14 CONSUMER_TYPE_ORIENTATION = 1 << 1,
15 CONSUMER_TYPE_LIGHT = 1 << 2
15 }; 16 };
16 17
17 // Specifies the minimal interval between subsequent sensor data updates. 18 // Specifies the minimal interval between subsequent sensor data updates.
18 // Note that when changing this value it is desirable to have an adequate 19 // Note that when changing this value it is desirable to have an adequate
19 // matching value |DeviceSensorEventPump::kDefaultPumpDelayMillis| in 20 // matching value |DeviceSensorEventPump::kDefaultPumpDelayMillis| in
20 // content/renderer/device_orientation/device_sensor_event_pump.cc. 21 // content/renderer/device_orientation/device_sensor_event_pump.cc.
21 const int kInertialSensorIntervalMillis = 50; 22 const int kInertialSensorIntervalMillis = 50;
22 23
23 } // namespace content 24 } // namespace content
24 25
25 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_INERTIAL_SENSOR_CONSTS_H_ 26 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_INERTIAL_SENSOR_CONSTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698