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

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

Issue 2768133003: Ensure VR UI does not miss controller button clicks (Closed)
Patch Set: Created 3 years, 9 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
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 std::vector<const ContentRectangle*> GetElementsInDrawOrder( 125 std::vector<const ContentRectangle*> GetElementsInDrawOrder(
126 const gvr::Mat4f& view_matrix, 126 const gvr::Mat4f& view_matrix,
127 const std::vector<const ContentRectangle*>& elements); 127 const std::vector<const ContentRectangle*>& elements);
128 void DrawCursor(const gvr::Mat4f& render_matrix); 128 void DrawCursor(const gvr::Mat4f& render_matrix);
129 bool ShouldDrawWebVr(); 129 bool ShouldDrawWebVr();
130 void DrawWebVr(); 130 void DrawWebVr();
131 bool WebVrPoseByteIsValid(int pose_index_byte); 131 bool WebVrPoseByteIsValid(int pose_index_byte);
132 132
133 void UpdateController(); 133 void UpdateController();
134 void HandleControllerInput(const gvr::Vec3f& forward_vector); 134 void HandleControllerInput(const gvr::Vec3f& forward_vector);
135 void HandleControllerAppButtonActivity(
136 const gvr::Vec3f& controller_direction);
135 void SendEventsToTarget(InputTarget input_target, int pixel_x, int pixel_y); 137 void SendEventsToTarget(InputTarget input_target, int pixel_x, int pixel_y);
136 void SendGesture(InputTarget input_target, 138 void SendGesture(InputTarget input_target,
137 std::unique_ptr<blink::WebInputEvent> event); 139 std::unique_ptr<blink::WebInputEvent> event);
138 void CreateUiSurface(); 140 void CreateUiSurface();
139 void OnUIFrameAvailable(); 141 void OnUIFrameAvailable();
140 void OnContentFrameAvailable(); 142 void OnContentFrameAvailable();
141 void OnWebVRFrameAvailable(); 143 void OnWebVRFrameAvailable();
142 bool GetPixelEncodedFrameIndex(uint16_t* frame_index); 144 bool GetPixelEncodedFrameIndex(uint16_t* frame_index);
143 145
144 void OnVSync(); 146 void OnVSync();
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 gvr::Vec3f controller_start_direction_; 238 gvr::Vec3f controller_start_direction_;
237 239
238 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; 240 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
239 241
240 DISALLOW_COPY_AND_ASSIGN(VrShellGl); 242 DISALLOW_COPY_AND_ASSIGN(VrShellGl);
241 }; 243 };
242 244
243 } // namespace vr_shell 245 } // namespace vr_shell
244 246
245 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 247 #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') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698