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_VR_MODEL_RETICLE_MODEL_H_
6 #define CHROME_BROWSER_VR_MODEL_RETICLE_MODEL_H_
7 
8 #include "chrome/browser/vr/vr_base_export.h"
9 #include "ui/gfx/geometry/point3_f.h"
10 
11 namespace vr {
12 
13 enum CursorType {
14   kCursorDefault,
15   kCursorReposition,
16 };
17 
18 // The ReticleModel contains information related to the target of the
19 // controller's laser. It is computed by the UiInputManager and is used by the
20 // input manager in the production of gestures as well as by the Reticle element
21 // in the scene.
22 struct VR_BASE_EXPORT ReticleModel {
23   gfx::Point3F target_point;
24   gfx::PointF target_local_point;
25   int target_element_id = 0;
26   CursorType cursor_type = kCursorDefault;
27 };
28 
29 }  // namespace vr
30 
31 #endif  // CHROME_BROWSER_VR_MODEL_RETICLE_MODEL_H_
32