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

Unified Diff: public/platform/modules/vr/WebVR.h

Issue 1165223006: Move WebVR public headers into public/platform/modules/vr (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed mismatched forward declaration Created 5 years, 6 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
« no previous file with comments | « public/platform/modules/vr/OWNERS ('k') | public/platform/modules/vr/WebVRClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/modules/vr/WebVR.h
diff --git a/public/platform/WebVR.h b/public/platform/modules/vr/WebVR.h
similarity index 92%
rename from public/platform/WebVR.h
rename to public/platform/modules/vr/WebVR.h
index 69824ef3d6e576c382b4ab606ede90ba9f21b668..404fd4b8c667fffbe5aac502a2929f4909e24e51 100644
--- a/public/platform/WebVR.h
+++ b/public/platform/modules/vr/WebVR.h
@@ -5,7 +5,8 @@
#ifndef WebVR_h
#define WebVR_h
-#include "WebCommon.h"
+#include "public/platform/WebCommon.h"
+#include "public/platform/WebString.h"
#if BLINK_IMPLEMENTATION
#include "wtf/Assertions.h"
@@ -87,23 +88,13 @@ typedef int WebVRDeviceTypeMask;
// Describes a single VR hardware unit. May describe multiple capabilities,
// such as position sensors or head mounted display metrics.
-class WebVRDevice {
-public:
- static const size_t deviceNameLengthCap = 128;
-
- WebVRDevice()
- : flags(0)
- {
- deviceName[0] = 0;
- }
-
+struct WebVRDevice {
// Index for this hardware unit.
unsigned index;
// Friendly device name.
- WebUChar deviceName[deviceNameLengthCap];
+ WebString deviceName;
// Identifies the capabilities of this hardware unit.
WebVRDeviceTypeMask flags;
-
// Will only contain valid data if (flags & HasHMDDevice).
WebVRHMDInfo hmdInfo;
};
« no previous file with comments | « public/platform/modules/vr/OWNERS ('k') | public/platform/modules/vr/WebVRClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698