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

Side by Side Diff: chrome/browser/android/vr_shell/vr_metrics_util.h

Issue 2865463003: Tracks GVR version crossed with headset type using UMA. (Closed)
Patch Set: Fixed comments Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_METRICS_UTIL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_METRICS_UTIL_H_
7
8 #include "base/macros.h"
9
10 #include "chrome/browser/android/vr_shell/vr_core_info.h"
11 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/ gvr.h"
12 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/ gvr_types.h"
13
14 namespace vr_shell {
15
16 enum class ViewerType {
17 UNKNOWN_TYPE = 0,
18 CARDBOARD = 1,
19 DAYDREAM = 2,
20 VIEWER_TYPE_MAX,
21 };
22
23 class VrMetricsUtil {
24 public:
25 static void LogGvrVersionForVrViewerType(gvr_context* context,
26 const VrCoreInfo& vr_core_info);
27 static void LogVrViewerType(gvr_context* context);
28
29 private:
30 static ViewerType GetVrViewerType(gvr_context* context);
31
32 static bool has_logged_vr_runtime_version_;
33
34 DISALLOW_IMPLICIT_CONSTRUCTORS(VrMetricsUtil);
35 };
36
37 } // namespace vr_shell
38
39 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_METRICS_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_core_info.cc ('k') | chrome/browser/android/vr_shell/vr_metrics_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698