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

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

Issue 2936853003: VR: Send separate down and up events for controller clicks. (Closed)
Patch Set: nits 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
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 #include <utility> 10 #include <utility>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 void SendFlingCancel(GestureList& gesture_list); 146 void SendFlingCancel(GestureList& gesture_list);
147 void SendScrollEnd(GestureList& gesture_list); 147 void SendScrollEnd(GestureList& gesture_list);
148 bool SendScrollBegin(UiElement* target, GestureList& gesture_list); 148 bool SendScrollBegin(UiElement* target, GestureList& gesture_list);
149 void SendScrollUpdate(GestureList& gesture_list); 149 void SendScrollUpdate(GestureList& gesture_list);
150 void SendHoverLeave(UiElement* target); 150 void SendHoverLeave(UiElement* target);
151 bool SendHoverEnter(UiElement* target, 151 bool SendHoverEnter(UiElement* target,
152 const gfx::PointF& target_point, 152 const gfx::PointF& target_point,
153 const gfx::Point& local_point_pixels); 153 const gfx::Point& local_point_pixels);
154 void SendHoverMove(const gfx::PointF& target_point, 154 void SendHoverMove(const gfx::PointF& target_point,
155 const gfx::Point& local_point_pixels); 155 const gfx::Point& local_point_pixels);
156 void SendButtonDown(UiElement* target, const gfx::PointF& target_point); 156 void SendButtonDown(UiElement* target,
157 bool SendButtonUp(UiElement* target, const gfx::PointF& target_point); 157 const gfx::PointF& target_point,
158 const gfx::Point& local_point_pixels);
159 bool SendButtonUp(UiElement* target,
160 const gfx::PointF& target_point,
161 const gfx::Point& local_point_pixels);
158 void SendTap(UiElement* target, 162 void SendTap(UiElement* target,
159 const gfx::PointF& target_point, 163 const gfx::PointF& target_point,
160 const gfx::Point& local_point_pixels); 164 const gfx::Point& local_point_pixels);
161 void SendImmediateExitRequestIfNecessary(); 165 void SendImmediateExitRequestIfNecessary();
162 void GetVisualTargetElement(const gfx::Vector3dF& controller_direction, 166 void GetVisualTargetElement(const gfx::Vector3dF& controller_direction,
163 gfx::Vector3dF& eye_to_target, 167 gfx::Vector3dF& eye_to_target,
164 gfx::Point3F& target_point, 168 gfx::Point3F& target_point,
165 UiElement** target_element, 169 UiElement** target_element,
166 gfx::PointF& target_local_point) const; 170 gfx::PointF& target_local_point) const;
167 bool GetTargetLocalPoint(const gfx::Vector3dF& eye_to_target, 171 bool GetTargetLocalPoint(const gfx::Vector3dF& eye_to_target,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 gfx::Point3F pointer_start_; 289 gfx::Point3F pointer_start_;
286 290
287 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; 291 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
288 292
289 DISALLOW_COPY_AND_ASSIGN(VrShellGl); 293 DISALLOW_COPY_AND_ASSIGN(VrShellGl);
290 }; 294 };
291 295
292 } // namespace vr_shell 296 } // namespace vr_shell
293 297
294 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 298 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698