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

Unified Diff: device/vr/vr_device.h

Issue 2029703002: Moving VR service from /content/browser to /device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added nogncheck to failing include Created 4 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 | « device/vr/test/fake_vr_device_provider.cc ('k') | device/vr/vr_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_device.h
diff --git a/content/browser/vr/vr_device.h b/device/vr/vr_device.h
similarity index 64%
rename from content/browser/vr/vr_device.h
rename to device/vr/vr_device.h
index a5d9ed618b4c2bf15a7754346715696f5a9f06f3..17bcf6c23c2fdd3b892b7ecb2147c01a09fc2fba 100644
--- a/content/browser/vr/vr_device.h
+++ b/device/vr/vr_device.h
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_VR_VR_DEVICE_H
-#define CONTENT_BROWSER_VR_VR_DEVICE_H
+#ifndef DEVICE_VR_VR_DEVICE_H
+#define DEVICE_VR_VR_DEVICE_H
#include "base/macros.h"
+#include "device/vr/vr_export.h"
#include "third_party/WebKit/public/platform/modules/vr/vr_service.mojom.h"
namespace blink {
@@ -16,7 +17,7 @@ namespace ui {
class BaseWindow;
}
-namespace content {
+namespace device {
class VRDeviceProvider;
@@ -24,11 +25,11 @@ const unsigned int VR_DEVICE_LAST_ID = 0xFFFFFFFF;
class VRDevice {
public:
- explicit VRDevice(VRDeviceProvider* provider);
- virtual ~VRDevice();
+ DEVICE_VR_EXPORT explicit VRDevice(VRDeviceProvider* provider);
+ DEVICE_VR_EXPORT virtual ~VRDevice();
- VRDeviceProvider* provider() const { return provider_; }
- unsigned int id() const { return id_; }
+ DEVICE_VR_EXPORT VRDeviceProvider* provider() const { return provider_; }
+ DEVICE_VR_EXPORT unsigned int id() const { return id_; }
virtual blink::mojom::VRDisplayPtr GetVRDevice() = 0;
virtual blink::mojom::VRPosePtr GetPose() = 0;
@@ -43,6 +44,6 @@ class VRDevice {
DISALLOW_COPY_AND_ASSIGN(VRDevice);
};
-} // namespace content
+} // namespace device
-#endif // CONTENT_BROWSER_VR_VR_DEVICE_H
+#endif // DEVICE_VR_VR_DEVICE_H
« no previous file with comments | « device/vr/test/fake_vr_device_provider.cc ('k') | device/vr/vr_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698