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

Unified Diff: content/browser/device_orientation/device_data.h

Issue 12771008: Implement java-side browser sensor polling for device motion and device orientation DOM events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed Marcus's comments Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/device_orientation/device_data.h
diff --git a/content/browser/device_orientation/device_data.h b/content/browser/device_orientation/device_data.h
index ae65618ac25fae3c03c1b9056b6261f145af9a40..e8c79add64c346ba31d1be34fc7453e03dc5104d 100644
--- a/content/browser/device_orientation/device_data.h
+++ b/content/browser/device_orientation/device_data.h
@@ -17,10 +17,12 @@ namespace content {
class CONTENT_EXPORT DeviceData :
public base::RefCountedThreadSafe<DeviceData> {
public:
+ // TODO(timvolodine): move the DeviceData::Type enum to the service class
+ // once it is implemented.
enum Type {
- kTypeMotion,
- kTypeOrientation,
- kTypeTest
+ kTypeOrientation = 0,
+ kTypeMotion = 1,
+ kTypeTest = 100
};
virtual IPC::Message* CreateIPCMessage(int render_view_id) const = 0;

Powered by Google App Engine
This is Rietveld 408576698