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

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

Issue 2524423002: VR: Disable Overscroll Glow in VrShell (Closed)
Patch Set: Rebase + Rename VrShell::SetShowingOverscrollGlow Created 4 years 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.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_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 // Perform a UI action triggered by the javascript API. 147 // Perform a UI action triggered by the javascript API.
148 void DoUiActionOnUI(const UiAction action); 148 void DoUiActionOnUI(const UiAction action);
149 149
150 void SetContentCssSizeOnUI(float width, float height, float dpr); 150 void SetContentCssSizeOnUI(float width, float height, float dpr);
151 void SetUiCssSizeOnUI(float width, float height, float dpr); 151 void SetUiCssSizeOnUI(float width, float height, float dpr);
152 152
153 private: 153 private:
154 ~VrShell() override; 154 ~VrShell() override;
155 void LoadUIContentOnUI(); 155 void LoadUIContentOnUI();
156 void SetShowingOverscrollGlowOnUI(bool showing_glow);
156 void DrawVrShellOnGL(const gvr::Mat4f& head_pose, gvr::Frame &frame); 157 void DrawVrShellOnGL(const gvr::Mat4f& head_pose, gvr::Frame &frame);
157 void DrawUiViewOnGL(const gvr::Mat4f* head_pose, 158 void DrawUiViewOnGL(const gvr::Mat4f* head_pose,
158 const std::vector<const ContentRectangle*>& elements, 159 const std::vector<const ContentRectangle*>& elements,
159 const gvr::Sizei& render_size, int viewport_offset); 160 const gvr::Sizei& render_size, int viewport_offset);
160 void DrawElementsOnGL(const gvr::Mat4f& render_matrix, 161 void DrawElementsOnGL(const gvr::Mat4f& render_matrix,
161 const std::vector<const ContentRectangle*>& elements); 162 const std::vector<const ContentRectangle*>& elements);
162 void DrawCursorOnGL(const gvr::Mat4f& render_matrix); 163 void DrawCursorOnGL(const gvr::Mat4f& render_matrix);
163 void DrawWebVrOnGL(); 164 void DrawWebVrOnGL();
164 bool WebVrPoseByteIsValidOnGL(int pose_index_byte); 165 bool WebVrPoseByteIsValidOnGL(int pose_index_byte);
165 166
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 base::WeakPtrFactory<VrShell> weak_ptr_factory_; 251 base::WeakPtrFactory<VrShell> weak_ptr_factory_;
251 252
252 DISALLOW_COPY_AND_ASSIGN(VrShell); 253 DISALLOW_COPY_AND_ASSIGN(VrShell);
253 }; 254 };
254 255
255 bool RegisterVrShell(JNIEnv* env); 256 bool RegisterVrShell(JNIEnv* env);
256 257
257 } // namespace vr_shell 258 } // namespace vr_shell
258 259
259 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 260 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698