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

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

Issue 2688813004: Enable scrolling of UI elements. (Closed)
Patch Set: Ditched const, rebased on ToT Created 3 years, 10 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 gvr::Sizei render_size_headlocked_; 160 gvr::Sizei render_size_headlocked_;
161 161
162 std::unique_ptr<VrShellRenderer> vr_shell_renderer_; 162 std::unique_ptr<VrShellRenderer> vr_shell_renderer_;
163 163
164 bool touch_pending_ = false; 164 bool touch_pending_ = false;
165 gvr::Quatf controller_quat_; 165 gvr::Quatf controller_quat_;
166 166
167 gvr::Vec3f target_point_; 167 gvr::Vec3f target_point_;
168 const ContentRectangle* target_element_ = nullptr; 168 const ContentRectangle* target_element_ = nullptr;
169 InputTarget current_input_target_ = InputTarget::NONE; 169 InputTarget current_input_target_ = InputTarget::NONE;
170 InputTarget current_scroll_target = InputTarget::NONE;
170 int ui_tex_css_width_ = 0; 171 int ui_tex_css_width_ = 0;
171 int ui_tex_css_height_ = 0; 172 int ui_tex_css_height_ = 0;
172 int content_tex_css_width_ = 0; 173 int content_tex_css_width_ = 0;
173 int content_tex_css_height_ = 0; 174 int content_tex_css_height_ = 0;
174 gvr::Sizei content_tex_physical_size_ = {0, 0}; 175 gvr::Sizei content_tex_physical_size_ = {0, 0};
175 gvr::Sizei ui_tex_physical_size_ = {0, 0}; 176 gvr::Sizei ui_tex_physical_size_ = {0, 0};
176 177
177 std::vector<gvr::Mat4f> webvr_head_pose_; 178 std::vector<gvr::Mat4f> webvr_head_pose_;
178 int webvr_texture_id_ = 0; 179 int webvr_texture_id_ = 0;
179 bool web_vr_mode_; 180 bool web_vr_mode_;
(...skipping 22 matching lines...) Expand all
202 uint16_t last_frame_index_ = -1; 203 uint16_t last_frame_index_ = -1;
203 204
204 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; 205 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
205 206
206 DISALLOW_COPY_AND_ASSIGN(VrShellGl); 207 DISALLOW_COPY_AND_ASSIGN(VrShellGl);
207 }; 208 };
208 209
209 } // namespace vr_shell 210 } // namespace vr_shell
210 211
211 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 212 #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