OLD | NEW |
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 void SetContentCssSize(float width, float height, float dpr); | 132 void SetContentCssSize(float width, float height, float dpr); |
133 void SetUiCssSize(float width, float height, float dpr); | 133 void SetUiCssSize(float width, float height, float dpr); |
134 | 134 |
135 void ContentFrameWasResized(bool width_changed); | 135 void ContentFrameWasResized(bool width_changed); |
136 | 136 |
137 void ForceExitVr(); | 137 void ForceExitVr(); |
138 | 138 |
139 private: | 139 private: |
140 ~VrShell() override; | 140 ~VrShell() override; |
141 void SetShowingOverscrollGlow(bool showing_glow); | 141 void SetIsInVR(bool is_in_vr); |
142 void PostToGlThreadWhenReady(const base::Closure& task); | 142 void PostToGlThreadWhenReady(const base::Closure& task); |
143 | 143 |
144 // content::WebContentsObserver implementation. All called on UI thread. | 144 // content::WebContentsObserver implementation. All called on UI thread. |
145 void RenderViewHostChanged(content::RenderViewHost* old_host, | 145 void RenderViewHostChanged(content::RenderViewHost* old_host, |
146 content::RenderViewHost* new_host) override; | 146 content::RenderViewHost* new_host) override; |
147 void MainFrameWasResized(bool width_changed) override; | 147 void MainFrameWasResized(bool width_changed) override; |
148 void WebContentsDestroyed() override; | 148 void WebContentsDestroyed() override; |
149 | 149 |
150 std::unique_ptr<UiInterface> html_interface_; | 150 std::unique_ptr<UiInterface> html_interface_; |
151 | 151 |
(...skipping 18 matching lines...) Expand all Loading... |
170 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 170 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
171 | 171 |
172 DISALLOW_COPY_AND_ASSIGN(VrShell); | 172 DISALLOW_COPY_AND_ASSIGN(VrShell); |
173 }; | 173 }; |
174 | 174 |
175 bool RegisterVrShell(JNIEnv* env); | 175 bool RegisterVrShell(JNIEnv* env); |
176 | 176 |
177 } // namespace vr_shell | 177 } // namespace vr_shell |
178 | 178 |
179 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 179 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
OLD | NEW |